Project

General

Profile

Task #1437

SelectBox component - use embedded data

Added by Vít Švanda 4 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Frontend
Target version:
Start date:
01/07/2019
Due date:
% Done:

100%


Description

Goal of this task is modify the from component for feature when will be used data from embedded object.
Benefits:

  • Prevents of redundant requests on BE.
  • Solves problem with permissions in WF tasks. Usecase: we have permission on the task, by wfEvaluator we have permission on concept-role too. Concept-role contains relations on IdmRole and IdmIdentityContract and here is the problem, because we don't have permission (autocomplet) on this objects (direct requests doesn't pass). Required data of IdmRole and IdmIdentityContract (for show in selectbox) are already contains in IdmConceptRoleRequest object (_embedded) and that data we want to use.

History

#1 Updated by Vít Švanda 4 months ago

  • Status changed from In Progress to Needs feedback
  • Assignee changed from Vít Švanda to Radek Tomiška
  • % Done changed from 0 to 90

Implemented in AbstractForm.
Form component has new method "isValueComplex". By default return false. Only SelectBox and RoleSelect returns true now.

Implemented in "vsvanda/1437-selectbox-use-embedded".

#2 Updated by Vít Švanda 4 months ago

  • Target version changed from Opal (9.4.0) to Opal (9.4.0-rc.2)

#3 Updated by Radek Tomiška 4 months ago

  • Status changed from Needs feedback to Resolved
  • Assignee changed from Radek Tomiška to Vít Švanda
  • Target version changed from Opal (9.4.0-rc.2) to Opal (9.4.0)
  • % Done changed from 90 to 100

I did code review and test it on incompatible roles agenda - it works and it's awesome (requests to BE are reduced), thx!

#4 Updated by Vít Švanda 4 months ago

  • Status changed from Resolved to Closed

#5 Updated by Vít Švanda 4 months ago

  • Target version changed from Opal (9.4.0) to Opal (9.4.0-rc.2)

Also available in: Atom PDF