argoproj / argo-cd

Declarative Continuous Deployment for Kubernetes
https://argo-cd.readthedocs.io
Apache License 2.0
18.06k stars 5.52k forks source link

Pagination problem and deployment #21023

Open Sarvesh001112 opened 12 hours ago

Sarvesh001112 commented 12 hours ago

Checklist:

Describe the bug

To Reproduce

Expected behavior

Screenshots

Version

Paste the output from `argocd version` here.

Logs

Paste any relevant application logs here.

Dear Argo CD Support Team,

I am encountering two issues with the Argo CD API:

  1. Pagination Issue: When I make a request to:https://localhost:8083/api/v1/applications?limit=10I am receiving all responses, rather than the expected 10 results. Despite setting the limit parameter to 10, all items are being returned. In short - limit parameter not working

  2. Deployment Issue: When I query the API using:https://localhost:8083/api/v1/applications?name={application name}the deployments from two days ago are not appearing, while recent ones from 2023 are.

Could you please assist me in resolving these issues or provide guidance on proper pagination and deployment retrieval handling for these endpoints? Thank you for your support. Best regards, Sarvesh

nitishfy commented 11 hours ago

Pagination Issue: When I make a request to:https://localhost:8083/api/v1/applications?limit=10I am receiving all responses, rather than the expected 10 results. Despite setting the limit parameter to 10, all items are being returned. In short - limit parameter not working

pagination 'may' require both limit and continue parameters. If continue is missing and the API call includes more items than the limit, it might return all results, bypassing pagination. You should check the response headers for the continue token if the results are paginated.

Sarvesh001112 commented 11 hours ago

But continue will come in response at end of json . If all response is coming how can we get continue. Continue will used in 2 time

Sarvesh001112 commented 11 hours ago

I want to run api and want only 10 response at 1st time . Also what is the default max value of limit.

Sarvesh001112 commented 9 hours ago

Is pagination support on this version - v2.12.3+6b9cd82, as I create 1134 application and pagination not working.