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

Revert Unique Together Checking Regression #9483

Closed

Conversation

max-muoto
Copy link
Contributor

@max-muoto max-muoto commented Jul 31, 2024

Description

Revert the changes in #9154 that are leading to a regression where existing data in initial_data is ignored, where a uniqueness constraint might be incorrectly validated against, as described in #9358.

@auvipy
Copy link
Member

auvipy commented Aug 1, 2024

Hi max, did you check this PR #9482? instead of editing should you accept that?

Copy link
Member

@auvipy auvipy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can leave this in favor of the newly merged one

@max-muoto
Copy link
Contributor Author

I think we can leave this in favor of the newly merged one

Great, glad to see that got in! Closing this out.

@max-muoto max-muoto closed this Aug 5, 2024
terjekv added a commit to terjekv/mreg that referenced this pull request Aug 7, 2024
  - We are stuck on drf 3.14.0 due to encode/django-rest-framework#9358 until encode/django-rest-framework#9483 goes into prod, hopefully 3.15.3.
oyvindhagberg pushed a commit to unioslo/mreg that referenced this pull request Aug 22, 2024
* Add query string to logging output.
* Type checking fix (type->isinstance)
* Fix filters for Mreg (HostPolicy outstanding).
* Safer version of JSON filter to avoid SQL injections.
* Refactor, cleanup.
* Hostpolicy filter "fixes", also bump dependencies.

  - We are stuck on drf 3.14.0 due to encode/django-rest-framework#9358 until encode/django-rest-framework#9483 goes into prod, hopefully 3.15.3.

* Skeleton for testing filters.
* Add iexact support, add cases. Fix toml.
* Move to ruff formater.
* More tests.

  - Add ip support.
  - Add reverse lookups.

* Hostpolicy filter tests.
  - Also reformat as per ruff.
* Add a test for filtering on ?id= for hosts.
  - This should catch the generic issue of filtering on IDs. Ideally we'd do this for every model that supports ID...
* support `__in`.
* Support CIDR matching.
   - Match exact CIDR or IP within a CIDR.
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

Successfully merging this pull request may close these issues.

2 participants