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

IFC-739 Remove references to account role attribute #4990

Merged
merged 11 commits into from
Nov 22, 2024

Conversation

gmazoyer
Copy link
Contributor

No description provided.

@github-actions github-actions bot added the group/backend Issue related to the backend (API Server, Git Agent) label Nov 19, 2024
Copy link

codspeed-hq bot commented Nov 19, 2024

CodSpeed Performance Report

Merging #4990 will not alter performance

Comparing gma-20241119-ifc739 (686369d) with develop (d78cde7)

Summary

✅ 10 untouched benchmarks

@github-actions github-actions bot added the group/frontend Issue related to the frontend (React) label Nov 19, 2024
@gmazoyer gmazoyer force-pushed the gma-20241119-ifc739 branch 5 times, most recently from d18e252 to 8359128 Compare November 21, 2024 15:20
@gmazoyer gmazoyer marked this pull request as ready for review November 21, 2024 16:01
@gmazoyer gmazoyer requested review from a team November 21, 2024 16:01
]:
has_permission = False
for permission_backend in registry.permission_backends:
has_permission = await permission_backend.has_permission(
Copy link
Contributor

Choose a reason for hiding this comment

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

is a permission for ANY backend allowed or is it supposed to be ALL permission backends? either way, I think the current codes sets has_permission the value of the last call to permission_backend.has_permission, regardless of previous results

Copy link
Contributor Author

Choose a reason for hiding this comment

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

IIRC we decided that only one backend should reply "permission granted" to allow a user to do something. That said in many places we implented it differently by checking every backends response. That's why I did this the same way, but I think we should have another PR to fix that behaviour across the whole code base.

@gmazoyer gmazoyer force-pushed the gma-20241119-ifc739 branch from 8359128 to 234e55d Compare November 22, 2024 08:51
@gmazoyer gmazoyer force-pushed the gma-20241119-ifc739 branch from 234e55d to 686369d Compare November 22, 2024 09:36
@gmazoyer gmazoyer merged commit 175ae84 into develop Nov 22, 2024
32 of 33 checks passed
@gmazoyer gmazoyer deleted the gma-20241119-ifc739 branch November 22, 2024 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
group/backend Issue related to the backend (API Server, Git Agent) group/frontend Issue related to the frontend (React)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants