Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

fix: fix bug when update bool app envs #781

Merged
merged 2 commits into from
Mar 12, 2021

Conversation

hycdong
Copy link
Contributor

@hycdong hycdong commented Mar 10, 2021

Function update_bool_envs is used to update bool app envs:

  • old value = false, app value = false/true -> new value = false/true
  • old value = true, app value = false/true -> new value = false/true

But the previous implemetation didn't consider the value is not set. For example, old value = true, admin delete this app envs, replica will not update value into false, this patch fixs this bug and update unit tests.

@neverchanje neverchanje added the type/bug-fix This PR fixes a bug. label Mar 10, 2021
@acelyc111 acelyc111 merged commit e2368a0 into XiaoMi:master Mar 12, 2021
@hycdong hycdong deleted the fix_update_bool_app_envs branch March 12, 2021 08:42
acelyc111 pushed a commit that referenced this pull request Jun 3, 2021
@hycdong hycdong added the 2.2.0 label Aug 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
2.2.0 type/bug-fix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants