Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Webpublisher: Added endpoint to reprocess batch through UI #2555

Conversation

kalisp
Copy link
Member

@kalisp kalisp commented Jan 18, 2022

Brief description

Frontend UI should allow to mark failed batch for reprocessing.

Description

Created endpoint api/webpublish/reprocess/{batch_id}

Returns 200 if everything OK, 404 if batch_id is not found

It selects latest failed record for batch_id, as batch might be failed multiple times (eg. tried to reprocessing, failed again...)

Testing notes:

  1. Select batch with status = 'error', copy its 'batch_id'
  2. use batch_id in endpoint url mentioned higher

Endpoint marks latest batch with status 'error' for reprocessing.
@kalisp kalisp added the type: enhancement Enhancements to existing functionality label Jan 18, 2022
@kalisp kalisp self-assigned this Jan 18, 2022
@mkolar
Copy link
Member

mkolar commented Jan 18, 2022

@kalisp kalisp merged commit a40894f into develop Jan 20, 2022
@kalisp kalisp deleted the feature/OP-2427_Webpublisher-Add-endpoint-to-reprocess-batch-through-UI branch January 20, 2022 15:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: enhancement Enhancements to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants