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

feat(ids-auth): adding @skagafjordur.is/ibuagatt to delegation config #14913

Merged
merged 2 commits into from
May 24, 2024

Conversation

jonarnarbriem
Copy link
Member

@jonarnarbriem jonarnarbriem commented May 23, 2024

individuals should not be able to grant the delegation @skagafjordur.is/ibuagatt

...

Attach a link to issue if relevant

What

Specify what you're trying to achieve

Why

Specify why you need to achieve this

Screenshots / Gifs

Attach Screenshots / Gifs to help reviewers understand the scope of the pull request

Checklist:

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • Formatting passes locally with my changes
  • I have rebased against main before asking for a review

Summary by CodeRabbit

  • New Features
    • Added new scope configuration for @skagafjordur.is/ibuagatt, supporting ProcurationHolder and Custom delegation types.

@jonarnarbriem jonarnarbriem requested review from a team as code owners May 23, 2024 14:45
Copy link
Contributor

coderabbitai bot commented May 23, 2024

Walkthrough

A new scope configuration has been introduced in the DelegationConfig.ts file within the auth-api-lib library. This configuration specifically pertains to @skagafjordur.is/ibuagatt and includes the delegation types ProcurationHolder and Custom. This change enhances the delegation capabilities for the specified scope, allowing for more tailored access control.

Changes

File Path Change Summary
libs/auth-api-lib/src/lib/delegations/DelegationConfig.ts Added a new scope configuration for @skagafjordur.is/ibuagatt with ProcurationHolder and Custom delegation types.

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@jonarnarbriem jonarnarbriem changed the title feat(iids-auth): adding @skagafjordur.is/ibuagatt to delegation config feat(ids-auth): adding @skagafjordur.is/ibuagatt to delegation config May 23, 2024
@jonarnarbriem jonarnarbriem added the deprecated:automerge (Disabled) Merge this PR as soon as all checks pass label May 23, 2024
Copy link

codecov bot commented May 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 37.10%. Comparing base (65c4d2e) to head (16d2c22).
Report is 2 commits behind head on main.

Current head 16d2c22 differs from pull request most recent head a20666b

Please upload reports for the commit a20666b to get more accurate results.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main   #14913   +/-   ##
=======================================
  Coverage   37.10%   37.10%           
=======================================
  Files        6353     6353           
  Lines      129358   129356    -2     
  Branches    36934    36933    -1     
=======================================
+ Hits        47994    47996    +2     
+ Misses      81364    81360    -4     
Flag Coverage Δ
air-discount-scheme-backend 53.95% <ø> (ø)
air-discount-scheme-web 0.00% <ø> (ø)
api 3.48% <ø> (ø)
api-domains-air-discount-scheme 36.25% <ø> (ø)
api-domains-assets 26.71% <ø> (ø)
api-domains-auth-admin 57.91% <ø> (ø)
api-domains-communications 40.62% <ø> (ø)
api-domains-driving-license 44.50% <ø> (ø)
api-domains-education 33.79% <ø> (ø)
api-domains-mortgage-certificate 35.02% <ø> (ø)
api-domains-payment-schedule 40.61% <ø> (ø)
application-api-files 56.48% <ø> (ø)
application-core 71.72% <ø> (ø)
application-system-api 41.94% <ø> (+<0.01%) ⬆️
application-template-api-modules 24.38% <ø> (+<0.01%) ⬆️
application-templates-accident-notification 19.67% <ø> (ø)
application-templates-car-recycling 4.23% <ø> (ø)
application-templates-criminal-record 21.67% <ø> (ø)
application-templates-driving-license 16.52% <ø> (ø)
application-templates-estate 11.75% <ø> (ø)
application-templates-example-payment 20.49% <ø> (ø)
application-templates-financial-aid 12.07% <ø> (ø)
application-templates-general-petition 19.14% <ø> (ø)
application-templates-health-insurance 23.10% <ø> (ø)
application-templates-inheritance-report 3.96% <ø> (ø)
application-types 7.39% <ø> (ø)
application-ui-components 1.44% <ø> (ø)
application-ui-shell 21.73% <ø> (ø)
auth-api-lib 9.63% <ø> (+0.01%) ⬆️
clients-charge-fjs-v2 22.58% <ø> (ø)
clients-driving-license 40.38% <ø> (ø)
clients-driving-license-book 43.89% <ø> (ø)
clients-financial-statements-inao 48.77% <ø> (ø)
clients-license-client 1.84% <ø> (ø)
clients-regulations 42.21% <ø> (ø)
clients-rsk-company-registry 29.46% <ø> (ø)
clients-rsk-personal-tax-return 38.00% <ø> (ø)
clients-smartsolutions 12.77% <ø> (ø)
clients-syslumenn 49.74% <ø> (ø)
cms 0.44% <ø> (ø)
cms-translations 39.73% <ø> (ø)
dokobit-signing 62.04% <ø> (ø)
download-service 44.39% <ø> (ø)
feature-flags 90.00% <ø> (ø)
file-storage 51.92% <ø> (ø)
financial-aid-backend 56.49% <ø> (ø)
judicial-system-api 17.61% <ø> (ø)
judicial-system-audit-trail 67.22% <ø> (ø)
judicial-system-backend 56.12% <ø> (ø)
judicial-system-message 65.78% <ø> (ø)
judicial-system-message-handler 66.00% <ø> (ø)
judicial-system-scheduler 57.82% <ø> (ø)
license-api 43.21% <ø> (-0.09%) ⬇️
nest-config 77.47% <ø> (ø)
nest-feature-flags 51.33% <ø> (ø)
portals-admin-regulations-admin 2.08% <ø> (ø)
portals-core 16.14% <ø> (ø)
services-auth-admin-api 51.70% <ø> (ø)
services-auth-delegation-api 61.77% <ø> (ø)
services-auth-ids-api 54.13% <ø> (+0.02%) ⬆️
services-auth-personal-representative 48.49% <ø> (+0.04%) ⬆️
services-auth-personal-representative-public 44.22% <ø> (-0.04%) ⬇️
services-auth-public-api 49.73% <ø> (ø)
services-endorsements-api 55.41% <ø> (ø)
services-sessions 65.42% <ø> (ø)
services-university-gateway 48.55% <ø> (+0.11%) ⬆️
services-user-notification 47.64% <ø> (ø)
services-user-profile 62.89% <ø> (ø)
web 1.91% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...th-api-lib/src/lib/delegations/DelegationConfig.ts 100.00% <ø> (ø)

... and 4 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dc281e8...a20666b. Read the comment docs.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Outside diff range and nitpick comments (1)
libs/auth-api-lib/src/lib/delegations/DelegationConfig.ts (1)

98-105: The addition of @skagafjordur.is/ibuagatt to customScopeRules is correctly implemented.

Consider adding a comment explaining why this specific scope is important or its intended use, to aid future maintainability.

Review Details

Configuration used: .coderabbit.yaml
Review profile: CHILL

Commits Files that changed from the base of the PR and between 5f5ea62 and 16d2c22.
Files selected for processing (1)
  • libs/auth-api-lib/src/lib/delegations/DelegationConfig.ts (1 hunks)
Additional Context Used
Path-based Instructions (1)
libs/auth-api-lib/src/lib/delegations/DelegationConfig.ts (1)

Pattern libs/**/*: "Confirm that the code adheres to the following:

  • Reusability of components and hooks across different NextJS apps.
  • TypeScript usage for defining props and exporting types.
  • Effective tree-shaking and bundling practices."

@datadog-island-is
Copy link

datadog-island-is bot commented May 23, 2024

Datadog Report

All test runs 5ba642d 🔗

27 Total Test Services: 0 Failed, 27 Passed
🔻 Test Sessions change in coverage: 2 decreased, 2 increased, 85 no change

Test Services
This report shows up to 10 services
Service Name Failed Known Flaky New Flaky Passed Skipped Total Time Code Coverage Change Test Service View
api 0 0 0 4 0 4.51s 1 no change Link
api-domains-auth-admin 0 0 0 18 0 16.58s 1 no change Link
application-api-files 0 0 0 12 0 10.29s 1 no change Link
application-system-api 0 0 0 111 2 3m 6.71s 1 no change Link
application-template-api-modules 0 0 0 109 0 1m 51.16s 1 decreased (-0.01%) Link
application-templates-accident-notification 0 0 0 98 0 26.24s 1 no change Link
application-templates-criminal-record 0 0 0 2 0 17.22s 1 no change Link
application-templates-driving-license 0 0 0 13 0 19.08s 1 no change Link
application-templates-example-payment 0 0 0 2 0 15.72s 1 no change Link
application-templates-financial-aid 0 0 0 11 0 23.86s 1 decreased (-0.11%) Link

🔻 Code Coverage Decreases vs Default Branch (2)

  • application-templates-financial-aid - jest 15.53% (-0.11%) - Details
  • application-template-api-modules - jest 26.24% (-0.01%) - Details

@kodiakhq kodiakhq bot merged commit 38a0b33 into main May 24, 2024
67 checks passed
@kodiakhq kodiakhq bot deleted the feat/delegation-config-skagafjordur branch May 24, 2024 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deprecated:automerge (Disabled) Merge this PR as soon as all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants