Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose last mirror sync timestamp through the API #18266

Closed
petergardfjall opened this issue Jan 14, 2022 · 1 comment · Fixed by #18267
Closed

Expose last mirror sync timestamp through the API #18266

petergardfjall opened this issue Jan 14, 2022 · 1 comment · Fixed by #18267
Labels
modifies/api This PR adds API routes or modifies them type/feature Completely new functionality. Can only be merged if feature freeze is not active.

Comments

@petergardfjall
Copy link
Contributor

petergardfjall commented Jan 14, 2022

Feature Description

One can queue up a sync operation for a mirror repo via POST /api/v1/{owner}/{repo}/mirror-sync.
However, there is no way for an API client of learning of completion (the UI does expose this information in the Last update mirror setting field, but not the REST API).

This issue proposes to add a mirror_updated field to the repository type (as returned by GET /api/v1/{owner}/{repo}).
For example, this allows API clients to determine if an initiated sync has completed, or take decisions on if a mirror repo should be synced (given some client-side policy on freshness).

@petergardfjall
Copy link
Contributor Author

PR in #18267

@zeripath zeripath linked a pull request Jan 15, 2022 that will close this issue
@zeripath zeripath added type/feature Completely new functionality. Can only be merged if feature freeze is not active. modifies/api This PR adds API routes or modifies them labels Jan 15, 2022
zeripath pushed a commit that referenced this issue Jan 18, 2022
Add the last update time to the repository api type.

Close #18266
Chianina pushed a commit to Chianina/gitea that referenced this issue Mar 28, 2022
Add the last update time to the repository api type.

Close go-gitea#18266
@go-gitea go-gitea locked and limited conversation to collaborators Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
modifies/api This PR adds API routes or modifies them type/feature Completely new functionality. Can only be merged if feature freeze is not active.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants