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(admin-api): Get delegation providers #14943

Merged
merged 33 commits into from
May 28, 2024
Merged

Conversation

GunnlaugurG
Copy link
Member

@GunnlaugurG GunnlaugurG commented May 27, 2024

What

GET /providers endpoint in AdminApi that returns DelegationProviders and their DelegationTypes

Why

So we can display it in the ids-admin portal

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

    • Introduced a new controller for managing delegation providers with authentication and authorization.
    • Added support for fetching delegation providers and their types in a paginated format.
    • Enhanced API documentation and validation for delegation providers.
  • Bug Fixes

    • Improved access control for delegation provider endpoints.
  • Tests

    • Added extensive test cases for delegation provider functionalities including authentication and authorization.
  • Documentation

    • Updated API documentation for delegation providers.
  • Refactor

    • Modularized delegation provider functionalities for better maintainability.

@GunnlaugurG GunnlaugurG requested review from a team as code owners May 27, 2024 13:49
Copy link
Contributor

coderabbitai bot commented May 27, 2024

Walkthrough

The changes introduce a new module, ProvidersModule, to the admin-api service for handling delegation providers. This includes adding a ProvidersController for fetching delegation providers, a service for retrieving them, and associated DTOs for data transfer. Additionally, the changes encompass tests for the new functionalities and update the auth-api-lib library to support these features.

Changes

File(s) Summary
apps/services/auth/admin-api/src/app/app.module.ts Added ProvidersModule import to app.module.ts.
apps/services/auth/admin-api/src/app/v2/providers/providers.controller.ts Introduced ProvidersController with a method to fetch delegation providers.
apps/services/auth/admin-api/src/app/v2/providers/providers.module.ts Defined ProvidersModule for handling authentication providers.
apps/services/auth/admin-api/src/app/v2/providers/test/provider-controller.spec.ts Added tests for ProvidersController including authentication and authorization checks.
apps/services/auth/delegation-api/src/app/delegations/test/delegations-controller/... Added constant delegationProviderTypesData defining delegation provider types.
libs/auth-api-lib/src/index.ts Exported new services and DTOs related to delegation providers.
libs/auth-api-lib/src/lib/delegations/delegation-provider.service.ts Created DelegationProviderService with a method to retrieve all delegation providers.
libs/auth-api-lib/src/lib/delegations/delegations.module.ts Added DelegationProviderService to DelegationsModule providers and exports.
libs/auth-api-lib/src/lib/delegations/dto/delegation-provider.dto.ts Defined DelegationProviderDto for delegation provider data.
libs/auth-api-lib/src/lib/delegations/dto/paginated-delegation-provider.dto.ts Introduced PaginatedDelegationProviderDto for paginated delegation provider data.
libs/auth-api-lib/src/lib/delegations/models/delegation-provider.model.ts Added toDTO method to DelegationProviderModel for converting to DelegationProviderDto.

Tip

Early Access Features
  • gpt-4o model for chat

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.
    • @coderabbitai help me debug CodeRabbit configuration file.

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 an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to full the review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @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.

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: 4

Outside diff range and nitpick comments (2)
apps/services/auth/delegation-api/src/app/delegations/test/delegations-controller/delegations.controller.spec.ts (2)

Line range hint 131-135: Refactor to use for...of instead of forEach for better performance and readability.

- testcase.apiScopes.forEach((scope) => factory.createApiScope(scope))
+ for (const scope of testcase.apiScopes) {
+   factory.createApiScope(scope)
+ }

- testcase.expectedTo?.forEach((id) => expect(testCase.expectedTo?.includes(id)).toBe(true))
+ for (const id of testCase.expectedTo ?? []) {
+   expect(testCase.expectedTo?.includes(id)).toBe(true)
+ }

Also applies to: 142-146


Line range hint 157-163: Remove duplicate afterAll hooks to prevent unintended side effects and ensure clean test teardown.

- afterAll(async () => {
-   await app.cleanUp()
- })

Also applies to: 165-167

Review Details

Configuration used: .coderabbit.yaml
Review profile: CHILL

Commits Files that changed from the base of the PR and between d47519b and 3215127.
Files selected for processing (11)
  • apps/services/auth/admin-api/src/app/app.module.ts (2 hunks)
  • apps/services/auth/admin-api/src/app/v2/providers/providers.controller.ts (1 hunks)
  • apps/services/auth/admin-api/src/app/v2/providers/providers.module.ts (1 hunks)
  • apps/services/auth/admin-api/src/app/v2/providers/test/provider-controller.spec.ts (1 hunks)
  • apps/services/auth/delegation-api/src/app/delegations/test/delegations-controller/delegations.controller.spec.ts (1 hunks)
  • libs/auth-api-lib/src/index.ts (2 hunks)
  • libs/auth-api-lib/src/lib/delegations/delegation-provider.service.ts (1 hunks)
  • libs/auth-api-lib/src/lib/delegations/delegations.module.ts (2 hunks)
  • libs/auth-api-lib/src/lib/delegations/dto/delegation-provider.dto.ts (1 hunks)
  • libs/auth-api-lib/src/lib/delegations/dto/paginated-delegation-provider.dto.ts (1 hunks)
  • libs/auth-api-lib/src/lib/delegations/models/delegation-provider.model.ts (2 hunks)
Files skipped from review due to trivial changes (2)
  • apps/services/auth/admin-api/src/app/app.module.ts
  • libs/auth-api-lib/src/lib/delegations/dto/delegation-provider.dto.ts
Additional Context Used
Biome (21)
apps/services/auth/admin-api/src/app/v2/providers/providers.controller.ts (4)

38-38: Decorators are not valid here.


1-8: Some named imports are only used as types.


11-15: Some named imports are only used as types.


15-16: All these imports are only used as types.

apps/services/auth/admin-api/src/app/v2/providers/test/provider-controller.spec.ts (3)

96-105: Prefer for...of instead of forEach.


1-1: Some named imports are only used as types.


3-7: Some named imports are only used as types.

apps/services/auth/delegation-api/src/app/delegations/test/delegations-controller/delegations.controller.spec.ts (9)

131-135: Prefer for...of instead of forEach.


142-146: Prefer for...of instead of forEach.


157-163: Disallow duplicate setup and teardown hooks.


165-167: Disallow duplicate setup and teardown hooks.


2-3: All these imports are only used as types.


3-4: All these imports are only used as types.


5-6: Some named imports are only used as types.


7-8: All these imports are only used as types.


9-14: Some named imports are only used as types.

libs/auth-api-lib/src/lib/delegations/delegation-provider.service.ts (3)

10-10: Decorators are not valid here.


12-12: Decorators are not valid here.


2-3: All these imports are only used as types.

libs/auth-api-lib/src/lib/delegations/dto/paginated-delegation-provider.dto.ts (1)

2-3: All these imports are only used as types.

libs/auth-api-lib/src/lib/delegations/models/delegation-provider.model.ts (1)

16-17: All these imports are only used as types.

Path-based Instructions (9)
apps/services/auth/admin-api/src/app/v2/providers/providers.module.ts (2)

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

  • NestJS architecture, including modules, services, and controllers.
  • Dependency injection patterns and service encapsulation.
  • Integration and unit testing coverage and practices."

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

  • NextJS best practices, including file structure, API routes, and static generation methods.
  • Efficient state management and server-side rendering techniques.
  • Optimal use of TypeScript for component and utility type safety."
libs/auth-api-lib/src/lib/delegations/dto/paginated-delegation-provider.dto.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."
libs/auth-api-lib/src/lib/delegations/delegation-provider.service.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."
libs/auth-api-lib/src/lib/delegations/models/delegation-provider.model.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."
apps/services/auth/admin-api/src/app/v2/providers/providers.controller.ts (2)

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

  • NestJS architecture, including modules, services, and controllers.
  • Dependency injection patterns and service encapsulation.
  • Integration and unit testing coverage and practices."

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

  • NextJS best practices, including file structure, API routes, and static generation methods.
  • Efficient state management and server-side rendering techniques.
  • Optimal use of TypeScript for component and utility type safety."
apps/services/auth/admin-api/src/app/v2/providers/test/provider-controller.spec.ts (2)

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

  • NestJS architecture, including modules, services, and controllers.
  • Dependency injection patterns and service encapsulation.
  • Integration and unit testing coverage and practices."

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

  • NextJS best practices, including file structure, API routes, and static generation methods.
  • Efficient state management and server-side rendering techniques.
  • Optimal use of TypeScript for component and utility type safety."
libs/auth-api-lib/src/lib/delegations/delegations.module.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."
apps/services/auth/delegation-api/src/app/delegations/test/delegations-controller/delegations.controller.spec.ts (2)

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

  • NestJS architecture, including modules, services, and controllers.
  • Dependency injection patterns and service encapsulation.
  • Integration and unit testing coverage and practices."

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

  • NextJS best practices, including file structure, API routes, and static generation methods.
  • Efficient state management and server-side rendering techniques.
  • Optimal use of TypeScript for component and utility type safety."
libs/auth-api-lib/src/index.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."
Additional comments not posted (11)
apps/services/auth/admin-api/src/app/v2/providers/providers.module.ts (1)

1-13: The module setup looks correct and adheres to NestJS best practices for module configuration.

libs/auth-api-lib/src/lib/delegations/dto/paginated-delegation-provider.dto.ts (1)

1-16: The DTO definitions are well-structured and correctly use validation and documentation decorators.

libs/auth-api-lib/src/lib/delegations/delegation-provider.service.ts (1)

1-37: The service logic for fetching delegation providers is implemented correctly and follows best practices for asynchronous operations and data mapping.

libs/auth-api-lib/src/lib/delegations/models/delegation-provider.model.ts (1)

Line range hint 1-63: The model definition and the toDTO method are correctly implemented, adhering to best practices for ORM models and data transformation.

apps/services/auth/admin-api/src/app/v2/providers/providers.controller.ts (2)

1-49: The controller logic is well-implemented, with clear and secure handling of API requests and responses.


1-49: Correct the usage of decorators for parameter decoration, which are incorrectly placed according to the static analysis.

- @CurrentAuth() auth: Auth,
+ @CurrentAuth() auth: Auth

Likely invalid or redundant comment.

apps/services/auth/admin-api/src/app/v2/providers/test/provider-controller.spec.ts (1)

1-112: The test coverage is comprehensive and well-structured, effectively validating the functionality and security of the providers endpoint.

libs/auth-api-lib/src/lib/delegations/delegations.module.ts (2)

77-77: Check if DelegationProviderService is correctly exported and used elsewhere in the application.

Verification successful

The DelegationProviderService is correctly imported and used in multiple locations within the application, including delegations.module.ts, providers.module.ts, and providers.controller.ts.

  • libs/auth-api-lib/src/lib/delegations/delegations.module.ts
  • libs/auth-api-lib/src/lib/delegations/delegation-provider.service.ts
  • apps/services/auth/admin-api/src/app/v2/providers/providers.module.ts
  • apps/services/auth/admin-api/src/app/v2/providers/providers.controller.ts
Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify the usage of `DelegationProviderService` across the application.

# Test: Search for the usage of `DelegationProviderService`. Expect: Correct usage in other modules or services.
rg --type typescript $'DelegationProviderService'

Length of output: 83



Script:

#!/bin/bash
# Description: Verify the usage of `DelegationProviderService` across the application.

# Test: Search for the usage of `DelegationProviderService`. Expect: Correct usage in other modules or services.
rg --type ts 'DelegationProviderService'

Length of output: 929


33-33: Ensure DelegationProviderService is properly imported from its file.

apps/services/auth/delegation-api/src/app/delegations/test/delegations-controller/delegations.controller.spec.ts (1)

23-46: Ensure the data structure of delegationProviderTypesData matches expected types and fields used in tests.

Verification successful

The data structure of delegationProviderTypesData matches the expected format and is correctly used in the test assertions and loops.

  • provider-controller.spec.ts:

    • Loops through delegationProviderTypesData and its delegationTypes.
    • Asserts the length of delegationProviderTypesData and its elements.
  • delegations.controller.spec.ts:

    • Defines delegationProviderTypesData with the expected structure.
Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify the data structure of `delegationProviderTypesData`.

# Test: Search for the usage of `delegationProviderTypesData` in test assertions. Expect: Correct usage matching the data structure.
rg --type typescript $'delegationProviderTypesData'

Length of output: 85



Script:

#!/bin/bash
# Description: Verify the data structure of `delegationProviderTypesData`.

# Test: Search for the usage of `delegationProviderTypesData` in test assertions. Expect: Correct usage matching the data structure.
rg --type ts 'delegationProviderTypesData'

Length of output: 949



Script:

#!/bin/bash
# Description: Extract relevant lines involving `delegationProviderTypesData` for detailed inspection.

# Extract lines from `provider-controller.spec.ts`
rg --type ts --context 5 'delegationProviderTypesData' apps/services/auth/admin-api/src/app/v2/providers/test/provider-controller.spec.ts

# Extract lines from `delegations.controller.spec.ts`
rg --type ts --context 5 'delegationProviderTypesData' apps/services/auth/delegation-api/src/app/delegations/test/delegations-controller/delegations.controller.spec.ts

Length of output: 1669

libs/auth-api-lib/src/index.ts (1)

Line range hint 34-46: Confirm that all newly exported entities are correctly implemented and used elsewhere in the application.

Verification successful

The newly exported entities DelegationProviderService, DelegationProviderDto, and PaginatedDelegationProviderDto are correctly implemented and used in various parts of the codebase.

  • DelegationProviderService is implemented in libs/auth-api-lib/src/lib/delegations/delegation-provider.service.ts and used in libs/auth-api-lib/src/lib/delegations/delegations.module.ts and apps/services/auth/admin-api/src/app/v2/providers/providers.controller.ts.
  • DelegationProviderDto is implemented in libs/auth-api-lib/src/lib/delegations/dto/delegation-provider.dto.ts and used in libs/auth-api-lib/src/lib/delegations/models/delegation-provider.model.ts and apps/services/auth/admin-api/src/app/v2/providers/test/provider-controller.spec.ts.
  • PaginatedDelegationProviderDto is implemented in libs/auth-api-lib/src/lib/delegations/dto/paginated-delegation-provider.dto.ts and used in libs/auth-api-lib/src/lib/delegations/delegation-provider.service.ts and apps/services/auth/admin-api/src/app/v2/providers/providers.controller.ts.

These findings confirm that the newly exported entities are properly implemented and utilized within the application.

Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify the implementation and usage of newly exported entities.

# Test: Search for the implementation and usage details of newly exported entities. Expect: Proper implementation and usage.
rg --type typescript $'DelegationProviderService|DelegationProviderDto|PaginatedDelegationProviderDto'

Length of output: 138



Script:

#!/bin/bash
# Description: Verify the implementation and usage of newly exported entities.

# Test: Search for the implementation and usage details of newly exported entities. Expect: Proper implementation and usage.
rg --type ts 'DelegationProviderService|DelegationProviderDto|PaginatedDelegationProviderDto'

Length of output: 2788

Copy link

codecov bot commented May 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 37.10%. Comparing base (719a66f) to head (01cc0cc).
Report is 2 commits behind head on main.

Current head 01cc0cc differs from pull request most recent head 00b676c

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

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #14943      +/-   ##
==========================================
+ Coverage   37.07%   37.10%   +0.03%     
==========================================
  Files        6355     6358       +3     
  Lines      129527   129553      +26     
  Branches    36987    36984       -3     
==========================================
+ Hits        48016    48070      +54     
+ Misses      81511    81483      -28     
Flag Coverage Δ
air-discount-scheme-backend 53.90% <ø> (+0.16%) ⬆️
air-discount-scheme-web 0.00% <ø> (ø)
api 3.48% <ø> (+0.02%) ⬆️
api-catalogue-services 77.85% <ø> (ø)
api-domains-air-discount-scheme 36.12% <ø> (+0.25%) ⬆️
api-domains-assets 26.71% <ø> (ø)
api-domains-auth-admin 57.91% <ø> (ø)
api-domains-communications 40.62% <ø> (+0.06%) ⬆️
api-domains-criminal-record 43.74% <ø> (+0.29%) ⬆️
api-domains-driving-license 44.42% <ø> (+0.15%) ⬆️
api-domains-education 33.79% <ø> (+0.28%) ⬆️
api-domains-health-insurance 27.34% <ø> (+0.18%) ⬆️
api-domains-mortgage-certificate 35.02% <ø> (+0.24%) ⬆️
api-domains-payment-schedule 40.49% <ø> (+0.26%) ⬆️
application-api-files 56.48% <ø> (+0.11%) ⬆️
application-core 71.81% <ø> (+0.34%) ⬆️
application-system-api 41.90% <ø> (+<0.01%) ⬆️
application-template-api-modules 24.35% <ø> (+0.02%) ⬆️
application-templates-accident-notification 19.67% <ø> (ø)
application-templates-car-recycling 4.23% <ø> (ø)
application-templates-criminal-record 21.67% <ø> (ø)
application-templates-driving-license 16.47% <ø> (ø)
application-templates-estate 11.75% <ø> (+<0.01%) ⬆️
application-templates-example-payment 20.49% <ø> (ø)
application-templates-financial-aid 11.95% <ø> (ø)
application-templates-general-petition 19.14% <ø> (ø)
application-templates-health-insurance 23.10% <ø> (ø)
application-templates-inheritance-report 3.96% <ø> (ø)
application-templates-parental-leave 28.43% <ø> (ø)
application-types 7.39% <ø> (ø)
application-ui-components 1.44% <ø> (ø)
application-ui-shell 21.73% <ø> (+<0.01%) ⬆️
auth-admin-web 2.43% <ø> (ø)
auth-api-lib 9.58% <0.00%> (-0.11%) ⬇️
auth-nest-tools 30.44% <ø> (ø)
auth-react 22.95% <ø> (ø)
auth-shared 75.00% <ø> (ø)
clients-charge-fjs-v2 22.58% <ø> (ø)
clients-driving-license 40.47% <ø> (+0.36%) ⬆️
clients-driving-license-book 43.89% <ø> (+0.28%) ⬆️
clients-financial-statements-inao 48.77% <ø> (+0.41%) ⬆️
clients-license-client 1.84% <ø> (ø)
clients-middlewares 73.19% <ø> (-0.20%) ⬇️
clients-regulations 42.21% <ø> (+0.40%) ⬆️
clients-rsk-company-registry 29.46% <ø> (+0.22%) ⬆️
clients-rsk-personal-tax-return 38.00% <ø> (ø)
clients-smartsolutions 12.77% <ø> (ø)
clients-syslumenn 49.74% <ø> (+0.02%) ⬆️
clients-zendesk 55.26% <ø> (ø)
cms 0.44% <ø> (ø)
cms-translations 39.73% <ø> (+0.06%) ⬆️
content-search-index-manager 95.65% <ø> (ø)
content-search-toolkit 8.57% <ø> (ø)
contentful-apps 6.24% <ø> (ø)
dokobit-signing 62.04% <ø> (+0.37%) ⬆️
download-service 44.31% <ø> (-0.18%) ⬇️
email-service 61.42% <ø> (ø)
feature-flags 90.00% <ø> (+0.34%) ⬆️
file-storage 51.92% <ø> (+0.49%) ⬆️
financial-aid-backend 56.44% <ø> (+0.05%) ⬆️
financial-aid-shared 17.34% <ø> (ø)
icelandic-names-registry-backend 53.95% <ø> (ø)
infra-nest-server 48.33% <ø> (ø)
infra-tracing 43.24% <ø> (ø)
island-ui-core 28.98% <ø> (ø)
judicial-system-api 17.63% <ø> (ø)
judicial-system-audit-trail 67.31% <ø> (+0.36%) ⬆️
judicial-system-backend 56.13% <ø> (+0.03%) ⬆️
judicial-system-formatters 82.08% <ø> (ø)
judicial-system-message 65.78% <ø> (+0.27%) ⬆️
judicial-system-message-handler 66.00% <ø> (+0.12%) ⬆️
license-api 43.18% <ø> (+0.10%) ⬆️
localization 10.15% <ø> (ø)
logging 48.43% <ø> (ø)
message-queue 68.39% <ø> (ø)
nest-audit 68.20% <ø> (ø)
nest-config 77.47% <ø> (+0.27%) ⬆️
nest-feature-flags 51.33% <ø> (+0.26%) ⬆️
nest-problem 46.08% <ø> (ø)
nest-sequelize 94.44% <ø> (ø)
nest-swagger 52.06% <ø> (ø)
nova-sms 63.41% <ø> (ø)
portals-admin-regulations-admin 2.06% <ø> (ø)
portals-core 16.14% <ø> (ø)
reference-backend 50.31% <ø> (ø)
regulations 16.90% <ø> (ø)
residence-history 85.00% <ø> (ø)
services-auth-admin-api 52.05% <100.00%> (+0.43%) ⬆️
services-auth-delegation-api 61.85% <79.41%> (+0.16%) ⬆️
services-auth-ids-api 54.23% <79.41%> (+0.20%) ⬆️
services-auth-personal-representative 48.62% <79.41%> (+0.22%) ⬆️
services-auth-personal-representative-public 44.41% <73.52%> (+0.17%) ⬆️
services-auth-public-api 49.87% <79.41%> (+0.16%) ⬆️
services-user-notification 47.60% <ø> (+0.02%) ⬆️
services-user-profile 62.85% <ø> (+0.14%) ⬆️
shared-components 27.80% <ø> (-0.04%) ⬇️
shared-form-fields 31.87% <ø> (ø)
shared-mocking 64.62% <ø> (ø)
shared-pii 92.85% <ø> (ø)
shared-problem 87.50% <ø> (ø)
shared-utils 26.14% <ø> (ø)
skilavottord-ws 23.78% <ø> (ø)
web 1.91% <ø> (+<0.01%) ⬆️

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

Files Coverage Δ
apps/services/auth/admin-api/src/app/app.module.ts 100.00% <100.00%> (ø)
...n-api/src/app/v2/providers/providers.controller.ts 100.00% <100.00%> (ø)
...admin-api/src/app/v2/providers/providers.module.ts 100.00% <100.00%> (ø)
libs/auth-api-lib/src/index.ts 100.00% <100.00%> (ø)
...src/lib/delegations/delegation-provider.service.ts 100.00% <100.00%> (ø)
...-api-lib/src/lib/delegations/delegations.module.ts 100.00% <100.00%> (ø)
...src/lib/delegations/dto/delegation-provider.dto.ts 100.00% <100.00%> (ø)
...legations/dto/paginated-delegation-provider.dto.ts 100.00% <100.00%> (ø)
...ib/delegations/models/delegation-provider.model.ts 100.00% <100.00%> (ø)

... and 25 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 5712a3a...00b676c. Read the comment docs.

@datadog-island-is
Copy link

datadog-island-is bot commented May 27, 2024

Datadog Report

All test runs 6f6de2b 🔗

14 Total Test Services: 0 Failed, 14 Passed
🔻 Test Sessions change in coverage: 1 decreased (-0.06%), 6 increased, 32 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.87s 1 no change Link
api-domains-auth-admin 0 0 0 18 0 18.58s 1 no change Link
application-system-api 0 0 0 111 2 3m 8.34s 1 no change Link
application-template-api-modules 0 0 0 109 0 2m 15.35s 1 no change Link
application-ui-shell 0 0 0 74 0 1m 0.3s 1 no change Link
auth-api-lib 0 0 0 13 0 53.55s 1 decreased (-0.06%) Link
services-auth-admin-api 0 0 0 108 0 3m 35.3s 1 increased (+0.33%) Link
services-auth-delegation-api 0 0 0 254 0 3m 36.26s 1 increased (+0.12%) Link
services-auth-ids-api 0 0 0 193 0 1m 27.05s 1 increased (+0.15%) Link
services-auth-personal-representative 0 0 0 59 0 1m 23.75s 1 increased (+0.17%) Link

🔻 Code Coverage Decreases vs Default Branch (1)

  • auth-api-lib - jest 10.76% (-0.06%) - Details

@GunnlaugurG GunnlaugurG added the automerge Merge this PR as soon as all checks pass label May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Merge this PR as soon as all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants