Skip to content

Move patches app under backend/patches#6794

Merged
pashiav merged 5 commits into
issue-6571from
issue-6793
Aug 6, 2025
Merged

Move patches app under backend/patches#6794
pashiav merged 5 commits into
issue-6571from
issue-6793

Conversation

@pashiav

@pashiav pashiav commented Jun 25, 2025

Copy link
Copy Markdown
Contributor

Fixes #6793

This PR reorganizes the project structure by moving the patches app into a new backend/patches/ directory under specifyweb/.

Summary of Changes:

  • Moved patches to specifyweb/backend/patches/
  • Updated SPECIFY_APPS in settings.py to include specifyweb.backend.patches

This is the 14th PR in a broader backend reorganization. No frontend behavior or functionality was changed.

Notes:

Checklist

  • Self-review the PR after opening it to make sure the changes look good and
    self-explanatory (or properly documented)
  • Add relevant issue to release milestone
  • Add pr to documentation list
  • Add automated tests
  • Add a reverse migration if a migration is present in the PR

Testing instructions

  • Run Specify 7 locally

  • Go to the Docker application -> Containers -> Click on specify7

  • Find and click on specify7-specify7-1, then on click Exec

  • Copy and paste this line to fake-unapply the migrations:
    ve/bin/python3 manage.py migrate patches zero --fake
    Screenshot 2025-06-25 at 4 02 26 PM

  • Then copy and paste this line to apply the migrations:
    ve/bin/python3 manage.py migrate patches
    Screenshot 2025-06-25 at 4 02 47 PM

  • Verify the migrations run and apply successfully.

Please cross check the following functionalities with main:
Verify that the following database changes occurred:

@pashiav pashiav added this to the 7.12.0 milestone Jun 25, 2025
@pashiav pashiav self-assigned this Jun 25, 2025
@github-project-automation github-project-automation Bot moved this to 📋Back Log in General Tester Board Jun 25, 2025
@pashiav
pashiav marked this pull request as ready for review June 25, 2025 21:16
@pashiav
pashiav requested review from a team and CarolineDenis June 25, 2025 21:17
@pashiav pashiav linked an issue Jun 25, 2025 that may be closed by this pull request
pashiav added 3 commits July 2, 2025 11:27
# 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
Base automatically changed from issue-6777 to issue-6571 August 4, 2025 17:56
@pashiav pashiav modified the milestones: 7.12.0, 7.11.2 Aug 4, 2025

@emenslin emenslin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • 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!

@emenslin
emenslin requested a review from a team August 5, 2025 15:03

@alesan99 alesan99 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • 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 👍👍

@pashiav
pashiav merged commit 0c4184f into issue-6571 Aug 6, 2025
14 checks passed
@pashiav
pashiav deleted the issue-6793 branch August 6, 2025 13:51
@github-project-automation github-project-automation Bot moved this from 📋Back Log to ✅Done in General Tester Board Aug 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅Done

Development

Successfully merging this pull request may close these issues.

Reorganize patches app under backend/patches/

4 participants