pim-community-dev icon indicating copy to clipboard operation
pim-community-dev copied to clipboard

Product API: include search_locale in pagination links

Open danielbeardsley opened this issue 4 years ago • 4 comments

Previously, the pagination links in both Product and ProductModel list api responses would have the search_locale param stripped if it was used. This meant that the first page would be retrieved, but then following the nextLink url in the response would throw a 422 when visited (because of a lack of search_locale).

Definition Of Done (for Core Developer only)

Q A
Added Specs -
Added legacy Behats -
Added acceptance tests -
Added integration tests OK
Changelog updated Todo
Review and 2 GTM Todo
Micro Demo to the PO (Story only) -
Migration script -
Tech Doc -

Todo: Pending / Work in progress OK: Done / Validated -: Not needed

I'm not sure which of the above is my responsibility. I've added to the only tests I was able to find that cover this code, but I'm not sure which category these fall into.

Also, this is a more complete fix than #11723 (which seems to have been accidentally closed by an unrelated commit)

Closes #11722

danielbeardsley avatar Jan 09 '21 01:01 danielbeardsley

Not sure what else to do here, this fixes an existing bug and updates the tests accordingly.

danielbeardsley avatar Mar 11 '21 19:03 danielbeardsley

Still fixes a bug and adds tests.

danielbeardsley avatar Apr 07 '22 19:04 danielbeardsley

This fixes a real bug that we ran into. It's not an enhancement that needs discussion, it adds something that was obviously left out on accident and adds tests to ensure it stays fixes.

Is there something else that needs doing before this accepted?

danielbeardsley avatar Jan 17 '23 05:01 danielbeardsley

I fixed your bug more than two years ago. Not sure what else to do here...

danielbeardsley avatar Mar 23 '24 06:03 danielbeardsley