Skip to content

Bug fix: reconcile a "create" change with a new extension map.#574

Merged
ezodude merged 3 commits intomasterfrom
es-tutorial-rec-bug-573
Jun 17, 2021
Merged

Bug fix: reconcile a "create" change with a new extension map.#574
ezodude merged 3 commits intomasterfrom
es-tutorial-rec-bug-573

Conversation

@ezodude
Copy link
Contributor

@ezodude ezodude commented Jun 17, 2021

Resolves #573

Bug summary

During reconciliation, the base docker compose extensions map used to detect changes was mistakenly mutated.

This was not an issue if a single environment override was being reconciled.

But, it definitely was a problem if multiple environment overrides were reconciled at once as the first reconcile breaks the following reconcile.

Bug fix

  • Ensure the underlying extensions map is not mutated and that a fresh one is created for a reconcile "create" change.
  • Added tests to cover the regression.

@ezodude ezodude force-pushed the es-tutorial-rec-bug-573 branch from a42f621 to 796ca94 Compare June 17, 2021 11:01
@ezodude ezodude requested review from chriswalker and marcinc June 17, 2021 11:02
Copy link
Contributor

@chriswalker chriswalker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Obviously lacking a fair bit of context on the code at the moment, but LGTM based on conversation in standup, and test changes all look good 👍

Copy link
Member

@marcinc marcinc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ezodude ezodude merged commit aa41e59 into master Jun 17, 2021
@ezodude ezodude deleted the es-tutorial-rec-bug-573 branch June 17, 2021 12:49
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.

Changes in docker compose file not applied to all environment overrides

3 participants