-
Notifications
You must be signed in to change notification settings - Fork 51
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
Rework of the subgroups feature + Minor Refactoring #185
Commits on Jan 5, 2023
-
Adding test with current WIP implementation
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for fab0f66 - Browse repository at this point
Copy the full SHA fab0f66View commit details -
Removed the previous subgroups implementation
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for facfc99 - Browse repository at this point
Copy the full SHA facfc99View commit details -
Fix test collection for vscode
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 815b2b4 - Browse repository at this point
Copy the full SHA 815b2b4View commit details -
Making some progress (need to fix postprocessing)
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for e662ebe - Browse repository at this point
Copy the full SHA e662ebeView commit details -
Making more progress, almost there (ish)
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 0b2bb3b - Browse repository at this point
Copy the full SHA 0b2bb3bView commit details -
Making more progress (need to fix conflicts)
The FieldWrapper is created for the subgroups arg. I now create a new DataclassWrapper and graft add it as a child of the DataclassWrapper that contains the subgroup field. The current issue seems to be that the ConflictResolver is seeing both the FieldWrapper and the DataclassWrapper (I Think) as pointing to the same destination! Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for efea1cd - Browse repository at this point
Copy the full SHA efea1cdView commit details -
Conflicts confusion is clearing up
The `conflict_resolver.resolve` method was actually doing two things: - Resolving conflicts - Flattening the list! This was causing confusion, since `wrappers` was secretely growing, which was causing the issue with duplicates from before. Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 3d51edb - Browse repository at this point
Copy the full SHA 3d51edbView commit details -
Things are parsing, but default is slightly wrong
This is getting to the point where things are parsing, but the default value for a part of the subgroup is wrong. Need to check what exactly is going on. Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 690e3bb - Browse repository at this point
Copy the full SHA 690e3bbView commit details -
'subgroups' is only added on namespace when needed
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for a6253a7 - Browse repository at this point
Copy the full SHA a6253a7View commit details -
Progress: Might have identified issue
I think I figured out the issue. If we generate a DataclassWrapper for a subgroup, then it doesn't get a real `Field`, which might be preventign the parsing from working properly? Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 0d5db49 - Browse repository at this point
Copy the full SHA 0d5db49View commit details -
Refactor _set_instances_on_namespace
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for f28ff13 - Browse repository at this point
Copy the full SHA f28ff13View commit details -
Refactor, fix some failing basic tests
Certain things were breaking in basic tests. TODOs left: - Still getting some errors in the ALWAYS_MERGE case - Still not parsing the right values for the other arguments Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 1870903 - Browse repository at this point
Copy the full SHA 1870903View commit details -
Fix small bug in _consume_constructor_arguments
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 2b1872f - Browse repository at this point
Copy the full SHA 2b1872fView commit details -
Refactoring: Improve naming of Parser methods
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for fa7a1d4 - Browse repository at this point
Copy the full SHA fa7a1d4View commit details -
[dirty] wip (switching machines)
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for f722394 - Browse repository at this point
Copy the full SHA f722394View commit details -
Fix mistake with self._wrappers, few tests left
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for d583366 - Browse repository at this point
Copy the full SHA d583366View commit details -
Simplify
subgroups
fn, begin rewriting testsSigned-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 3650f51 - Browse repository at this point
Copy the full SHA 3650f51View commit details -
Simple subgroup tests are passing
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 9bd0069 - Browse repository at this point
Copy the full SHA 9bd0069View commit details -
Fix issue with .setdefault and new subgroups
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 386720c - Browse repository at this point
Copy the full SHA 386720cView commit details -
Fix required arg for equivalent_argparse_code
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for bd46ca9 - Browse repository at this point
Copy the full SHA bd46ca9View commit details -
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 2c011c1 - Browse repository at this point
Copy the full SHA 2c011c1View commit details -
Remove hacky code from previous iteration
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 40283cf - Browse repository at this point
Copy the full SHA 40283cfView commit details -
Remove the
_print_tree
functionSigned-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for ae45549 - Browse repository at this point
Copy the full SHA ae45549View commit details -
Make first block of logging in test a bit better
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 9e1539c - Browse repository at this point
Copy the full SHA 9e1539cView commit details -
Apply pre-commit hooks to field_wrapper.py
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 9a701a6 - Browse repository at this point
Copy the full SHA 9a701a6View commit details -
Cleanup the resolve_subgroups code a tiny bit
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 0f9c2ee - Browse repository at this point
Copy the full SHA 0f9c2eeView commit details -
Make
Dataclass
an actual ProtocolSigned-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 235b714 - Browse repository at this point
Copy the full SHA 235b714View commit details -
Make DataclassWrapper use Dataclass typevar
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 73e8ea6 - Browse repository at this point
Copy the full SHA 73e8ea6View commit details -
Add test to check that subgroups are saved (#139)
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 4595cd6 - Browse repository at this point
Copy the full SHA 4595cd6View commit details -
Make
subgroups
sig reflect current limitationsSigned-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for ab81b26 - Browse repository at this point
Copy the full SHA ab81b26View commit details -
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 81ba977 - Browse repository at this point
Copy the full SHA 81ba977View commit details -
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 0ccbcd4 - Browse repository at this point
Copy the full SHA 0ccbcd4View commit details -
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 61e0ff2 - Browse repository at this point
Copy the full SHA 61e0ff2View commit details -
Fix error in test for subgroups with a conflict
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for bd2f895 - Browse repository at this point
Copy the full SHA bd2f895View commit details -
Minor esthetic change to test_subgroups.py
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for aef61f2 - Browse repository at this point
Copy the full SHA aef61f2View commit details -
Fix issues with py37 and parsing of Reused lists
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for f1fdff2 - Browse repository at this point
Copy the full SHA f1fdff2View commit details -
Very minor improvement to unrelated test
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for f94a274 - Browse repository at this point
Copy the full SHA f94a274View commit details -
[optional] Make the "reuse" logic a bit better?
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for b8787c8 - Browse repository at this point
Copy the full SHA b8787c8View commit details
Commits on Jan 6, 2023
-
Revert "[optional] Make the "reuse" logic a bit better?"
This reverts commit b8787c8.
Configuration menu - View commit details
-
Copy full SHA for 5cd4270 - Browse repository at this point
Copy the full SHA 5cd4270View commit details -
Fix typing of the
subgroups
functionSigned-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 30b92ae - Browse repository at this point
Copy the full SHA 30b92aeView commit details -
Removed unused _remove_help_action and test
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 448d4b1 - Browse repository at this point
Copy the full SHA 448d4b1View commit details -
"create_dataclasses"->"instantiate_dataclasses"
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for cf6ac13 - Browse repository at this point
Copy the full SHA cf6ac13View commit details -
Remove commented subgroup tests
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for dcc8808 - Browse repository at this point
Copy the full SHA dcc8808View commit details -
Add more tests for the
subgroups
functionSigned-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for ea1e524 - Browse repository at this point
Copy the full SHA ea1e524View commit details -
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 1dac691 - Browse repository at this point
Copy the full SHA 1dac691View commit details
Commits on Jan 10, 2023
-
Add test for help string future feature
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for e2a73bf - Browse repository at this point
Copy the full SHA e2a73bfView commit details -
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 8a4e183 - Browse repository at this point
Copy the full SHA 8a4e183View commit details -
Merge branch 'master' into nested-subgroups
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 73c9cd1 - Browse repository at this point
Copy the full SHA 73c9cd1View commit details