-
Notifications
You must be signed in to change notification settings - Fork 51
T2792 Ensure child protection on children page #2059
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
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
6444486
[FIX] Add obfuscated location to the project model
Shayan105 6db1890
[STYLE] Add comments
Shayan105 860c19e
[STYLE] Refactor comments
Shayan105 392226b
[FIX] Add timeout for the geocode API request
Shayan105 bea08c7
[FIX] Fix typos
Shayan105 0cf7de9
Update child_compassion/models/project_compassion.py
Shayan105 2129d78
[T2792][FIX] Make obfuscated coord computed fields
Shayan105 62a0855
[T2792][FIX] Make the obfuscated coords computed fields
Shayan105 b1b6fcb
[T2792][STYLE] Add comments
Shayan105 5b5c134
[T2792][STYLE] Remove useless get method
Shayan105 1f8f76a
[T2792][STYLE] Use proper randomization of coordinates
Shayan105 92e0ea0
[T2792][FIX] Updates conditionning of the updates
Shayan105 20a59fa
[T2792][FIX] Add lat long 0 fallback when no data are provided
Shayan105 68bb863
[T2793][STYLE] Modularize calls to _compute_gps_obfuscated
Shayan105 f82ddde
[T2792][FIX] Use proper compute method on the gps_obfuscated
Shayan105 11e2f3d
[T2792][Refactor] Renames compute functions
Shayan105 ae6350c
FIX obfuscation
ecino File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| from openupgradelib import openupgrade | ||
|
|
||
|
|
||
| def migrate(cr, version): | ||
| if not openupgrade.column_exists( | ||
| cr, "compassion_project", "gps_latitude_obfuscated" | ||
| ): | ||
| openupgrade.logged_query( | ||
| cr, | ||
| """ | ||
| ALTER TABLE compassion_project | ||
| ADD COLUMN gps_latitude_obfuscated float, | ||
| ADD COLUMN gps_longitude_obfuscated float; | ||
| """, | ||
| ) | ||
| openupgrade.logged_query( | ||
| cr, | ||
| """ | ||
| UPDATE compassion_project | ||
| SET gps_longitude_obfuscated = TRUNC(CAST(gps_longitude AS numeric), 0), | ||
| gps_latitude_obfuscated = TRUNC(CAST(gps_latitude AS numeric), 0); | ||
| """, | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.