Project

General

Profile

Actions

Task #1372

closed

Allow download result from bulk action

Added by Ondřej Kopr about 6 years ago. Updated about 6 years ago.

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

100%

Estimated time:
Owner:

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.


Files

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

Updated by Ondřej Kopr about 6 years ago

  • Status changed from New to In Progress
Actions #2

Updated by Ondřej Kopr about 6 years 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.

Actions #3

Updated by Ondřej Kopr about 6 years ago

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

Updated by Ondřej Kopr about 6 years 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.

Actions #5

Updated by Ondřej Kopr about 6 years 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.

Actions #6

Updated by Ondřej Kopr about 6 years 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.

Actions #7

Updated by Radek Tomiška about 6 years 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

Actions #8

Updated by Ondřej Kopr about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF