Skip to content

Fix duplication of lists in client command options #1734

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

Merged
merged 1 commit into from
Jun 23, 2021

Conversation

dominiklohmann
Copy link
Member

@dominiklohmann dominiklohmann commented Jun 21, 2021

📔 Description

We've recently changed VAST to merge lists in its configuration from all possible sources rather than overwriting them. However, in the command-executing run function we merged configuration options with the local actor system's options again in case the command invocation happened remotely, which was no longer a no-op now that we merge lists, which in turn led to all list options of client commands being duplicated. This fixes the issue by not merging lists between client and server when doing so.

📝 Checklist

  • All user-facing changes have changelog entries.
  • The changes are reflected on docs.tenzir.com/vast, if necessary.
  • The PR description contains instructions for the reviewer, if necessary.

🎯 Review Instructions

Test locally. E.g., view merged options by running with --verbosity=trace.

@dominiklohmann dominiklohmann added the bug Incorrect behavior label Jun 21, 2021
@dominiklohmann dominiklohmann requested a review from a team June 21, 2021 12:46
@dominiklohmann dominiklohmann force-pushed the topic/fix-duplicated-local-options-bug branch 2 times, most recently from bf14b28 to ee7dfd9 Compare June 23, 2021 09:17
We've recently changed VAST to merge lists in its configuration from all
possible sources rather than overwriting them. However, in the
command-executing `run` function we merged configuration options with
the local actor system's options again in case the command invocation
happened remotely, which was no longer a no-op now that we merge lists,
which in turn led to all list options of client commands being
duplicated. This fixes the issue by not merging lists between client and
server when doing so.
@dominiklohmann dominiklohmann force-pushed the topic/fix-duplicated-local-options-bug branch from ee7dfd9 to 944c922 Compare June 23, 2021 09:20
Copy link
Member

@lava lava left a comment

Choose a reason for hiding this comment

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

Code looks safe; reasoning sounds convincing.

@dominiklohmann dominiklohmann merged commit 25f0151 into master Jun 23, 2021
@dominiklohmann dominiklohmann deleted the topic/fix-duplicated-local-options-bug branch June 23, 2021 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants