flanksource / flanksource-ui

https://flanksource-ui.vercel.app
Other
8 stars 22 forks source link

Changes Endpoint Doesn't Support URL Encoded Values For Include/Decline Data such as Summary #1970

Closed mainawycliffe closed 3 weeks ago

mainawycliffe commented 1 month ago

Here is a curl request example, with the summary field being URL encoded as it's value look like this -> status.artifact, status.conditions, for simple string, it works well.

Returns empty response.

http://localhost:3000/api/catalog/changes?summary=status.artifact%252C%2520status.conditions&from=now-2d&to=now&page=1&page_size=200&sort_by=-created_at&recursive=all&depth=1&include_deleted_configs=false
mainawycliffe commented 1 month ago

Related to -> https://github.com/flanksource/flanksource-ui/pull/1931

adityathebe commented 1 month ago

@mainawycliffe The encoding is incorrect. It looks like it's encoded twice.