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

patrons: use marshmallow for API control #3216

Merged
merged 1 commit into from
Feb 7, 2023

Conversation

zannkukai
Copy link
Contributor

Use Marshmallow schema to control Patron resources through API. The
role field is now controlled to limit changes depending to current
connected user.

Co-Authored-by: Renaud Michotte renaud.michotte@gmail.com

@zannkukai zannkukai self-assigned this Jan 17, 2023
@github-actions github-actions bot added dev: DB Database structure (models.py) f: data About data model, importation, transformation, exportation of data, specific for bibliographic data f: data migration Data migration from a legacy system or a previous version f: user management labels Jan 17, 2023
@zannkukai zannkukai force-pushed the zan-patron-marshmallow branch 2 times, most recently from 7a2cf02 to 8a14125 Compare January 19, 2023 13:12
@github-actions github-actions bot added the f: permissions Concerns the rights management label Jan 19, 2023
@zannkukai zannkukai force-pushed the zan-patron-marshmallow branch from 8a14125 to 7d6ec54 Compare January 20, 2023 09:07
@zannkukai zannkukai marked this pull request as ready for review January 20, 2023 11:34
@zannkukai zannkukai force-pushed the zan-patron-marshmallow branch 2 times, most recently from d607327 to 61d2c72 Compare January 23, 2023 09:10
@zannkukai zannkukai force-pushed the zan-patron-marshmallow branch 2 times, most recently from 9fa21ab to 2ad324b Compare January 25, 2023 14:36
@zannkukai zannkukai force-pushed the zan-patron-marshmallow branch 2 times, most recently from 543b1f0 to 24dc062 Compare January 31, 2023 15:16
@github-actions github-actions bot added the dev: fixtures Fixtures data used for ils.test and ilsdev.test label Jan 31, 2023
@zannkukai zannkukai force-pushed the zan-patron-marshmallow branch 2 times, most recently from ee2ccd4 to 8b6b399 Compare January 31, 2023 21:07
@zannkukai zannkukai force-pushed the zan-patron-marshmallow branch from 8b6b399 to d792ce2 Compare February 6, 2023 15:08
* Use Marshmallow schema to control `Patron` resources through API. The
  `role` field is now controlled to limit changes depending to current
  connected user.
* Renames `User.get_by_id()` to `User.get_record()`
* Improves code coverage
* Include `public-holdings-items` CSS into document detail-view
* Fixes policies related to `Template` resource.

Co-Authored-by: Renaud Michotte <renaud.michotte@gmail.com>
@zannkukai zannkukai force-pushed the zan-patron-marshmallow branch from d792ce2 to c35b1c3 Compare February 6, 2023 16:27
@zannkukai zannkukai merged commit 75d5bda into rero:US-Permissions Feb 7, 2023
@zannkukai zannkukai deleted the zan-patron-marshmallow branch February 7, 2023 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev: DB Database structure (models.py) dev: fixtures Fixtures data used for ils.test and ilsdev.test f: data migration Data migration from a legacy system or a previous version f: data About data model, importation, transformation, exportation of data, specific for bibliographic data f: notifications f: permissions Concerns the rights management f: user management
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants