-
-
Notifications
You must be signed in to change notification settings - Fork 650
item: deduplicate value from resolve decorator #3252
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
This comment was marked as duplicate.
This comment was marked as duplicate.
Okay sadly the approach chosen here doesn't work since we pass the underlying value and not the property itself. This needs to be reworked. |
239e32a
to
42fc27d
Compare
42fc27d
to
c5ee9da
Compare
1ad2866
to
dcb19e8
Compare
dcb19e8
to
d0ad891
Compare
This should look better once #3292 is in. |
d0ad891
to
38fff03
Compare
We need to discuss the changes in behavior or find a better way to deduplicate lists. The |
38fff03
to
11a5b6a
Compare
11a5b6a
to
4ad6110
Compare
89fc73b
to
c11e449
Compare
@SchoolGuy
So an I don't know why this happens but I hope at least helps. |
Well this is interesting:
The property is attached to the class correctly, shows in the Edit: Further debugging showed that the getter is attached just fine. This is just not transparent in the stacktrace. |
c11e449
to
0bd2146
Compare
One step further:
Edit: Fixing that error fixes the tests almost. To get them green the assertions needed to contain the default settings values. |
Ah. It seems we have the same bug for |
d0a016b
to
90f8657
Compare
|
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferencesYou may notice some variations in coverage metrics with the latest Coverage engine update. For more details, visit the documentation |
90f8657
to
de3ca4b
Compare
de3ca4b
to
4291bd0
Compare
4291bd0
to
468ee57
Compare
468ee57
to
b998094
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.
I'd like to experiment a bit with the problem as well, I feel like there is a simpler solution that does not require all the workarounds for finding a "parent".
b998094
to
e6490b8
Compare
I think #3440 will cause changes to this one, I think you could already start before this gets in. But I try to have something tomorrow, at least to understand the constraints better. |
@agraul ah you think we should reverse the order of merging? I was thinking of getting this PR in first to do the refactoring without the bug being present. Don't rush your work, good things take time. I wanted to present my desire not set a fixed timeline. :) |
e70c594
to
62d8821
Compare
`get_conceptual_parent()` contains the logic required to traverse the inheritance chain. For resolving an inherited attribute, this method can be re-used. Additionally, redundant `hasattr()` checks are removed. These were only used to raise an exception, that will now be raised in the succeeding lines by calling `getattr()` without a default argument.
62d8821
to
699892a
Compare
The way it is done now seems pretty reasonable FMPOV. @SchoolGuy what do you mean by reversing the order of merging? |
@ycedres There are currently two possibilities for the merge order on the table:
I am in favour of the first option. Alex has proposed option two. |
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.
LGTM
Linked Items
Fixes #3211
Superseedes #3214
Description
CC @geliwei
Behaviour changes
Old: Setters didn't deduplicate the dicts and lists
New: Setters for dicts and lists in properties now deduplicate properly
Category
This is related to a:
Tests