-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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: Filtering out empty value env variables from /admin/env API response in backend #18430
Conversation
Welcome to the Appsmith community! Thank you for your first pull request and making this project better. 🤗 Please make sure that you raise a review request so your code change does not go unnoticed. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Unable to find test scripts. Please add necessary tests to the PR. |
5 similar comments
Unable to find test scripts. Please add necessary tests to the PR. |
Unable to find test scripts. Please add necessary tests to the PR. |
Unable to find test scripts. Please add necessary tests to the PR. |
Unable to find test scripts. Please add necessary tests to the PR. |
Unable to find test scripts. Please add necessary tests to the PR. |
Unable to find test scripts. Please add necessary tests to the PR. |
2 similar comments
Unable to find test scripts. Please add necessary tests to the PR. |
Unable to find test scripts. Please add necessary tests to the PR. |
@vivonk : Nirmal, is this change a breaking change? Are we dependent on the FE changes to take this to release? |
No, @trishaanand . It's a backend change only. Frontend works fine with this change. |
/ok-to-test sha=97c6b83ae2451389b7d162b44e6a984eb9ae3ecd |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/3592291019. |
…n-empty-envs-in-response
/ok-to-test sha=87797d94589ce966a06302bad7e3cdcecd995e99 |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/3627967799. |
…n-empty-envs-in-response
/ok-to-test sha=430551bcdd69624bda739b9edc8672fba2a20284 |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/3647550506. |
…n-empty-envs-in-response
/ok-to-test sha=60875903d9053e82aa60d1d8a0bcca99895df902 |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/3654876555. |
Description
This PR is part of adding improvements in /admin/env API - #18423
And with that, it fixes main issue which is - #17846
When we are sending empty value env variables in /admin/env API response, it's causing incorrect state in toggle buttons (Toggle button gets enabled for empty value variables). Because of which, we were facing incorrect config update issues in Admin settings like Email. As part of fixing that, we are sending only non-empty valued env variables so that frontend interprets it correct.
Fixes
#18423
#17846
Type of change
How Has This Been Tested?
Test Plan
Issues raised during DP testing
Checklist:
Dev activity
QA activity: