-
Notifications
You must be signed in to change notification settings - Fork 116
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
evr="" is sent to the database on creating a Package #3122
Comments
This turned out to be a pulpcore issue. In pulpcore we start doing orm calls before all apps are ready. This results in django-readonly-fields doing its ninja-move to swap out the SQL Compiler before django computes it and caches it in https://github.com/django/django/blob/main/django/db/backends/base/operations.py#L361 . Lesson learned: Do not touch the orm before everything is ready. Plan to resolve: Move the installation of the telemetry schedule into a new worker-startup hook. |
Version
current main branches of everything.
Describe the bug
It looks like the evr field is translated into the insert query even if it was not set from the validated_data. Also it seems if should be populated by a database trigger and never be saved directly.
To Reproduce
run the pulp-cli test for rpm content
Expected behavior
test should pass
Additional context
Add any other context about the problem here. Please provide links to any previous discussions via Discourse or Bugzilla.
The text was updated successfully, but these errors were encountered: