-
-
Notifications
You must be signed in to change notification settings - Fork 94
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(api): Add requireRestart
parameter
#286
feat(api): Add requireRestart
parameter
#286
Conversation
Signed-off-by: yogesh1801 <yogeshsingla481@gmail.com>
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨
|
Hey bro! Glad that you put up the PR. Are you attempting this for FOSS hack? If so, the PR will need to wait. If not, we can start reviewing it asap! |
@rajdip-b this PR is my attempt to get familiar with the codebase, will attempt fosshack later, you can review this PR |
Signed-off-by: yogesh1801 <yogeshsingla481@gmail.com>
Signed-off-by: yogesh1801 <yogeshsingla481@gmail.com>
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.
Could you also add these few test cases?
- Creating a secret with
requireRestart
set to true - Creating a variable with
requireRestart
set to true - Updating a secret with
requireRestart
set to true - Updating a variable with
requireRestart
set to true
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.
Update the interface over here
requireRestart
parameter
Signed-off-by: yogesh1801 <yogeshsingla481@gmail.com>
apps/api/src/prisma/migrations/20240625190757_new/migration.sql
Outdated
Show resolved
Hide resolved
Signed-off-by: yogesh1801 <yogeshsingla481@gmail.com>
Signed-off-by: yogesh1801 <yogeshsingla481@gmail.com>
## [2.1.0](v2.0.0...v2.1.0) (2024-06-27) ### 🚀 Features * **api:** Add `requireRestart` parameter ([#286](#286)) ([fb447a1](fb447a1)) * **cli:** Added CLI ([#289](#289)) ([1143d95](1143d95)) * **workflows:** Tag user on attempt's reply body ([9d01698](9d01698)) ### 🐛 Bug Fixes * **web:** Resolve encryption glitch in footer text ([#267](#267)) ([2b5cb39](2b5cb39)) ### 📚 Documentation * added running-the-web-app.md ([#269](#269)) ([755ea12](755ea12))
## [2.1.0](v2.0.0...v2.1.0) (2024-06-27) ### 🚀 Features * **api:** Add `requireRestart` parameter ([#286](#286)) ([fb447a1](fb447a1)) * **cli:** Added CLI ([#289](#289)) ([1143d95](1143d95)) * **workflows:** Tag user on attempt's reply body ([9d01698](9d01698)) ### 🐛 Bug Fixes * **web:** Resolve encryption glitch in footer text ([#267](#267)) ([2b5cb39](2b5cb39)) ### 📚 Documentation * added running-the-web-app.md ([#269](#269)) ([755ea12](755ea12))
## [2.1.0](keyshade-xyz/keyshade@v2.0.0...v2.1.0) (2024-06-27) ### 🚀 Features * **api:** Add `requireRestart` parameter ([keyshade-xyz#286](keyshade-xyz#286)) ([fb447a1](keyshade-xyz@fb447a1)) * **cli:** Added CLI ([keyshade-xyz#289](keyshade-xyz#289)) ([1143d95](keyshade-xyz@1143d95)) * **workflows:** Tag user on attempt's reply body ([9d01698](keyshade-xyz@9d01698)) ### 🐛 Bug Fixes * **web:** Resolve encryption glitch in footer text ([keyshade-xyz#267](keyshade-xyz#267)) ([2b5cb39](keyshade-xyz@2b5cb39)) ### 📚 Documentation * added running-the-web-app.md ([keyshade-xyz#269](keyshade-xyz#269)) ([755ea12](keyshade-xyz@755ea12))
User description
Description
Added requireRestart param
Fixes #283
Developer's checklist
If changes are made in the code:
Documentation Update
PR Type
Enhancement, Documentation
Description
requireRestart
boolean property toCreateSecret
andCreateVariable
classes.requireRestart
in secret and variable service operations, including creation, update, and rollback.requireRestart
field inSecret
andVariable
models.workspace-storage.ts
file.Changes walkthrough 📝
create.secret.ts
Add `requireRestart` property to `CreateSecret` class
apps/api/src/secret/dto/create.secret/create.secret.ts
requireRestart
boolean property toCreateSecret
class.requireRestart
as optional.secret.service.ts
Integrate `requireRestart` in secret service operations
apps/api/src/secret/service/secret.service.ts
requireRestart
in secret creation and update logic.requireRestart
to the payload for secret rollback.create.variable.ts
Add `requireRestart` property to `CreateVariable` class
apps/api/src/variable/dto/create.variable/create.variable.ts
requireRestart
boolean property toCreateVariable
class.requireRestart
as optional.variable.service.ts
Integrate `requireRestart` in variable service operations
apps/api/src/variable/service/variable.service.ts
requireRestart
in variable creation and update logic.requireRestart
to the payload for variable rollback.migration.sql
Add `requireRestart` column to database schema
apps/api/src/prisma/migrations/20240625190757_new/migration.sql
requireRestart
column toSecret
andVariable
tables with defaultvalue
false
.schema.prisma
Update Prisma schema with `requireRestart` field
apps/api/src/prisma/schema.prisma
requireRestart
boolean field toSecret
andVariable
models withdefault value
false
.workspace-storage.ts
Add newline at end of workspace storage file
apps/platform/src/lib/workspace-storage.ts