-
Notifications
You must be signed in to change notification settings - Fork 61
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
chore(deps): Update @aws-sdk
client libraries
#16887
base: main
Are you sure you want to change the base?
Conversation
WalkthroughThis pull request involves multiple updates across various files, primarily focusing on dependency version updates in Changes
Possibly related PRs
Suggested Labels
Suggested Reviewers
✨ Finishing Touches
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? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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 using PR comments)
Other keywords and placeholders
Documentation and Community
|
@aws-sdk
client libraries (#16839)" (#16884)@aws-sdk
client libraries
Datadog ReportAll test runs ✅ 10 Total Test Services: 0 Failed, 10 Passed Test ServicesThis report shows up to 10 services
🔻 Code Coverage Decreases vs Default Branch (3) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to move this out of docker, good job 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Outside diff range and nitpick comments (1)
.github/workflows/push.yml (1)
661-670
: LGTM with a suggestion for improved error handling.The Docker build step correctly sets up the build arguments and executes the build script. However, consider adding error handling for the case when environment variables are undefined.
- name: Docker build and push helm-config image working-directory: infra env: PUBLISH: 'true' run: | set -euxo pipefail + : "${DOCKER_BASE_IMAGE_REGISTRY:?Required environment variable is not set}" + : "${NODE_IMAGE_TAG:?Required environment variable is not set}" echo Registry is: ${{env.DOCKER_BASE_IMAGE_REGISTRY}} echo Image tag is: ${{env.NODE_IMAGE_TAG}} export EXTRA_DOCKER_BUILD_ARGS="--build-arg DOCKER_IMAGE_REGISTRY=${{env.DOCKER_BASE_IMAGE_REGISTRY}} --build-arg NODE_IMAGE_TAG=${{env.NODE_IMAGE_TAG}}" ./scripts/build-docker-container.sh "$DOCKER_TAG"
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
📒 Files selected for processing (3)
.github/workflows/push.yml
(2 hunks)infra/scripts/Dockerfile
(1 hunks)infra/scripts/build-docker-container.sh
(1 hunks)
🚧 Files skipped from review as they are similar to previous changes (2)
- infra/scripts/Dockerfile
- infra/scripts/build-docker-container.sh
Low value, high risk, everything affected. Closed. |
…cation-templates-social-insurance-administration-additional-support-for-the-elderly,application-templates-transport-authority-order-vehicle-registration-certificate,application-templates-social-insurance-administration-household-supplement,application-templates-transport-authority-digital-tachograph-workshop-card,application-templates-transport-authority-digital-tachograph-company-card,application-templates-transport-authority-digital-tachograph-drivers-card,application-templates-social-insurance-administration-pension-supplement,application-templates-transport-authority-anonymity-in-vehicle-registry,application-templates-transport-authority-transfer-of-vehicle-ownership,application-templates-parliamentary-list-creation,application-templates-parliamentary-list-signing,application-templates-presidential-list-creation,application-templates-social-insurance-administration-old-age-pension,application-templates-transport-authority-order-vehicle-license-plate,application-templates-presidential-list-signing,application-templates-social-insurance-administration-death-benefits,application-templates-transport-authority-change-co-owner-of-vehicle,application-templates-transport-authority-change-operator-of-vehicle,fiancial-statement-individual-election,application-templates-children-residence-change-v2,application-templates-social-insurance-administration-income-plan,clients-university-application-agricultural-university-of-iceland,application-templates-transport-authority-license-plate-renewal,application-templates-inao-financial-statement-political-party,clients-university-application-iceland-university-of-the-arts,api-domains-administration-of-occupational-safety-and-health,application-templates-directorate-of-immigration-citizenship,application-templates-driving-license-book-update-instructor,clients-transport-authority-digital-tachograph-drivers-card,application-templates-social-insurance-administration-core,application-templates-aosh-transfer-of-machine-ownership,clients-administration-of-occupational-safety-and-health,financial-statement-cemetery,api-domains-icelandic-government-institution-vacancies,application-templates-complaints-to-althingi-ombudsman,application-templates-driving-instructor-registrations,application-templates-aosh-work-accident-notification,clients-university-application-university-of-akureyri,application-templates-aosh-change-machine-supervisor,application-templates-european-health-insurance-card,application-templates-healthcare-license-certificate,clients-university-application-university-of-iceland,api-domains-financial-statement-individual-election,api-domains-official-journal-of-iceland-application,clients-health-insurance,clients-university-application-reykjavik-university,application-templates-document-provider-onboarding,application-templates-health-insurance-declaration,clients-icelandic-government-institution-vacancies,clients-transport-authority-vehicle-plate-ordering,application-templates-aosh-request-for-inspection,application-templates-driving-assessment-approval,application-templates-driving-school-confirmation,application-templates-funding-government-projects,application-templates-official-journal-of-iceland,clients-transport-authority-vehicle-plate-renewal,clients-university-application-bifrost-university,clients-rights-portal,clients-transport-authority-vehicle-owner-change,application-templates-aosh-register-new-machine,application-templates-data-protection-complaint,application-templates-driving-license-duplicate,application-templates-financial-statements-inao,application-templates-institution-collaboration,clients-official-journal-of-iceland-application,clients-university-application-holar-university,application-templates-aosh-street-registration,application-templates-grindavik-housing-buyout,application-templates-public-debt-payment-plan,clients-transport-authority-vehicle-codetables,application-templates-aosh-deregister-machine,application-templates-driving-learners-permit,application-templates-general-fishing-license,clients-transport-authority-vehicle-infolocks,clients-transport-authority-vehicle-operators,portals-my-pages-education-student-assessment,portals-my-pages-social-insurance-maintenance,application-templates-alcohol-tax-redemption,application-templates-healthcare-work-permit,clients-transport-authority-vehicle-printing,services-auth-personal-representative-public,application-templates-accident-notification,application-templates-announcement-of-death,application-templates-mortgage-certificate,clients-official-journal-of-iceland,application-templates-family-matters-core,application-templates-marriage-conditions,application-templates-no-debt-certificate,api-domains-financial-statement-cemetery,api-domains-municipalities-financial-aid,application-templates-inheritance-report,application-templates-new-primary-school,application-templates-passport-annulment,application-templates-reference-template,api-domains-official-journal-of-iceland,application-templates-operating-license,clients-district-commissioners-licenses,clients-social-insurance-administration,api-domains-housing-benefit-calculator,application-templates-general-petition,application-templates-health-insurance,application-templates-secondary-school,portals-admin-icelandic-names-registry,portals-my-pages-occupational-licenses,api-domains-financial-statements-inao,application-templates-criminal-record,application-templates-driving-license,application-templates-example-payment,clients-ums-cost-of-living-calculator,portals-my-pages-signature-collection,services-auth-personal-representative,api-domains-icelandic-names-registry,api-domains-national-registry-x-road,api-domains-occupational-licenses-v2,application-templates-parental-leave,clients-municipalities-financial-aid,api-domains-intellectual-properties,application-templates-car-recycling,application-templates-financial-aid,application-templates-login-service,judicial-system-digital-mailbox-api,application-templates-energy-funds,application-templates-home-support,clients-directorate-of-immigration,clients-housing-benefit-calculator,portals-admin-signature-collection,portals-my-pages-education-license,portals-shared-modules-delegations,regulations-admin-backend,api-domains-directorate-of-labour,api-domains-occupational-licenses,api-domains-watson-assistant-chat,clients-data-protection-complaint,clients-financial-statements-inao,contentful-role-permissions,portals-admin-air-discount-scheme,portals-my-pages-education-career,portals-my-pages-education-degree,api-domains-driving-license-book,api-domains-mortgage-certificate,api-domains-signature-collection,api-domains-umbodsmadur-skuldara,application-template-api-modules,application-templates-university,icelandic-names-registry-backend,portals-admin-application-system,services-contentful-entry-tagger,api-consultation-portal,api-domains-air-discount-scheme,api-domains-transport-authority,clients-adr-and-machine-license,clients-intellectual-properties,clients-judicial-administration,clients-rsk-personal-tax-return,island-ui-vanilla-extract-utils,judicial-system-message-handler,portals-admin-document-provider,portals-admin-regulations-admin,api-domains-disability-license,api-domains-endorsement-system,api-domains-health-directorate,api-domains-university-careers,api-domains-university-gateway,application-templates-passport,clients-university-gateway-api,clients-vehicle-service-fjs-v1,delegation-admin,icelandic-names-registry-types,portals-my-pages-law-and-order,api-domains-aircraft-registry,api-domains-document-provider,api-domains-national-registry,api-domains-regulations-admin,application-templates-id-card,clients-ultraviolet-radiation,my-pages-air-discount,portals-my-pages-applications,portals-my-pages-restrictions,api-domains-company-registry,api-domains-health-insurance,api-domains-housing-benefits,api-domains-payment-schedule,api-domains-secondary-school,api-domains-social-insurance,application-templates-estate,application-templates-p-sign,clients-driving-license-book,clients-hms-housing-benefits,clients-national-registry-v2,clients-national-registry-v3,clients-rsk-company-registry,clients-signature-collection,content-search-index-manager,content-search-indexer-types,judicial-system-court-client,portals-my-pages-information,services-auth-delegation-api,air-discount-scheme-backend,api-domains-criminal-record,api-domains-driving-license,api-domains-fishing-license,api-domains-license-service,application-template-loader,clients-air-discount-scheme,clients-auth-delegation-api,clients-consultation-portal,judicial-system-audit-trail,services-university-gateway,air-discount-scheme-consts,api-domains-communications,api-domains-content-search,clients-althingi-ombudsman,clients-disability-license,clients-health-directorate,clients-judicial-system-sp,clients-smart-solutions-v2,clients-university-careers,judicial-system-formatters,portals-admin-service-desk,portals-my-pages-constants,portals-my-pages-documents,portals-my-pages-education,portals-my-pages-petitions,services-user-notification,air-discount-scheme-types,aircraft-registry,api-domains-api-catalogue,api-domains-law-and-order,api-domains-notifications,api-domains-rights-portal,api-domains-ship-registry,api-domains-work-machines,application-ui-components,clients-document-provider,clients-regulations-admin,clients-rsk-relationships,clients-user-notification,clients-work-accident-ver,financial-aid-web-osk-e2e,judicial-system-scheduler,portals-admin-form-system,portals-my-pages-licenses,portals-my-pages-sessions,services-endorsements-api,api-domains-email-signup,api-domains-energy-funds,api-domains-user-profile,clients-payment-schedule,clients-secondary-school,clients-vehicles-mileage,clients-workpoint-arborg,external-contracts-tests,portals-my-pages-consent,portals-my-pages-finance,portals-my-pages-graphql,services-auth-public-api,services-xroad-collector,air-discount-scheme-api,air-discount-scheme-web,api-domains-application,api-domains-file-upload,api-domains-regulations,api/domains/form-system,application-api-history,application-api-payment,application-system-form,clients-auth-public-api,clients-criminal-record,clients-driving-license,clients-firearm-license,clients-fishing-license,clients-hunting-license,financial-aid-web-veita,judicial-system-backend,judicial-system-lawyers,judicial-system-message,judicial-system-xrd-api,portals-admin-ids-admin,portals-my-pages-assets,portals-my-pages-health,services-auth-admin-api,services-search-indexer,api-catalogue-services,api-domains-auth-admin,api-domains-fiskistofa,api-domains-statistics,application-system-api,clients-auth-admin-api,clients-ehic-client-v1,clients-license-client,clients-smartsolutions,content-search-indexer,content-search-metrics,content-search-toolkit,financial-aid-open-api,judicial-system-consts,portals-admin-petition,api-catalogue-elastic,api-domains-documents,api-domains-education,api-domains-hms-loans,api-domains-syslumenn,application-api-files,application-ui-fields,clients-car-recycling,clients-charge-fjs-v2,clients-work-machines,financial-aid-backend,financial-aid-web-osk,judicial-system-types,portals-my-pages-core,services-auth-ids-api,services-auth-testing,services-user-profile,ship-registry,api-catalogue-consts,api-domains-identity,api-domains-passport,api-domains-sessions,api-domains-vehicles,application-api-core,application-ui-forms,application-ui-shell,clients-auth-ids-api,clients-documents-v2,clients-energy-funds,clients-user-profile,financial-aid-shared,github-actions-cache,infra-express-server,island-ui-contentful,judicial-system-auth,license-api,services-form-system,api-catalogue-types,api-domains-finance,api-domains-payment,application-graphql,application-testing,clients-middlewares,clients-mms,clients-regulations,consultation-portal,form-system-client,island-ui-storybook,judicial-system-api,judicial-system-web,react-feature-flags,shared-translations,skilavottord-consts,api-domains-assets,clients-finance-v2,clients-fiskistofa,clients-statistics,nest-feature-flags,portals-admin-core,reference-next-app,services-documents,shared-form-fields,skilavottord-types,testing-containers,university-gateway,application-types,application-utils,clients-documents,clients-hms-loans,clients-mms-frigg,clients-mms-grade,clients-passports,clients-syslumenn,financial-aid-api,infra-nest-server,infra-next-server,reference-backend,residence-history,services-sessions,shared-components,api-domains-auth,application-core,clients-identity,clients-islykill,clients-sessions,clients-vehicles,cms-translations,download-service,license,react-components,react-spa-shared,service-portal,shared-connected,shared-constants,skilavottord-web,testing-fixtures,auth-nest-tools,clients-finance,clients-zendesk,contentful-apps,dokobit-signing,island-ui-theme,island-ui-utils,nest-dataloader,nest-pagination,skilavottord-ws,user-monitoring,auth-admin-web,clients-assets,clients-p-card,island-ui-core,nest-sequelize,shared-mocking,shared-problem,email-service,feature-flags,infra-metrics,infra-tracing,message-queue,next-ids-auth,portals-admin,react-spa-bff,auth-api-lib,clients-inna,clients-vmst,file-storage,localization,nest-graphql,nest-problem,nest-swagger,portals-core,services-bff,shared-babel,shared-types,shared-utils,testing-nest,auth-scopes,auth-shared,clients-cms,nest-config,regulations,testing-e2e,api-schema,native-app,nest-audit,shared-pii,system-e2e,api-mocks,nest-core,plausible,nest-aws,nova-sms,logging,cache,api,cms,web update dirty files
Re-opening because it's still useful, and runners are less congested now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (3)
apps/financial-aid/backend/src/app/modules/staff/test/numberOfUsersForMunicipality.spec.ts (1)
Line range hint
1-89
: Consider enhancing test maintainability.While the tests are well-structured, consider these improvements for better maintainability:
- Extract test constants to a separate configuration object
- Add type assertions for the mock functions to improve type safety
- Consider using test data builders for complex objects
Example implementation:
// Test configuration const TEST_CONFIG = { DEFAULT_MUNICIPALITY_ID: uuid(), MOCK_USER_COUNT: 10, ERROR_MESSAGE: 'Some error' } as const; // Type-safe mock helper const createMockStaffModel = () => { const mockCount = jest.fn() as jest.MockedFunction<typeof StaffModel.count>; return { ...StaffModel, count: mockCount }; };apps/auth-admin-web/components/Client/nav/ClientTabNav.tsx (2)
Line range hint
24-39
: Enhance accessibility for tab navigation.While the component follows React best practices, it could benefit from improved accessibility features for the tab navigation.
Consider these improvements:
- Add
role="tablist"
to the<ul>
element- Add
role="tab"
to each button- Add
aria-selected
attribute to indicate the active tab- Use
aria-controls
to associate each tab with its panelExample implementation:
- <ul> + <ul role="tablist"> <li className={activetab === ClientTab.BasicForm ? 'active' : ''}> <button type="button" + role="tab" + aria-selected={activetab === ClientTab.BasicForm} onClick={() => handleTabChange(ClientTab.BasicForm)} className={activetab === ClientTab.BasicForm ? 'active' : ''}
Line range hint
6-9
: Strengthen type safety for theactiveTab
prop.The optional
activeTab
prop could lead to undefined behavior if not properly handled.Consider making the prop required or providing a default value:
interface Props { handleTabChange: (tab: ClientTab) => void - activeTab?: ClientTab + activeTab: ClientTab }Or provide a default prop value:
ClientTabNav.defaultProps = { activeTab: ClientTab.BasicForm, }
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (22)
apps/auth-admin-web/components/Admin/nav/AdminTabNav.tsx
(1 hunks)apps/auth-admin-web/components/Client/nav/ClientTabNav.tsx
(1 hunks)apps/contentful-apps/components/Layout.tsx
(1 hunks)apps/contentful-apps/components/LocalhostWarning.tsx
(1 hunks)apps/contentful-apps/components/MideindTranslationSidebar/fieldUtils/index.tsx
(1 hunks)apps/contentful-apps/pages/fields/active-translations-field.tsx
(1 hunks)apps/contentful-apps/pages/fields/admin-only-json-field.tsx
(1 hunks)apps/contentful-apps/pages/fields/admin-only-short-text-checkbox-list-field.tsx
(1 hunks)apps/contentful-apps/pages/fields/admin-only-short-text-dropdown-field.tsx
(1 hunks)apps/contentful-apps/pages/fields/admin-only-short-text-field.tsx
(1 hunks)apps/contentful-apps/pages/fields/admin-only-single-reference-field.tsx
(1 hunks)apps/contentful-apps/pages/fields/article-related-articles-field.tsx
(2 hunks)apps/contentful-apps/pages/fields/article-subarticles-field.tsx
(1 hunks)apps/contentful-apps/pages/fields/content-type-notifications-field.tsx
(1 hunks)apps/contentful-apps/pages/fields/embed-link-field.tsx
(1 hunks)apps/contentful-apps/pages/fields/form-default-namespace-field.tsx
(1 hunks)apps/contentful-apps/pages/fields/formatted-location-input-field.tsx
(1 hunks)apps/contentful-apps/pages/fields/publish-date-field.tsx
(1 hunks)apps/contentful-apps/pages/fields/theme-properties-field.tsx
(1 hunks)apps/contentful-apps/pages/fields/time-duration-field.tsx
(1 hunks)apps/contentful-apps/pages/fields/vacancy-contacts-field.tsx
(1 hunks)apps/financial-aid/backend/src/app/modules/staff/test/numberOfUsersForMunicipality.spec.ts
(1 hunks)
✅ Files skipped from review due to trivial changes (19)
- apps/contentful-apps/pages/fields/admin-only-json-field.tsx
- apps/contentful-apps/pages/fields/time-duration-field.tsx
- apps/contentful-apps/pages/fields/admin-only-short-text-field.tsx
- apps/contentful-apps/pages/fields/publish-date-field.tsx
- apps/contentful-apps/components/LocalhostWarning.tsx
- apps/auth-admin-web/components/Admin/nav/AdminTabNav.tsx
- apps/contentful-apps/components/MideindTranslationSidebar/fieldUtils/index.tsx
- apps/contentful-apps/pages/fields/active-translations-field.tsx
- apps/contentful-apps/pages/fields/vacancy-contacts-field.tsx
- apps/contentful-apps/pages/fields/admin-only-short-text-checkbox-list-field.tsx
- apps/contentful-apps/pages/fields/article-subarticles-field.tsx
- apps/contentful-apps/pages/fields/content-type-notifications-field.tsx
- apps/contentful-apps/pages/fields/admin-only-short-text-dropdown-field.tsx
- apps/contentful-apps/pages/fields/formatted-location-input-field.tsx
- apps/contentful-apps/pages/fields/article-related-articles-field.tsx
- apps/contentful-apps/pages/fields/theme-properties-field.tsx
- apps/contentful-apps/pages/fields/admin-only-single-reference-field.tsx
- apps/contentful-apps/pages/fields/embed-link-field.tsx
- apps/contentful-apps/components/Layout.tsx
🧰 Additional context used
📓 Path-based instructions (3)
apps/auth-admin-web/components/Client/nav/ClientTabNav.tsx (1)
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/financial-aid/backend/src/app/modules/staff/test/numberOfUsersForMunicipality.spec.ts (1)
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/contentful-apps/pages/fields/form-default-namespace-field.tsx (1)
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."
🔇 Additional comments (2)
apps/financial-aid/backend/src/app/modules/staff/test/numberOfUsersForMunicipality.spec.ts (1)
9-9
: Good improvement on type usage!The change from
Number
tonumber
follows TypeScript best practices by using the primitive type instead of the wrapper object type. This improves type safety and reduces potential boxing/unboxing operations.apps/contentful-apps/pages/fields/form-default-namespace-field.tsx (1)
2-2
: LGTM! Import organization follows best practices.The reorganization of imports improves code organization while maintaining proper type safety with the SDK. The component demonstrates good TypeScript practices and follows NextJS conventions.
Also applies to: 7-9
handleTabChange, | ||
activeTab: activetab, | ||
children, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Follow TypeScript naming conventions.
The prop rename from activeTab
to activetab
breaks the camelCase naming convention commonly used in TypeScript/React. This inconsistency could lead to confusion and maintenance issues.
Apply this diff to maintain consistent naming:
const ClientTabNav: React.FC<React.PropsWithChildren<Props>> = ({
handleTabChange,
- activeTab: activetab,
+ activeTab,
children,
}) => {
📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
handleTabChange, | |
activeTab: activetab, | |
children, | |
handleTabChange, | |
activeTab, | |
children, |
Depends on #16890.
Merged to
main
, was broken, trying again.This reverts commit af1d531.
Summary by CodeRabbit
Dependency Updates
Code Maintenance
No Functional Changes