Skip to content

Conversation

@rebeccahum
Copy link
Contributor

@rebeccahum rebeccahum commented Jan 6, 2026

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:

Screenshot 2026-01-06 at 1 24 57 PM Screenshot 2026-01-06 at 1 24 25 PM

On a NodeJS app:
Screenshot 2026-01-06 at 12 39 48 PM
Screenshot 2026-01-06 at 1 00 43 PM

Changelog Description

Added

  • Environment Variables: Add reloading configuration for setting and deleting

Pull request checklist

New release checklist

@rebeccahum rebeccahum marked this pull request as ready for review January 6, 2026 20:01
@github-actions
Copy link
Contributor

github-actions bot commented Jan 6, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@rebeccahum
Copy link
Contributor Author

@yolih Can you check me on the wording here? TIA!

Copy link
Contributor

Copilot AI left a 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 reloadManifest parameter 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>
@rebeccahum rebeccahum force-pushed the PLTFRM-1888 branch 2 times, most recently from 54c4222 to 65a8763 Compare January 7, 2026 18:12
@rebeccahum rebeccahum requested a review from sjinks January 7, 2026 18:13
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 7, 2026

@rebeccahum rebeccahum merged commit e6177e2 into trunk Jan 7, 2026
19 checks passed
@rebeccahum rebeccahum deleted the PLTFRM-1888 branch January 7, 2026 18:36
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.

3 participants