Skip to content

HOTFIX - DO NOT MERGE! Change nested collection query to use POST#1003

Closed
laritakr wants to merge 1 commit intomainfrom
hotfix-based-on-2b91fec
Closed

HOTFIX - DO NOT MERGE! Change nested collection query to use POST#1003
laritakr wants to merge 1 commit intomainfrom
hotfix-based-on-2b91fec

Conversation

@laritakr
Copy link
Copy Markdown
Member

@laritakr laritakr commented Sep 11, 2025

The Nested Collection Controller is not based on catalog controller, so it does not inherit the POST behavior we added there. This causes the parent_and_child_can_nest? to do a GET request, which fails when too many ids are included in the request.

In this fix, we add an explicit setting of http_method prior to doing this query. This fix should be moved to Hyrax::Collections::NestedCollectionQueryService, and removed here once that is complete.

This is a temporary override until Hyrax code supporting POST for nested collection queries is brought forward, so it should not be merged.

The Nested Collection Controller is not based on catalog controller,
so it does not inherit the POST behavior we added there.

This is a temporary override until Hyrax supports POST for nested
collection queries.
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