-
Notifications
You must be signed in to change notification settings - Fork 84
Fix for country conditional dependency #7103
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
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
Greptile OverviewGreptile SummaryFixed a logic bug in Key Changes:
This fix ensures conditional dependencies based on country codes work correctly for both subdivisions (e.g., US-CA → 'us') and countries (e.g., FR → 'fr'). Confidence Score: 5/5
Important Files ChangedFile Analysis
|
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.
2 files reviewed, no comments
Codecov Report❌ Patch coverage is
❌ Your patch status has failed because the patch coverage (84.61%) is below the target coverage (100.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #7103 +/- ##
==========================================
- Coverage 87.31% 87.31% -0.01%
==========================================
Files 532 532
Lines 34970 34982 +12
Branches 4048 4051 +3
==========================================
+ Hits 30533 30543 +10
Misses 3560 3560
- Partials 877 879 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
vcruces
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.
The code looks great! Thanks for adding tests!
| extra_fields[ | ||
| PrivacyRequestLocationConvenienceFields.location_regulations.value | ||
| ] = (location_data.regulation or []) | ||
| return extra_fields |
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.
This is a small detail, but I don’t think this return is needed, it looks like line 164 will return the same value
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.
yep! good call, updating :)
Co-authored-by: Lucano Vera <lucanovera@live.com.ar> Co-authored-by: Jade Wibbels <jade@ethyca.com>
Ticket ENG-2206
Description Of Changes
Fixed a logic error which caused country to sometimes be None
Code Changes
Steps to Confirm
equalsorstarts withand pick a known problematic country (We found both Portugal and Argentina but I am sure lots will work for this)Pre-Merge Checklist
CHANGELOG.mdupdatedmaindowngrade()migration is correct and works