-
Notifications
You must be signed in to change notification settings - Fork 51
[MIG] forward-port changes from 14.0 #2089
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
22 commits
Select commit
Hold shift + click to select a range
dee602d
[T2945] REFACTOR: gift limits are now translatable (#2074)
Danielgergely 4347ff0
Update translations
ecino 2ba6374
Update compassion_intervention_view.xml
davidwul 0ceb567
T2792 Ensure child protection on children page (#2059)
Shayan105 d204fb9
[T2987] REFACTOR: moved language detection to generator (#2076)
Danielgergely 0aade42
[T2986] FIX: direction is now explicitly set through message values (…
Danielgergely f2795a6
[T2996] FIX: sponsor letter now have the status "read" by default
Danielgergely f72a9ad
FIX missing file_name in letters
ecino ffa0186
FIX FIX missing file_name in letters
ecino 6b44dca
[FIX] transaction handling for correspondence_s2b_generator.py
ecino bf2a5f1
T2840 add category and description code snippet (#2070)
avuff 9e8c435
[T1142] New Suspension Communication Rules (#2069)
avuff 91e12c8
[T3035] FIX: language detection now does not overwrite source/target …
Danielgergely 1e439a9
Update gift_thresholds.xml (#2083)
davidwul 0480c23
T3063 ADD missing xmlid entry
ecino fdc186d
T3059 fcp lifecycle events (#2084)
Danielgergely 6577910
Update account.analytic.group.csv
davidwul 5a53549
FIX: corrected order of funds in account.analytic.group.csv
Danielgergely 5e792e3
[T2747] FIX: moved state update to after payment configuration (#2086)
ecino c70614b
T2975 UPD German childpack
ecino 914e4e1
Run pre-commit
ecino 7f4ee25
FIX migration in script in v17
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
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
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
Binary file modified
BIN
+225 KB
(110%)
child_compassion/static/img/child_compassion.childpack_full/1904_dossier_de_DE.jpg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+304 KB
(220%)
...d_compassion/static/img/child_compassion.childpack_small/1904_dossier_de_DE.jpg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Oops, something went wrong.
Oops, something went wrong.
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.
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
try...exceptblock uses a broadexcept Exception. This can hide unexpected errors and make debugging more difficult. It's better to catch more specific exceptions that you expect to handle, such asrequests.exceptions.RequestExceptionfor network issues, andKeyErrororIndexErrorfor issues with the response data structure.