-
- Notifications
You must be signed in to change notification settings - Fork 255
Update diff.py #389
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
Update diff.py #389
Conversation
Change proposed based on Issue seperman#369 seperman#369
| Hi @kor4ik |
| Hi, |
| Hi,I meant that include_paths currently follows the same pattern as exclude_paths which is taking “prefix” of the path. If we make include_paths not do “prefix” of the path, we are breaking that pattern.Sep DehpourOn Apr 19, 2023, at 12:34 AM, kor4ik ***@***.***> wrote: Hi, Thanks for your comments. Probably we should take more expanded look here. The change in line: 455 is not changing any existing logic about exclude_paths or exclude_regex_paths, just suggesting solution for include_paths where User would like to provide the path deeper than the root key. The case described in issue #369 Moreover, I just tested exclude_paths with the full path and don't see any impact. —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***> |
| U absolutely right, we should not break common pattern. |
| @kor4ik We automatically add For example:
As a result it is really a prefix of the path. My suggestion is to add an |
| I support seperman. It would be very convenient. Just now I wanted to implement such a case myself, so it’s not there out of the box. |
| @seperman Going back to Issue: #369 where we want to care about include_paths does not work with nested dicts master code line: 455 preserving all previous functionality and not breaking any patterns Regarding include_regex_paths parameter implementation, in my point of view not directly related Issue: #369 and should be handled as separate Issue |
| @kor4ik Great point about |
Issue: seperman#369 fix include_paths does not work with nested dicts
| @seperman |
| Awesome. Thanks for the tests @kor4ik |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@ ## dev #389 +/- ## ======================================= Coverage 98.97% 98.97% ======================================= Files 14 14 Lines 3205 3205 ======================================= Hits 3172 3172 Misses 33 33 ☔ View full report in Codecov by Sentry. |
I created an issue #395 |
Change proposed based on Issue #369
#369