-
Notifications
You must be signed in to change notification settings - Fork 53
update dependencies #1241
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
update dependencies #1241
Conversation
* Fix user deletion trying to delete UserProfile * UserProfile is not a db model since invenio-userprofiles v2.0
…ersion * UserProfile creation is no longer separate from User creation * UserProfile is only needed for patron1
1f6994f to
49dbd86
Compare
* UserProfile is no longer a model
* after the invenio-app update RATELIMIT_STORAGE_URL was renamed to RATELIMIT_STORAGE_URI
* after the flask>=3 update APP_ALLOWED_HOSTS was renamed to TRUSTED_HOSTS
* after the marshmallow 3.13 update `default` was replaced by `load_default`
1cd3756 to
42a3d3b
Compare
| @@ -0,0 +1,103 @@ | |||
| /* | |||
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.
workaround for invenio-theme to use as is. It expects this file to be present
| patron_loans = dump(get_loans_by_patron_pid(patron_pid)) | ||
|
|
||
| patron_profile = UserProfile.get_by_userid(patron_pid).__dict__ | ||
| del patron_profile["_sa_instance_state"] |
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.
what was the conclusion for this change? safe to remove?
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.
Since the profile is no longer a standalone table, but a JSON column in the users table, it does not have the _sa_instance_state field anymore. The field is something SQLAlchemy adds to ORM instances
97d9ed5 to
1aa49ca
Compare
closes: CERNDocumentServer/cds-ils#1006
tests are failing because it depends on PRs for dependent packages to be merged (e.g. inveniosoftware/invenio-pidrelations#32).
See the PRs in the issue linked above