-
Notifications
You must be signed in to change notification settings - Fork 91
IAM | Remove Unneeded system_store Calls - Part 2
#9335
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
IAM | Remove Unneeded system_store Calls - Part 2
#9335
Conversation
WalkthroughThis PR centralizes account resolution by routing IAM handlers to account_util helpers. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
🧰 Additional context used🧠 Learnings (3)📚 Learning: 2025-12-04T10:55:08.659ZApplied to files:
📚 Learning: 2025-11-19T15:03:42.260ZApplied to files:
📚 Learning: 2025-11-13T07:56:23.620ZApplied to files:
🧬 Code graph analysis (1)src/util/account_util.js (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🔇 Additional comments (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
8d9d3db to
1f5f320
Compare
Signed-off-by: shirady <57721533+shirady@users.noreply.github.com>
1f5f320 to
01cc125
Compare
Describe the Problem
Currently, there are many calls to
system_storein functions related to IAM.Note: Part 1 was in PR #9330.
Explain the Changes
system_store, mainly where it was to get therequested_accountand the use of the function_check_if_account_exists.Issues:
List of GAPs:
I think we need to move the create_user inside the account_server so we would have the req.account access and keep this file with small functionality.
Planned to work on the files: account_utils as well.
There is code duplication that I found; probably we can reduce more in the future.
Testing Instructions:
Containerized
docker run -p 5432:5432 -e POSTGRESQL_ADMIN_PASSWORD=noobaa quay.io/sclorg/postgresql-15-c9sNOOBAA_LOG_LEVEL=all ./node_modules/.bin/mocha src/test/integration_tests/api/iam/test_iam_basic_integration.jsSummary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.