-
Notifications
You must be signed in to change notification settings - Fork 4.2k
refactor: migrated FEATURES dict settings to top-level in core files and fixed related test files. #37389
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
base: master
Are you sure you want to change the base?
refactor: migrated FEATURES dict settings to top-level in core files and fixed related test files. #37389
Conversation
feanil
left a comment
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.
Thanks for the PR @Akanshu-2u, it looks like the right changes but maybe not enough fixes in the tests which may be trying to override the features dict still. Once the tests get fixed up, I think this would be fine to land. Let me know when you've got the tests passing. Until then, I'm gonna mark this as a draft PR.
1f8e60f to
e3f8473
Compare
jcapphelix
left a comment
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.
While core file changes are all good.
I have some questions on test cases, mainly :-
- Why are some feature flags not removed ?
- Is it something that is supposed to be removed later ?
|
jcapphelix
left a comment
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.
My Queries are all answered.
Good to go from my side.
kdmccormick
left a comment
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.
Thanks @Akanshu-2u , these changes all look good.
But, I am confused why you chose to update these references in particular. There are many remaining references to FEATURES that we will need to clean up in a future PR.
Were these particular references causing bugs?
I focused on fixing only the test files that referenced the |
Why did you choose to refactor those settings within this PR? |
I guess this may help you with the explanation: #37396 (comment) |
|
Okay, so you have chosen some remaining references, but not all of them, correct? That is fine, but the description of this PR says that it "moved remaining features dicts settings" and "Removed FEATURES dictionary". These are not true, and it is misleading to have them in the PR description when there are still so many FEATURES references remaining in the platform. Could you please edit your PR and commit message? |
Addressed. Modified the PR title and description which shall be more convenient for the changes achieved in this PR. |
|
I'm not clear if fixing a subset at a time adds some risk or not. Do we need to ensure changes are consistent for any particular setting, or does the proxy make that moot? Possibly not if someone had the FEATURES dict settings duplicated and out-of-sync, but that might just move from one bad result to a different bad result. In any case, if no one has a problem with it, can we delay landing this until after the ulmo branch has been cut? After that, there is less risk for 2U, and since this is a 2U development effort, that would be my preference. That said, if this did cause any issues, the known active early deployer would still want to know, so we could still announce in #risky-changes when we decide to merge. |
|
@Akanshu-2u are you planning on continuing to work on this PR or should it get closed for now and you can re-open it when you have time? |
|
I (Robert) had written:
@feanil: Now that the ulmo branch has been cut, and since this already was approved by @kdmccormick, I think this can just be merged. |
|
FURTHER UPDATE: I see, someone needs to resolve conflicts. Happy to have @Akanshu-2u take care of that, but this will be a backlog task. Otherwise, anyone who has time could resolve the conflict and merge. FURTHER FURTHER UPDATE: I did ticket this and added it to our backlog. |
6cfcc78 to
a3cad1f
Compare
Description:
Refactored
FEATURESsettings to top-level in core files and updated related tests for consistency and maintainability.Solution:
SettingDictToggleclass toSettingToggle.FEATURESsetting to top level in core file.FEATUREreferences intact.Note: The unrelated
FEATUREreferences are working fine due to the use offeatureproxy, hence for the time being left those unchanged.Private JIRA Link:
BOMS-200
Reference PR:
#37067
Note:
FEATURESdict.