-
Notifications
You must be signed in to change notification settings - Fork 20
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
feat: adding guard rails to content query association setter to prevent large negative deltas #829
feat: adding guard rails to content query association setter to prevent large negative deltas #829
Conversation
47cead6
to
18a6d80
Compare
f"content metadata set of length of {new_relations_size} when it previous had a content " | ||
f"metadata set length of:{existing_relations_size}. The updated is prevented" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we log the percentage diff and the threshold we're working with?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the percent dif is just new / old. But I'm fine with logging the threshold.
349be9f
to
e40c725
Compare
f12f5ee
to
727e8cd
Compare
727e8cd
to
a4decba
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good idea, and the ADR is very useful, thank you!
|
||
@override_settings(DISCOVERY_CATALOG_QUERY_CACHE_TIMEOUT=0) | ||
@mock.patch('enterprise_catalog.apps.api_client.discovery.DiscoveryApiClient') | ||
def test_associate_content_metadata_with_query_guardrails(self, mock_client): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great job on a thorough test!
a4decba
to
07d8d93
Compare
2ac6d18
to
11a15ab
Compare
…nt large negative deltas
11a15ab
to
f2e9eca
Compare
…ery-association-guard-rails feat: adding guard rails to content query association setter to prevent large negative deltas
https://2u-internal.atlassian.net/browse/ENT-8778
Post-review