Issues icon indicating copy to clipboard operation
Issues copied to clipboard

/api/releases endpoint does not honor the ?ids=Releases-Id query parameter

Open KennethBates opened this issue 3 years ago • 0 comments

Team

  • [X] I've assigned a team label to this issue

Severity

One report

Version

2022.4.3913-hotfix.4575

Latest Version

No response

What happened?

The /api/releases endpoint has an ids parameter to filter based on ID ("Template": "/api/Spaces-323/releases{?skip,take,ids}",), however this endpoint does not filter out releases when using ?ids=Releases-Id filter.

As mentioned in the report, other endpoints do honor the ids filter, e.g. /api/tasks?ids=ServerTasks-123

Reproduction

  1. Create two unique releases taking note of each Releases-Id
  2. Attempt to use the ?ids= filter on the /api/releases endpoint (e.g. OctoURL/api/releases?ids=Releases-123)
  3. See the results don't filter out releases

Error and Stacktrace

No response

More Information

Reported here: https://help.octopus.com/t/ids-filter-ignored-by-api-when-get-releases/28487

Workaround

No response

KennethBates avatar Oct 20 '22 02:10 KennethBates