Skip to content

fix: use caching to fetch role id#4

Open
Samk13 wants to merge 1 commit into
masterfrom
test-cache-from-acounts-utils-pr
Open

fix: use caching to fetch role id#4
Samk13 wants to merge 1 commit into
masterfrom
test-cache-from-acounts-utils-pr

Conversation

@Samk13

@Samk13 Samk13 commented Feb 20, 2026

Copy link
Copy Markdown
Owner

❤️ Thank you for your contribution!

Description

  • Refactor role retrieval to use resolve_role_id for consistency and clarity.

Checklist

Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:

Frontend

Reminder

By using GitHub, you have already agreed to the GitHub’s Terms of Service including that:

  1. You license your contribution under the same terms as the current repository’s license.
  2. You agree that you have the right to license your contribution under the current repository’s license.

* Refactor role retrieval to use resolve_role_id for
  consistency and clarity.
@Samk13
Samk13 force-pushed the test-cache-from-acounts-utils-pr branch from b6d7c92 to 0ecab4d Compare February 20, 2026 14:50
from invenio_communities.permissions import CommunityPermissionPolicy
from invenio_records_permissions.generators import Disable, Generator, SystemProcess
from invenio_accounts.proxies import current_datastore
from invenio_accounts.utils import resolve_role_id

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Does this require a PR for Invenio-Accounts?
I cannot find resolve_role_id in invenio_accounts.utils 👀

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

You are right! It's still a PR: inveniosoftware/invenio-accounts#548

@Samk13
Samk13 force-pushed the master branch 2 times, most recently from 950eac1 to 5dbf487 Compare June 10, 2026 13:24
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.

2 participants