-
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
feat(form-system): Application #15444
base: main
Are you sure you want to change the base?
Conversation
…cript, removed all console.logs and removed all code that was commented out
…n + script to generate graphql schemas
…e-picker, and react-native-share
…rm-system-new-client-domain
This commit adds the form system API setup to the uber-charts/islandis.ts file. This allows the form system service to be used in the application.
…rm-system-new-client-domain
…rm-system-new-client-domain
…rm-system-new-client-domain
…rm-system-new-client-domain
…rm-system-new-client-domain
…rm-system-new-client-domain
…rm-system-new-client-domain
…rm-system-new-client-domain
…land-is/island.is into form-system-new-client-domain
…rm-system-new-client-domain
|
GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
---|---|---|---|---|---|
- | - | X-API-Key Secret | fc7f69d | apps/form-builder/services/translationStation.tsx | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secret safely. Learn here the best practices.
- Revoke and rotate this secret.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
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 (2)
apps/judicial-system/api/src/app/modules/file/limitedAccessFile.controller.ts (2)
9-9
: Remove unused import.The
Query
decorator is imported but not used anywhere in the controller.- Query,
23-23
: Remove unused import.The
SubpoenaType
type is imported but not used in the controller.-import type { SubpoenaType, User } from '@island.is/judicial-system/types' +import type { User } from '@island.is/judicial-system/types'
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
.eslintrc.json
(1 hunks)apps/api/infra/api.ts
(2 hunks)apps/judicial-system/api/src/app/modules/file/file.controller.ts
(2 hunks)apps/judicial-system/api/src/app/modules/file/limitedAccessFile.controller.ts
(3 hunks)
✅ Files skipped from review due to trivial changes (1)
- apps/judicial-system/api/src/app/modules/file/file.controller.ts
🧰 Additional context used
📓 Path-based instructions (2)
apps/api/infra/api.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/judicial-system/api/src/app/modules/file/limitedAccessFile.controller.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."
🔇 Additional comments (2)
.eslintrc.json (1)
45-45
: LGTM!
The addition of lib:form-system
to the scope:portals-admin
dependencies aligns with the PR objectives for the form-system project integration.
apps/api/infra/api.ts (1)
68-68
: LGTM!
The addition of formSystemService
parameter aligns with the form-system project integration.
dev: 'http://localhost:3434', | ||
staging: '', | ||
prod: '', | ||
}, | ||
// FORM_SYSTEM_API_BASE_PATH: ref( | ||
// (h) => `http://${h.svc(services.formSystemService)}`, | ||
// ), |
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.
Review environment configuration values.
There are several concerns with the current configuration:
- Staging and prod environments have empty string values
- Development environment uses a hardcoded localhost URL
- There's a commented-out configuration that might be the intended approach using the service reference
Consider either:
- Providing proper URLs for staging and prod environments
- Using the service reference approach as shown in the commented code
- FORM_SYSTEM_API_BASE_PATH: {
- dev: 'http://localhost:3434',
- staging: '',
- prod: '',
- },
- // FORM_SYSTEM_API_BASE_PATH: ref(
- // (h) => `http://${h.svc(services.formSystemService)}`,
- // ),
+ FORM_SYSTEM_API_BASE_PATH: ref(
+ (h) => `http://${h.svc(services.formSystemService)}`,
+ ),
Committable suggestion skipped: line range outside the PR's diff.
...
Checklist:
Summary by CodeRabbit
New Features
LimitedAccessFileController
to support specific subpoena retrieval based on IDs.Improvements
FileController
for better readability.