Comments (5)
@palkan Iām on it!
from logidze.
I then change it to:
EXECUTE PROCEDURE logidze_logger(100, '', '{created_at, position, updated_at, stale}');
Looks good to me. Except from the second argument: it should be either 'updated_at' (if you want to use updated_at
column value as a log timestamp) or null
(if you want to rely on DB current time as a log timestamp).
Now I have a bunch of change entries with no entries in them.
Looks like a bug: if everything is filtered out we still add a log entry. @charlie-wasp Could you, please, take a look?
from logidze.
- So should I change it to this:
EXECUTE PROCEDURE logidze_logger(100, null, '{created_at, position, updated_at, stale}');
- Let me know if there is anything I can contribute to help sort the problem. I assumed I was just doing something wrong :) I want to track most changes but not all of them.
from logidze.
I made the null change and it it still generating empty change versions.
{"c"=>{}, "v"=>2, "ts"=>1514993038238}, {"c"=>{}, "v"=>3, "ts"=>1514993038268}, {"c"=>{"closed_at"=>"2018-03-03 15:24:52.146939"}, "v"=>4, "ts"=>1514993094375}, {"c"=>{}, "v"=>5, "ts"=>1514993100172}, {"c"=>{}, "v"=>6, "ts"=>1514993100204}], "v"=>6}
from logidze.
Fixed by #55 and released as 0.6.2
from logidze.
Related Issues (20)
- Logidze with Ruby 3.0 is throwing argument errors. HOT 2
- `rails destroy logidze:model MyModel` does not delete migration file HOT 2
- Activerecord table_name_prefix or table_name_suffix are not honored HOT 3
- Tracking changes on JSONB column error
- How to list all versions of a record? HOT 4
- Association versioning with ignore_log_data and at(version: ) doesn't return expected results HOT 5
- Partition-friendly logging (triggers) HOT 3
- JSONB column and switch_to! with append: true HOT 2
- PG::UndefinedFunction: ERROR: function hstore(model_name) does not exist HOT 1
- Meta per request HOT 1
- Logidze.ignore_log_data_by_default causing db:migrate errors HOT 2
- Responsible from different sources HOT 3
- Associations versioning - accessing versions with `at(version: #)` HOT 2
- How to tell logidze about a new column HOT 8
- GlobalID support for metadata
- `responsible_id` is not updated on relation with `touch: true` HOT 6
- reload_log_data doesn't work when used with acts_as_paranoid and deleted records HOT 2
- docs: logdize cannot set session meta data when using a connection pool HOT 1
- How can I get the last 100 versions of a model? regardless of the record HOT 2
- Saving log with only metadata changes HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from logidze.