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

[V3 Config] set_raw() replacing all key values #1964

Closed
ghost opened this issue Jul 30, 2018 · 3 comments
Closed

[V3 Config] set_raw() replacing all key values #1964

ghost opened this issue Jul 30, 2018 · 3 comments

Comments

@ghost
Copy link

ghost commented Jul 30, 2018

Other bugs

What were you trying to do?

I was using set_raw() to update a value of a key.

What were you expecting to happen?

The value to updated to the new value, and for the rest of the key values to be unaffected.

What actually happened?

The value got set but the rest of the key values were removed from the key.

How can we reproduce this issue?

Create a dict in Config that contains more than one key value, then use set_raw() to set one of the values within the key, then grab and print the new dict.

@mikeshardmind
Copy link
Contributor

Just to clarify here, do you mean that the default values provided through register_default are not included when you use get_raw, update the values, set_raw, and then later get_raw again, and if not, can you give a clear example of this happening?

@ghost
Copy link
Author

ghost commented Jul 31, 2018

Config registered the defaults, I printed them to make sure they were there, I then used set_raw() to change two of the values in a member's dict, then printed the whole member dict again and only those two values were in it.

@Tobotimus Tobotimus added the V3 label Aug 2, 2018
@Tobotimus
Copy link
Member

Likely to be fixed by #2018 (both the year, and the issue 😉), so I'm gonna move this over to #1987.

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

No branches or pull requests

2 participants