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(vehicles): HOTFIX - bulk mileage registration #16255

Closed
wants to merge 3 commits into from

Conversation

thorkellmani
Copy link
Member

See
#15774
#16210
#16253

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

thorkellmani and others added 3 commits October 3, 2024 13:15
* Vehicle bulk mileage frontend

* feat: omg it works

* chore: remove logs

* chore: nx format:write update dirty files

* fix: more messsages

* feat: bad csv parser

* fix: failure calblack

* feat: refactor logic

* chore: nx format:write update dirty files

* feat: better org

* chore: update config

* feat: update client

* feat: update with mutation

* feat: organize domain and add methods

* feat: update domain

* fix: better csv parsing

* chore: label

* chore: nx format:write update dirty files

* feat: some ui

* chore: nx format:write update dirty files

* feat/clearer ui

* chore: empty screen

* fix: remove buttons

* fix: expand callbacks

* fix: linting

* fix: expand lower

* chore: remove console

* chore: localize messages

* chore: imports

* fix: add logos

* fix: parsing

* fix: reveiw comments

* chore: nx format:write update dirty files

* fix: more review fixes

* chore: review comment v3

* chore: fix func name

* chore: review2
gp

* chore: add error message

* fix:nullechck

* fix:review

---------

Co-authored-by: Þórður Hafliðason <[email protected]>
Co-authored-by: andes-it <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
* fix. init

* chore: add loading

* fix: intro

* chore: console

* chore: import

* fix: error state

* fix: single vehicle mileage input

* chore: leftoevers

* chore: coderabbit suggestions

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
* fix: random 0 in table

* fix: fixes

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
@thorkellmani thorkellmani requested review from a team as code owners October 3, 2024 13:20
Copy link
Contributor

coderabbitai bot commented Oct 3, 2024

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review (1)
  • main

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


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>, please review it.
    • 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 gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @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 using 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 do a full 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.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

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.

@thorkellmani thorkellmani added the deploy-feature Deploys features to dev label Oct 3, 2024
Copy link

codecov bot commented Oct 3, 2024

Codecov Report

Attention: Patch coverage is 11.11111% with 8 lines in your changes missing coverage. Please review.

Project coverage is 36.76%. Comparing base (ba7f439) to head (e5afee6).

Files with missing lines Patch % Lines
...ibs/island-ui/core/src/lib/IconRC/icons/Upload.tsx 0.00% 4 Missing ⚠️
...and-ui/core/src/lib/IconRC/icons/UploadOutline.tsx 0.00% 4 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@                Coverage Diff                 @@
##           release/31.3.0   #16255      +/-   ##
==================================================
- Coverage           36.76%   36.76%   -0.01%     
==================================================
  Files                6739     6741       +2     
  Lines              138282   138291       +9     
  Branches            39292    39294       +2     
==================================================
- Hits                50843    50841       -2     
- Misses              87439    87450      +11     
Flag Coverage Δ
air-discount-scheme-backend 54.12% <100.00%> (+0.01%) ⬆️
air-discount-scheme-web 0.00% <ø> (ø)
api 3.39% <ø> (ø)
api-domains-air-discount-scheme 36.88% <100.00%> (+0.03%) ⬆️
api-domains-assets 26.71% <ø> (ø)
api-domains-auth-admin 49.89% <ø> (ø)
api-domains-communications 40.45% <100.00%> (+<0.01%) ⬆️
api-domains-criminal-record 47.81% <100.00%> (+0.03%) ⬆️
api-domains-driving-license 44.33% <100.00%> (+0.01%) ⬆️
api-domains-education 31.36% <100.00%> (+0.03%) ⬆️
api-domains-health-insurance 34.63% <100.00%> (+0.04%) ⬆️
api-domains-mortgage-certificate 35.67% <100.00%> (+0.02%) ⬆️
api-domains-payment-schedule 41.17% <100.00%> (+0.02%) ⬆️
application-api-files 57.56% <100.00%> (+0.02%) ⬆️
application-core 72.33% <ø> (+0.08%) ⬆️
application-system-api 41.66% <100.00%> (+<0.01%) ⬆️
application-template-api-modules 23.48% <100.00%> (+0.01%) ⬆️
application-templates-accident-notification 22.26% <ø> (ø)
application-templates-car-recycling 3.12% <ø> (ø)
application-templates-criminal-record 26.96% <ø> (ø)
application-templates-driving-license 18.75% <ø> (ø)
application-templates-estate 12.57% <ø> (ø)
application-templates-example-payment 25.72% <ø> (ø)
application-templates-financial-aid 14.39% <ø> (ø)
application-templates-general-petition 23.95% <ø> (ø)
application-templates-health-insurance 26.88% <ø> (ø)
application-templates-inheritance-report 6.45% <ø> (ø)
application-templates-marriage-conditions 15.35% <ø> (ø)
application-templates-mortgage-certificate 44.15% <ø> (ø)
application-templates-parental-leave 29.36% <ø> (+0.09%) ⬆️
application-types 6.74% <ø> (ø)
application-ui-components 1.52% <ø> (ø)
application-ui-shell 21.75% <ø> (ø)
auth-react 22.84% <ø> (ø)
clients-charge-fjs-v2 24.11% <ø> (ø)
clients-driving-license 40.61% <100.00%> (+0.04%) ⬆️
clients-driving-license-book 43.88% <100.00%> (+0.02%) ⬆️
clients-financial-statements-inao 49.13% <100.00%> (+0.03%) ⬆️
clients-license-client 1.83% <ø> (ø)
clients-regulations 42.58% <100.00%> (+0.04%) ⬆️
clients-rsk-company-registry 29.76% <ø> (ø)
clients-rsk-personal-tax-return 38.00% <ø> (ø)
clients-smartsolutions 12.77% <ø> (ø)
clients-syslumenn 49.64% <100.00%> (+0.02%) ⬆️
cms 0.42% <ø> (ø)
cms-translations 39.60% <100.00%> (+<0.01%) ⬆️
contentful-apps 5.76% <ø> (ø)
dokobit-signing 62.94% <100.00%> (+0.08%) ⬆️
download-service 44.61% <100.00%> (+0.01%) ⬆️
email-service 60.73% <100.00%> (+0.08%) ⬆️
feature-flags 90.76% <100.00%> (+0.07%) ⬆️
file-storage 53.13% <100.00%> (+0.11%) ⬆️
financial-aid-backend 56.53% <100.00%> (+0.01%) ⬆️
financial-aid-shared 19.03% <ø> (ø)
island-ui-core 28.55% <0.00%> (-0.06%) ⬇️
judicial-system-api 19.37% <ø> (ø)
judicial-system-audit-trail 68.61% <100.00%> (+0.08%) ⬆️
judicial-system-message 66.92% <100.00%> (+0.06%) ⬆️
judicial-system-message-handler 47.80% <100.00%> (+0.09%) ⬆️
judicial-system-scheduler 69.06% <100.00%> (+0.02%) ⬆️
judicial-system-web 28.71% <ø> (ø)
license-api 42.88% <100.00%> (-0.05%) ⬇️
nest-config 78.13% <100.00%> (+0.06%) ⬆️
nest-feature-flags 51.97% <100.00%> (+0.06%) ⬆️
nova-sms 62.28% <100.00%> (+0.09%) ⬆️
portals-admin-regulations-admin 1.96% <ø> (ø)
portals-core 16.16% <ø> (ø)
services-auth-admin-api 50.53% <100.00%> (+<0.01%) ⬆️
services-auth-delegation-api 58.24% <100.00%> (+0.07%) ⬆️
services-auth-ids-api 51.87% <100.00%> (-0.02%) ⬇️
services-auth-personal-representative 45.76% <100.00%> (+<0.01%) ⬆️
services-auth-personal-representative-public 41.84% <100.00%> (+0.13%) ⬆️
services-auth-public-api 49.22% <100.00%> (-0.01%) ⬇️
services-sessions 65.80% <100.00%> (+0.06%) ⬆️
services-university-gateway 48.49% <100.00%> (+0.07%) ⬆️
services-user-notification 47.63% <100.00%> (+<0.01%) ⬆️
services-user-profile 62.29% <100.00%> (+<0.01%) ⬆️
shared-components 27.67% <ø> (ø)
shared-form-fields 31.60% <ø> (ø)
web 1.84% <ø> (ø)

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

Files with missing lines Coverage Δ
libs/feature-flags/src/lib/features.ts 100.00% <100.00%> (ø)
libs/island-ui/core/src/lib/Icon/Icon.tsx 93.54% <ø> (ø)
...rtal/core/src/components/LinkButton/LinkButton.tsx 0.00% <ø> (ø)
libs/service-portal/core/src/index.ts 0.00% <ø> (ø)
libs/service-portal/core/src/lib/messages.ts 50.00% <ø> (ø)
...ibs/island-ui/core/src/lib/IconRC/icons/Upload.tsx 0.00% <0.00%> (ø)
...and-ui/core/src/lib/IconRC/icons/UploadOutline.tsx 0.00% <0.00%> (ø)

... and 2 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 ba7f439...e5afee6. Read the comment docs.

Copy link
Contributor

github-actions bot commented Oct 3, 2024

Affected services are: air-discount-scheme-api,air-discount-scheme-backend,api,application-system-api,download-service,financial-aid-api,financial-aid-backend,financial-aid-open-api,judicial-system-api,judicial-system-digital-mailbox-api,judicial-system-backend,judicial-system-message-handler,judicial-system-robot-api,judicial-system-scheduler,judicial-system-xrd-api,license-api,regulations-admin-backend,services-auth-admin-api,services-auth-ids-api,services-auth-delegation-api,services-auth-personal-representative,services-auth-personal-representative-public,services-auth-public-api,services-endorsements-api,services-search-indexer,services-sessions,services-university-gateway,services-user-notification,services-user-profile,air-discount-scheme-web,consultation-portal,contentful-apps,financial-aid-web-osk,financial-aid-web-veita,judicial-system-web,skilavottord-web,web,application-system-form,island-ui-storybook,portals-admin,service-portal,system-e2e,
Feature deployment of your services will begin shortly. Your feature will be accessible here:
https://featbulk-mileage-registration-api-catalogue.dev01.devland.is/api
https://featbulk-mileage-registration-api.dev01.devland.is/download
https://featbulk-mileage-registration-application-callback-xrd.internal.dev01.devland.is/application-payment
https://featbulk-mileage-registration-application-callback-xrd.internal.dev01.devland.is/applications
https://featbulk-mileage-registration-application-payment-callback-xrd.internal.dev01.devland.is/application-payment
https://featbulk-mileage-registration-application-payment-callback-xrd.internal.dev01.devland.is/applications
https://featbulk-mileage-registration-beta.dev01.devland.is/
https://featbulk-mileage-registration-beta.dev01.devland.is/api
https://featbulk-mileage-registration-beta.dev01.devland.is/app/skilavottord/
https://featbulk-mileage-registration-beta.dev01.devland.is/minarsidur
https://featbulk-mileage-registration-beta.dev01.devland.is/samradsgatt
https://featbulk-mileage-registration-beta.dev01.devland.is/stjornbord
https://featbulk-mileage-registration-beta.dev01.devland.is/umsoknir
https://featbulk-mileage-registration-license-api-xrd.internal.dev01.devland.is/
https://featbulk-mileage-registration-loftbru-cf.dev01.devland.is/
https://featbulk-mileage-registration-loftbru-cf.dev01.devland.is/api/graphql
https://featbulk-mileage-registration-loftbru-cf.dev01.devland.is/api/public
https://featbulk-mileage-registration-loftbru-cf.dev01.devland.is/api/swagger
https://featbulk-mileage-registration-loftbru.dev01.devland.is/
https://featbulk-mileage-registration-loftbru.dev01.devland.is/api/graphql
https://featbulk-mileage-registration-loftbru.dev01.devland.is/api/public
https://featbulk-mileage-registration-loftbru.dev01.devland.is/api/swagger
https://featbulk-mileage-registration-service-portal-api.internal.dev01.devland.is/
https://featbulk-mileage-registration-services-university-gateway.internal.dev01.devland.is/api
https://featbulk-mileage-registration-sessions-api.internal.dev01.devland.is/
https://featbulk-mileage-registration-ui.dev01.devland.is/

Deployed services: application-system-api,application-system-form,service-portal,service-portal-api,portals-admin,consultation-portal,api,web,skilavottord-web,island-ui-storybook,download-service,endorsement-system-api,air-discount-scheme-web,air-discount-scheme-backend,air-discount-scheme-api,regulations-admin-backend,application-system-api-worker,license-api,services-sessions,services-sessions-worker,services-sessions-cleanup,services-university-gateway,services-university-gateway-worker.
Excluded services: search-indexer-service,user-notification,user-notification-worker,user-notification-cleanup-worker,contentful-apps

@datadog-island-is
Copy link

datadog-island-is bot commented Oct 3, 2024

Datadog Report

All test runs 54ba5a2 🔗

76 Total Test Services: 0 Failed, 74 Passed
❄️ 1 with New Flaky
🔻 Test Sessions change in coverage: 29 decreased, 14 increased, 152 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
services-auth-ids-api 0 0 4 148 0 57.32s 1 decreased (-0.2%) Link
air-discount-scheme-backend 0 0 0 81 0 31.92s N/A Link
air-discount-scheme-web 0 0 0 2 0 9.15s N/A Link
api 0 0 0 4 0 3.09s N/A Link
api-domains-air-discount-scheme 0 0 0 6 0 20.66s N/A Link
api-domains-assets 0 0 0 3 0 13.15s N/A Link
api-domains-auth-admin 0 0 0 18 0 14.51s N/A Link
api-domains-communications 0 0 0 5 0 33.36s N/A Link
api-domains-criminal-record 0 0 0 5 0 10.94s N/A Link
api-domains-driving-license 0 0 0 23 0 32.21s N/A Link

🔻 Code Coverage Decreases vs Default Branch (29)

This report shows up to 5 code coverage decreases.

  • services-auth-admin-api - jest 46.45% (-0.96%) - Details
  • judicial-system-audit-trail - jest 70.83% (-0.51%) - Details
  • application-template-api-modules - jest 25.57% (-0.49%) - Details
  • file-storage - jest 56.7% (-0.36%) - Details
  • judicial-system-message-handler - jest 50.98% (-0.29%) - Details

@thorkellmani thorkellmani removed the deploy-feature Deploys features to dev label Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants