Move patches app under backend/patches#6794
Merged
Merged
Conversation
CarolineDenis
approved these changes
Jun 26, 2025
15 tasks
# Conflicts: # specifyweb/backend/patches/migrations/0004_add_title_tree_rank_fix.py # specifyweb/backend/patches/migrations/0005_chrono_start_end.py # specifyweb/backend/patches/migrations/0006_version_fix.py
emenslin
approved these changes
Aug 5, 2025
emenslin
left a comment
Collaborator
There was a problem hiding this comment.
- Verify the migrations run and apply successfully.
- Separator Fix: Empty separators in spappresourcedata for DataObjFormatters are updated to "; " (see #6115 for more information)
- Accepted Taxon Fix: Any taxon with IsAccepted = 0 and AcceptedId IS NULL is updated to IsAccepted = 1 (see #5366 for more information)
- Locality Coordinate Text Sync: Locality text fields are filled in where decimal fields exist (see #5368 for more information)
Looks good, everything seems to be working as expected!
alesan99
approved these changes
Aug 6, 2025
alesan99
left a comment
Contributor
There was a problem hiding this comment.
- Verify the migrations run and apply successfully.
- Separator Fix: Empty separators in spappresourcedata for DataObjFormatters are updated to "; " (see #6115 for more information)
- Accepted Taxon Fix: Any taxon with IsAccepted = 0 and AcceptedId IS NULL is updated to IsAccepted = 1 (see #5366 for more information)
- Locality Coordinate Text Sync: Locality text fields are filled in where decimal fields exist (see #5368 for more information)
Broke everything manually on KUBirds through SQL. Patches were applied correctly 👍👍
21 tasks
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #6793
This PR reorganizes the project structure by moving the
patchesapp into a newbackend/patches/directory underspecifyweb/.Summary of Changes:
patchestospecifyweb/backend/patches/SPECIFY_APPSinsettings.pyto includespecifyweb.backend.patchesThis is the 14th PR in a broader backend reorganization. No frontend behavior or functionality was changed.
Notes:
businessrulesapp underbackend/businessrules#6778.Checklist
self-explanatory (or properly documented)
Testing instructions
Run Specify 7 locally
Go to the Docker application -> Containers -> Click on
specify7Find and click on
specify7-specify7-1, then on click ExecCopy and paste this line to fake-unapply the migrations:

ve/bin/python3 manage.py migrate patches zero --fakeThen copy and paste this line to apply the migrations:

ve/bin/python3 manage.py migrate patchesVerify the migrations run and apply successfully.
Please cross check the following functionalities with
main:Verify that the following database changes occurred:
patchesDjango app #6115 for more information)