-
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
fix(signature-collection): try catch not found #16447
Conversation
WalkthroughThe pull request introduces significant modifications to the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
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
|
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: 2
🧹 Outside diff range and nitpick comments (1)
libs/application/template-api-modules/src/lib/modules/templates/signature-collection/parliamentary-list-signing/parliamentary-list-signing.service.ts (1)
51-51
: Correct variable name in comment for clarityThe comment refers to
canCreateInfo
, but the variable used iscanSignInfo
. To avoid confusion, please update the comment to use the correct variable name.
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
📒 Files selected for processing (2)
- libs/application/template-api-modules/src/lib/modules/templates/signature-collection/parliamentary-list-signing/parliamentary-list-signing.service.ts (1 hunks)
- libs/clients/signature-collection/src/lib/signature-collection.types.ts (1 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
libs/application/template-api-modules/src/lib/modules/templates/signature-collection/parliamentary-list-signing/parliamentary-list-signing.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/clients/signature-collection/src/lib/signature-collection.types.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 (2)
libs/clients/signature-collection/src/lib/signature-collection.types.ts (2)
Line range hint
1-109
: File adheres to library coding guidelines.This change introduces a new enum value
notFound
to theReasonKey
enum, enhancing error handling capabilities. The file continues to adhere to the coding guidelines for library files:
- It uses TypeScript for defining types and enums.
- The types and enums are exported, ensuring reusability across different NextJS apps.
- The file structure supports effective tree-shaking and bundling.
109-109
: LGTM! Verify usage of the new enum value.The addition of
notFound
to theReasonKey
enum is appropriate and consistent with the existing pattern. It enhances the error handling capabilities of the signature collection process.To ensure proper integration, please verify the usage of this new enum value:
✅ Verification successful
Re-running the search with the correct file type.
The previous search command used an incorrect file type. Updated the
--type
tots
for TypeScript files.
Verified usage of
ReasonKey.notFound
.The enum value is used only in
parliamentary-list-signing.service.ts
as expected. No other usages found.🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Search for usages of ReasonKey.notFound in the codebase # Test: Look for direct usage of ReasonKey.notFound echo "Searching for direct usage of ReasonKey.notFound:" rg --type typescript "ReasonKey\.notFound" # Test: Look for string literal 'notFound' in switch statements or conditionals echo "Searching for 'notFound' string in switch statements or conditionals:" rg --type typescript "case\s+['\"]notFound['\"]|['\"]notFound['\"]\s*[:=]"Length of output: 463
Script:
#!/bin/bash # Description: Search for usages of ReasonKey.notFound in the codebase # Test: Look for direct usage of ReasonKey.notFound echo "Searching for direct usage of ReasonKey.notFound:" rg --type ts "ReasonKey\.notFound" # Test: Look for string literal 'notFound' in switch statements or conditionals echo "Searching for 'notFound' string in switch statements or conditionals:" rg --type ts "case\s+['\"]notFound['\"]|['\"]notFound['\"]\s*[:=]"Length of output: 560
...plates/signature-collection/parliamentary-list-signing/parliamentary-list-signing.service.ts
Outdated
Show resolved
Hide resolved
...plates/signature-collection/parliamentary-list-signing/parliamentary-list-signing.service.ts
Show resolved
Hide resolved
Datadog ReportAll test runs ✅ 2 Total Test Services: 0 Failed, 2 Passed Test Services
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #16447 +/- ##
=======================================
Coverage 36.75% 36.75%
=======================================
Files 6835 6835
Lines 141320 141321 +1
Branches 40235 40235
=======================================
+ Hits 51939 51940 +1
Misses 89381 89381
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Sentry.
|
* fix: error in application * chore: nx format:write update dirty files --------- Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by: andes-it <[email protected]>
* feat(signature-collection): send email to lks and skra (#16445) * feat: send email to lks and skra * chore: nx format:write update dirty files --------- Co-authored-by: andes-it <[email protected]> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> * fix(signature-collection): try catch not found (#16447) * fix: error in application * chore: nx format:write update dirty files --------- Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by: andes-it <[email protected]> --------- Co-authored-by: Alex Diljar Birkisbur Hellsing <[email protected]> Co-authored-by: andes-it <[email protected]> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
...
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:
Summary by CodeRabbit
New Features
notFound
reason in the signature collection, enhancing the clarity of error messages related to missing entities.Bug Fixes