Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Literal string 'null' stored in changed_field #97

Open
jameskirsop opened this issue Jul 17, 2019 · 7 comments
Open

Literal string 'null' stored in changed_field #97

jameskirsop opened this issue Jul 17, 2019 · 7 comments

Comments

@jameskirsop
Copy link

I'm seeing a literal string of 'null' being stored in the database against some Update events.

If there aren't any changed fields one of the following should be occurring instead:

  1. The event isn't logged as an 'Update' at all - as nothing has changed on the object
  2. The changed_fields column should be left empty - null - instead of 'null'.

This bug makes it tedious to .filter() for actual changes to a given object.

@guy881
Copy link
Contributor

guy881 commented Oct 10, 2019

I would opt for number 1. @soynatan @jheld, what do you think about this?

@gghildyal
Copy link

Number 1 is addressed now with #106.

@jameskirsop
Copy link
Author

Would appreciate if @gghildyal's PR could be merged into master!

@jheld
Copy link
Collaborator

jheld commented Feb 2, 2020

I'm happy with option 1, as well. Likely to merge #106 shortly.

If option 1 has any process issues for certain projects, then we can enable a new setting which allows doing the update and saving it as NULL instead. But for now, simpler seems better.

@jheld
Copy link
Collaborator

jheld commented Feb 2, 2020

merged and released to PyPI as 1.2.2b1.

there might be a couple other changes in this release so I'm not marking as release candidate yet. Once we've frozen 1.2.2's changeset, we'll do (probably just 1) release candidate, and then after small testing, official release.

@jameskirsop
Copy link
Author

Thanks @jheld!

@alsichel
Copy link

alsichel commented Feb 5, 2024

Still having this issue. I'm on version 1.3.3a3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants