goharbor / harbor

An open source trusted cloud native registry project that stores, signs, and scans content.
https://goharbor.io
Apache License 2.0
24.09k stars 4.76k forks source link

Add the ability to update the replication execution count dynamically #20777

Open mehulgogri opened 3 months ago

mehulgogri commented 3 months ago

Currently, the replications only show the last 50 executions. We want to set it to last 100 or 200 executions. A setting should allow users to see the last n executions of the replications.

zyyw commented 3 months ago

Currently, Harbor portal only support page_size of 15, 25, 50 for replication executions. If users want to see the last n executions of a replication rule, they can send a HTTP request with any HTTP client (browser, curl, postman) similar to the one below:

<harbor-endpoint>/api/v2.0/replication/executions?policy_id=1&page_size=50&page=1
chlins commented 3 months ago

Currently, Harbor portal only support page_size of 15, 25, 50 for replication executions. If users want to see the last n executions of a replication rule, they can send a HTTP request with any HTTP client (browser, curl, postman) similar to the one below:

<harbor-endpoint>/api/v2.0/replication/executions?policy_id=1&page_size=50&page=1

@zyyw I think @mehulgogri means the execution history rather than page size, currently the execution history is limited to 50 for replication which were hard-coded in jobservice, mark this to requirement.

mehulgogri commented 3 months ago

@chlins you are right.. I meant the execution history and not the page size.