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

api: create new endpoint for access/users #1673

Merged

Conversation

anikachurilova
Copy link
Contributor

@anikachurilova anikachurilova marked this pull request as draft February 21, 2024 13:24
Copy link
Member

@0einstein0 0einstein0 left a comment

Choose a reason for hiding this comment

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

Reviewed with @jrcastro2. Left a few comments. LGTU
Thank you for extensive tests 🚀

invenio_rdm_records/resources/resources.py Show resolved Hide resolved
invenio_rdm_records/services/access/service.py Outdated Show resolved Hide resolved
invenio_rdm_records/services/access/service.py Outdated Show resolved Hide resolved
invenio_rdm_records/services/config.py Show resolved Hide resolved
@anikachurilova anikachurilova marked this pull request as ready for review February 26, 2024 10:16
@anikachurilova anikachurilova force-pushed the rework-access-users-endpoint branch 5 times, most recently from d741bf5 to 1a2e551 Compare February 26, 2024 16:40
Copy link
Member

@alejandromumo alejandromumo left a comment

Choose a reason for hiding this comment

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

Thanks a lot!

Apart from the review with @ptamarit, here are some comments:

  • Naming consistency: I see we have RDMGrantsAccessResource, RDMGrantUserAccessResource (see the plural grants )
  • The records service is growing a lot, would it make sense to split these new *_grant_by_subject method calls?
  • access grants users and access grants live in the same service since they are similar (related to record access), however, they seem to be different now in terms of functionality.

We can also chat IRL so I can get better context about the change.

@anikachurilova anikachurilova force-pushed the rework-access-users-endpoint branch 3 times, most recently from 8abd3ae to 2764dd7 Compare March 7, 2024 13:07
invenio_rdm_records/resources/config.py Outdated Show resolved Hide resolved
invenio_rdm_records/resources/config.py Outdated Show resolved Hide resolved
invenio_rdm_records/resources/config.py Outdated Show resolved Hide resolved
@anikachurilova anikachurilova force-pushed the rework-access-users-endpoint branch 2 times, most recently from 2006032 to 1073274 Compare April 3, 2024 14:30
* add resource and service layer
* add error handerls
* add links
* cover with tests
* closes inveniosoftware#1671
@zzacharo zzacharo merged commit 1c2b92b into inveniosoftware:master Apr 4, 2024
8 checks passed
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.

api: rework access/users endpoint
7 participants