centraldogma
centraldogma copied to clipboard
Provide a way to trigger Git mirroring manually
Motivation:
- There is no easy way to test Git mirroring configurations.
- Some users may want to run Git mirroring manually instead of using the periodic scheduler.
Modifications:
- Add
POST /projects/{projectName}/mirrors/{mirrorId}/runREST API toMirroringServiceV1so as to trigger a mirroring task. - Add
verboseResponsestoCentralDogmaConfigso as to contain full stack traces in error responses.- The cause of mirroring failures will be displayed in the UI for administrators or
verboseResponsesis enabled.
- The cause of mirroring failures will be displayed in the UI for administrators or
- Change
AbstractMirrorto returnMirrorResultwhich is used to notify the result in the UI. - Make
MirrorDto.schedulenullable.- Exclude a mirror configuration from scheduling
scheduleit is null.
- Exclude a mirror configuration from scheduling
- Move
MirrorExceptiontocommonand expose it in the error responses. - Add
cronstruedependency topackage.jsonto display a human readable description on the mirror form UI. - Increase
maxWidthofNotificationWrapperto render stack traces well.
Result:
- You can now trigger a mirroring task in the mirror UI.
- Fixes #700
- Fixes #236
https://github.com/user-attachments/assets/dcd738ce-39ab-4252-a19f-b35556c73170
Is this ready?
Sorry, I missed the test failure. Fixed it. PTAL.