-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Fix channel_settings
since it's a list of dicts, not a dict
#14984
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
Conversation
78dbb79
to
3060d52
Compare
pre-commit.ci autofix |
669a226
to
e5b3cf1
Compare
CodSpeed Instrumentation Performance ReportMerging #14984 will not alter performanceComparing Summary
|
e5b3cf1
to
5aa3cd1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of extra newlines that need to be removed, but looks good otherwise!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated it a little to use functools/itertools
channel_settings
since it's a list of dicts, not a dict
pre-commit.ci autofix |
3831beb
to
a8a959e
Compare
this undoes my changes to this PR |
Ah, that's my bad. I rebased to fix merge conflicts. Sorry about that |
3600b7e
to
49ac93d
Compare
Channel settings should be merged with like "channels".
Co-authored-by: jaimergp <jaimergp@users.noreply.github.com>
…proved readability and efficiency. The new implementation simplifies the construction of the result list by using a dictionary comprehension.
…ed clarity and efficiency.
49ac93d
to
32781b0
Compare
32781b0
to
2b7add2
Compare
Description
This PR fixes the
EnvironmentConfig
model so that thechannel_settings
field is a list of dict instead of a dict.From the context object, channel settings are defined as:
A single channel setting takes the form:
So, merging channel settings should also merge these dicts, based on matching
channel
keys.Checklist - did you ...
news
directory (using the template) for the next release's release notes?