Project

General

Profile

Task #1372

Allow download result from bulk action

Added by Ondřej Kopr 8 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Bulk operations
Target version:
Start date:
11/12/2018
Due date:
% Done:

100%


Description

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.

impl.png View (79.9 KB) Ondřej Kopr, 11/20/2018 02:01 PM

History

#1 Updated by Ondřej Kopr 8 months ago

  • Status changed from New to In Progress

#2 Updated by Ondřej Kopr 8 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.

#3 Updated by Ondřej Kopr 8 months ago

  • Target version changed from Onyx (9.3.0) to Opal (9.4.0-rc.1)

#4 Updated by Ondřej Kopr 8 months ago

  • % Done changed from 0 to 20

Result is now implement as attachment and can be downloaded by LRT controller with permissions checked by given lrt id.

#5 Updated by Ondřej Kopr 8 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 8 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 7 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:
https://github.com/bcvsolutions/CzechIdMng/commit/fff093b0642962cdefbb859b1b7409094dcbbf5b

#8 Updated by Ondřej Kopr 7 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF