This pull request introduces a new endpoint to the queue API for retrieving the next queue record with optional filtering, #92
Merged
goldlabelapps merged 2 commits intomasterfrom Apr 19, 2026
Merged
Conversation
Add a new tests/test_queue.py to verify the /queue endpoint returns 200 and the expected payload shape (meta and data with in_queue, collections, groups, example and meta severity/title). Simplify tests/test_orders.py by removing the strict else-branch that asserted a string search value, allowing the test to pass when search is provided as a dict. Also add pytest_output.txt capturing the test run results.
Introduce a new GET /queue/next endpoint (app/api/queue/routes/next.py) that returns the most recently updated queue record, optionally filtered by collection and group. Register the new router in app/api/queue/__init__.py and bump package version to 2.2.6. Also add a Postman collection (Python°.postman_collection.json) for local API testing.
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.
updates the API routing to include this new endpoint, and adds corresponding tests. It also bumps the application version and shows all tests passing. The key changes are grouped below:
API Enhancements:
/queue/nextinapp/api/queue/routes/next.pyto fetch the next queue record, supporting optionalcollectionandgroupquery parameters for filtering. The endpoint returns a record ordered by latest update, or a message if none are found.next_routerinapp/api/queue/__init__.pyso the/queue/nextendpoint is available in the API. [1] [2]Testing:
tests/test_queue.pywith a test for the/queueendpoint, verifying the structure and content of the response.pytest_output.txtconfirms that all 14 tests pass successfully, indicating that the application and new endpoint are stable.Other Changes:
app/__init__.pyfrom2.2.5to2.2.6to reflect the new feature.No breaking changes were introduced, and the new feature is fully covered by tests.