-
Notifications
You must be signed in to change notification settings - Fork 19
[PLTFRM-1888] EnvVars Set/Delete: Add reload + message #2686
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
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
5b4354f to
d102dfa
Compare
|
@yolih Can you check me on the wording here? TIA! |
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.
Pull request overview
This pull request adds an optional manifest reload feature when setting or deleting environment variables, allowing changes to take effect immediately without requiring a new deployment. The feature includes user confirmation prompts and special messaging for Node.js applications about build-time versus runtime variable behavior.
- Adds
reloadManifestparameter to environment variable set and delete GraphQL mutations - Implements user confirmation prompt for reloading project configuration
- Shows Node.js-specific warning about build-time vs runtime environment variables
- Updates conditional messaging to only show deployment warning when reload is declined
Reviewed changes
Copilot reviewed 3 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/lib/envvar/api.ts | Adds typeId to app query to determine application type |
| src/lib/envvar/api-set.ts | Adds reloadManifest parameter to set environment variable mutation |
| src/lib/envvar/api-delete.ts | Adds reloadManifest parameter to delete environment variable mutation |
| src/bin/vip-config-envvar-set.js | Implements reload prompt, Node.js warning message, and conditional post-operation messaging |
| src/bin/vip-config-envvar-delete.js | Implements reload prompt, Node.js warning message, and conditional post-operation messaging |
| tests/bin/vip-config-envvar-set.js | Updates tests to cover reload confirmation flow and Node.js warning display |
| tests/bin/vip-config-envvar-delete.js | Updates tests to cover reload confirmation flow and Node.js warning display |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-Authored-By: Volodymyr Kolesnykov <volodymyr.kolesnykov@automattic.com>
ddc70e6 to
454a176
Compare
54c4222 to
65a8763
Compare
65a8763 to
a6dbc1e
Compare
a6dbc1e to
a8240b3
Compare
|



Description
This pull request updates the environment variable API functions to support an optional manifest reload when adding or deleting environment variables.
On a WP app:
On a NodeJS app:


Changelog Description
Added
Pull request checklist
New release checklist