Skip to content

chore: Vendor JSONField to fix runtime warnings and reduce future upgrade pain#13397

Merged
markstory merged 4 commits intomasterfrom
jsonfield
May 30, 2019
Merged

chore: Vendor JSONField to fix runtime warnings and reduce future upgrade pain#13397
markstory merged 4 commits intomasterfrom
jsonfield

Conversation

@markstory
Copy link
Member

The packaged version of this library contains metaclass warnings in Django1.8. We could upgrade but newer versions of the library are unwilling to serialize datetimes and decimal objects. Vendoring the library will allow us to maintain compatibility for our use cases and upgrade django at the same time.

Refs SEN-686

markstory added 3 commits May 24, 2019 16:29
The packaged version of this library contains metaclass warnings in
Django1.8. We could upgrade but newer versions of the library are
unwilling to serialize datetimes and decimal objects. Vendoring the
library will allow us to maintain compatibility for our use cases and
upgrade django at the same time.

Refs SEN-686
We can't yet remove the jsonfield dependency as getsentry is using it.
@markstory markstory requested a review from a team May 24, 2019 21:09
@evanpurkhiser
Copy link
Member

Would it be better to stick this in src/jsonfield?

@markstory
Copy link
Member Author

@evanpurkhiser We could. There is is no real chance that we'd be able to pull in upstream changes though. Newer versions cannot serialize datetimes, and future django's JSONField uses postgres' JSONB datatype which won't work for us either.

@evanpurkhiser
Copy link
Member

Ahh so this is not an interim thing, we are just pulling this in for good

@markstory
Copy link
Member Author

Ahh so this is not an interim thing, we are just pulling this in for good

Yes, JSONField would become ours forever. Do you think it is worthwhile pulling in tests, or moving it to a separate directory in src?

@wedamija
Copy link
Member

+1 on pulling in the tests related to this. I don't know that we need a separate directory in src since this is just a single file.

Capture the intended behavior from the point we forked off.
@markstory markstory merged commit 3fb8866 into master May 30, 2019
@markstory markstory deleted the jsonfield branch May 30, 2019 15:00
jan-auer added a commit that referenced this pull request May 30, 2019
* master: (30 commits)
  ref(ui): Avoid full-page load indicator after project creation (#12842)
  ref(events-v2) Use an object target instead building URLs (#13471)
  ref(onboarding): Improve alerts from wizard docs (#13469)
  feat(app-platform): integration feature models, serializer, endpoints (#13377)
  ref(onboarding): Improve platform picker hover color (#13468)
  chore: New SDK versions (#13465)
  feat(events-v2) Add rough sketch of event modal (#13415)
  chore(south) Update south state to use new jsonfield (#13466)
  fix(events-v2): Fix search filter (#13454)
  chore: Vendor JSONField to fix runtime warnings and reduce future upgrade pain (#13397)
  test(events-v2): Fix dynamic values in Percy (#13463)
  dx(notion): Upgrade from `notion` to `volta` (#13452)
  feat(onboarding): Add warning for when docs are missing examples (#13445)
  misc(metrics): First pass at un-sampled single metric paths. (#13434)
  fix(integrations) Fix missing identity link on re-install (#13450)
  fix(api): Fix bug when creating incident comments while logged in as another user.
  fix(api): Fix task error on incident creation
  chore(SDK's): Update various SDK versions/urls (#13225)
  chore: Make exports and imports match (#13449)
  feat(ui): Add message in Incidents list for creating an incident [SEN-694] (#13436)
  ...
@github-actions github-actions bot locked and limited conversation to collaborators Dec 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants