Skip to content

Conversation

@davelopez
Copy link
Contributor

Extracted from #16003

I figured out that could be useful when trying to get the total_matches of a query using the current "dynamic filtering framework", not sure why it was not part of the API already, maybe because using functional filters could impact the performance in some extreme cases? We probably could fail the request as we do currently when listing history contents.

In draft until both TODOs are resolved.

How to test the changes?

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

davelopez added 4 commits May 15, 2023 18:58
Allows to get the total_matches of a query (without offset or limit) to be able to handle pagination in a deterministic way.
The existing functional filters should be either translated to ORM filters
or dropped. They won't be supported in count.
This test file is full of them, and it is probably better to split all of them into their own test cases but it will require a bigger refactoring...
@davelopez davelopez force-pushed the add_item_listing_count branch from 652b5a1 to 0c3ee1a Compare May 15, 2023 17:01
@davelopez davelopez marked this pull request as ready for review May 15, 2023 17:01
@github-actions github-actions bot added this to the 23.1 milestone May 15, 2023
@davelopez davelopez mentioned this pull request May 22, 2023
4 tasks
@ahmedhamidawan ahmedhamidawan mentioned this pull request May 22, 2023
4 tasks
@bgruening bgruening merged commit 5a9be49 into galaxyproject:dev May 24, 2023
@bgruening
Copy link
Member

Thanks @davelopez

@davelopez davelopez deleted the add_item_listing_count branch May 24, 2023 07:42
@davelopez
Copy link
Contributor Author

Thanks for the reviews and merge!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants