unstract
unstract copied to clipboard
feat: Added support for total files and processing status in execution
What
- Added new field
total_filesto WF execution model - Added
successful_filesandfailed_filesfields to execution serializer - Changes to calculate
total_filesbefore an execution begins - MINOR: Checked and changed typing of
workflow_executionarg in some functions
NOTE: The total_files value will not be filled for existing records but it can be handled with a data migration if required
Why
- To provide insight on status of an execution in terms of the total files involved and the progress
How
- Captured total files involved before an execution begins and persisted it
- Computing progress by querying for the file execution records by its status
Can this PR break any existing features. If yes, please list possible items. If no, please explain why. (PS: Admins do not merge the PR without this section filled)
- No, made changes with sane defaults - all additive
Database Migrations
- 2 Schema migrations
- For added field and minor
db_commentchange in WF execution model - For
related_namechange in file execution model
- For added field and minor
Related Issues or PRs
- Based on top of #1129
Notes on Testing
- Tried executing a WF / API deployment locally
- Computing the values as expected for new records
Screenshots
Checklist
I have read and understood the Contribution Guidelines.
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code