Allow download result from bulk action
Add new result code? that will mark that result is stored in attachment. After end of bulk action will be display that bulk action end with this state and is allow download this result as file.
#2 Updated by Ondřej Kopr 6 months ago
After consult will be implement new result code (http status 206) and atachment id will be stored in map in result. Now will be implement download rest endpoint for long running task. Permission will be checked by owner and evaluator by given long running task.
#5 Updated by Ondřej Kopr 5 months ago
Basic implementation was finished:
While is returned http status 206 it will be checked parameters of result model for attachment id and composed url for download. For download is used CIDMST token. Token is part of url.
Download button is part of operation result component.
#6 Updated by Ondřej Kopr 5 months ago
- Status changed from In Progress to Needs feedback
- Assignee changed from Ondřej Kopr to Radek Tomiška
- % Done changed from 70 to 90
I checked permissions for download file and it works, thanks for cidmst as parameter.
Tests is now included. For now is tests only in example module, because current implementation is done in frontend and in example module backend.
Commit: https://github.com/bcvsolutions/CzechIdMng/commit/1f1232c3219e518cb3c134bd906cdca85b6ed6bb (branch develop)
Please Radek could you check my changes, special frontend changes with result model behavior.
#7 Updated by Radek Tomiška 4 months ago
- Status changed from Needs feedback to Resolved
- Assignee changed from Radek Tomiška to Ondřej Kopr
- % Done changed from 90 to 100
I did test and review, it works and code looks nice, thx!
I did just minor refactoring: