Skip to content

Move stored_queries app under backend/stored_queries#6826

Merged
pashiav merged 7 commits into
issue-6571from
issue-6822
Aug 6, 2025
Merged

Move stored_queries app under backend/stored_queries#6826
pashiav merged 7 commits into
issue-6571from
issue-6822

Conversation

@pashiav

@pashiav pashiav commented Jun 30, 2025

Copy link
Copy Markdown
Contributor

Fixes #6822

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

Summary of Changes:

  • Moved stored_queries to specifyweb/backend/stored_queries/
  • Updated all import paths to reflect the new location
  • Updated SPECIFY_APPS in settings.py to include specifyweb.backend.stored_queries

This is the 15th 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

View Queries documentation here.

Please cross check the following functionalities with main.

  • General Queries testing:
    Verify that you can:

    • Create a new query on any table and run it
    • Run an existing query
    • Create a KML from a Locality query (add Longitude and Latitude fields)
    • Create a CSV from a query
    • Test operators on relevant fields (Like, Equal, Greater than, Less than, Greater than equal to, Less than equal to, Between, In, Contains, Starts with, Empty, True/false for boolean fields, Use operators for relative and absolute date fields))

    • Create a new query on any table and add (formatted) to the query
    • Ensure that the results are as expected for the (formatted) field

    Batch Editing:

    • Create a new query on any table that supports batch editing (e.g. Collection Object)
    • Map fields that can be modified and fields that should be read-only (e.g. timestampcreated)
    • Run the query and click Batch Edit
    • Fields that can be modified are editable and fields that should be read-only are not editable

    • Create a new query on a table that does not support batch editing (e.g. SpAuditLog)
    • Batch Edit button is not enabled
  • Reports:

    • Click Reports in the navigation bar
    • Run a valid report
    • Verify the report opens in a new tab and looks as expected
  • Simple Search:

    • General testing of Simple Search

@pashiav pashiav added this to the 7.12.0 milestone Jun 30, 2025
@pashiav pashiav self-assigned this Jun 30, 2025
@github-project-automation github-project-automation Bot moved this to 📋Back Log in General Tester Board Jun 30, 2025
@pashiav pashiav linked an issue Jun 30, 2025 that may be closed by this pull request
@pashiav
pashiav marked this pull request as ready for review June 30, 2025 18:05
@pashiav
pashiav requested review from a team and CarolineDenis June 30, 2025 18:05

@bhumikaguptaa bhumikaguptaa 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.

  • General testing:
    • Create a new query on any table and run it
    • Run an existing query
    • Create a KML from a Locality query (add Longitude and Latitude fields)
    • Create a CSV from a query
    • Test operators on relevant fields (Like, Equal, Greater than, Less than, Greater than equal to, Less than equal to, Between, In, Contains, Starts with, Empty, True/false for boolean fields, Use operators for relative and absolute date fields))
    • Ensure that the results are as expected for the (formatted) field
    • Fields that can be modified are editable and fields that should be read-only are not editable
    • Batch Edit button is not enabled
    • Verify the report opens in a new tab and looks as expected
    • General testing of Simple Search

Works as expected!

@pashiav
pashiav requested a review from a team July 2, 2025 18:18

@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.

Everytime I try to open queries or reports I get an error. I believe you just need to update the branch as this is not happening in main.

Specify 7 Crash Report - 2025-07-03T16_06_47.590Z.txt

@pashiav

pashiav commented Jul 16, 2025

Copy link
Copy Markdown
Contributor Author

@emenslin Updated it 👍 - please try it out again!

@pashiav
pashiav requested a review from emenslin July 16, 2025 18:42

@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.

  • Create a new query on any table and run it
    • Run an existing query

    • Create a KML from a Locality query (add Longitude and Latitude fields)

    • Create a CSV from a query

    • Test operators on relevant fields (Like, Equal, Greater than, Less than, Greater than equal to, Less than equal to, Between, In, Contains, Starts with, Empty, True/false for boolean fields, Use operators for relative and absolute date fields))

    • Ensure that the results are as expected for the (formatted) field

    • Fields that can be modified are editable and fields that should be read-only are not editable

    • Batch Edit button is not enabled

    • Verify the report opens in a new tab and looks as expected

    • General testing of Simple Search

Looks good!

@pashiav pashiav modified the milestones: 7.12.0, 7.11.2 Aug 4, 2025
Base automatically changed from issue-6793 to issue-6571 August 6, 2025 13:51
@pashiav
pashiav merged commit 5213753 into issue-6571 Aug 6, 2025
14 checks passed
@pashiav
pashiav deleted the issue-6822 branch August 6, 2025 13:52
@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 stored_queries app under backend/stored_queries/

4 participants