Skip to content
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

applySettings should return new pb.Settings #812

Open
wasaga opened this issue Nov 9, 2023 · 1 comment
Open

applySettings should return new pb.Settings #812

wasaga opened this issue Nov 9, 2023 · 1 comment
Assignees
Labels
debt Tech debt

Comments

@wasaga
Copy link
Collaborator

wasaga commented Nov 9, 2023

          in fact, we _used to_ merge with current settings, but we don't anymore. as a follow-up we should update the applySettings function to explicitly return a new pb.Settings rather then taking it as an argument, that is a legacy of previous behaviour where it merged changes into it.

Originally posted by @wasaga in #811 (comment)

@calebdoxsey calebdoxsey self-assigned this Dec 19, 2023
@calebdoxsey
Copy link
Contributor

I attempted to do this but I don't understand the requirements. There is no applySettings function. There's an ApplySettings function in core but it neither modifies nor returns a pb.Settings object. There are several applyXXX functions that could be modified to return new pb.Settings objects. I don't understand why we would want to do this, but if that's the ask I can make each of them use proto.Clone and return a new pb.Settings object.

@calebdoxsey calebdoxsey removed their assignment Dec 19, 2023
@calebdoxsey calebdoxsey added NeedsClarification blocked PR/ISSUE is blocked by third party labels Dec 19, 2023
@desimone desimone added debt Tech debt and removed NeedsClarification blocked PR/ISSUE is blocked by third party labels Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debt Tech debt
Projects
None yet
Development

No branches or pull requests

3 participants