Project

General

Profile

Actions

Task #2518

closed

Script definition duplication

Added by Ondrej Husník over 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Ondrej Husník
Category:
Scripts
Target version:
Start date:
10/15/2020
Due date:
% Done:

100%

Estimated time:
8.00 h
Owner:

Description

One cool feature would be script duplication (similar to what you can do with systems). Create the same script but add copy to the name. It would save time with copying permissions.
It would allow you to basically use one script as a template for another one which is often useful.


Related issues

Related to IdStory Identity Manager - Task #2516: Add support of bulk actions for script definitionClosedOndrej Husník10/14/2020

Actions
Related to IdStory Identity Manager - Feature #2533: Add download button for backup scripts and templates bulk actionClosedRadek Tomiška10/26/2020

Actions
Related to IdStory Identity Manager - Feature #2493: Allow deploy script via dropdown zoneClosedRadek Tomiška09/16/2020

Actions
Actions #1

Updated by Ondrej Husník over 3 years ago

  • Related to Task #2516: Add support of bulk actions for script definition added
Actions #2

Updated by Vít Švanda over 3 years ago

  • Target version set to 10.7.0
Actions #3

Updated by Vít Švanda over 3 years ago

  • Target version changed from 10.7.0 to 10.8.0
Actions #4

Updated by Vít Švanda about 3 years ago

  • Target version changed from 10.8.0 to 11.0.0
Actions #5

Updated by Radek Tomiška about 3 years ago

  • Related to Feature #2533: Add download button for backup scripts and templates bulk action added
Actions #6

Updated by Radek Tomiška about 3 years ago

  • Related to Feature #2493: Allow deploy script via dropdown zone added
Actions #7

Updated by Radek Tomiška about 3 years ago

  • Estimated time set to 4.00 h
Actions #8

Updated by Radek Tomiška about 3 years ago

  • Estimated time changed from 4.00 h to 8.00 h
Actions #9

Updated by Ondrej Husník about 3 years ago

  • Status changed from New to In Progress
Actions #10

Updated by Ondrej Husník about 3 years ago

  • Status changed from In Progress to Needs feedback
  • Assignee changed from Ondrej Husník to Vít Švanda
  • % Done changed from 0 to 90

I added duplication ability for script definition.
Please could you provide me feedback. Thank you.

https://github.com/bcvsolutions/CzechIdMng/commit/305fa8e564dd1f807b6d4250c3902f2357e16fb9

Actions #11

Updated by Vít Švanda about 3 years ago

  • Assignee changed from Vít Švanda to Radek Tomiška
Actions #12

Updated by Radek Tomiška about 3 years ago

  • Status changed from Needs feedback to In Progress
  • Assignee changed from Radek Tomiška to Ondrej Husník
  • % Done changed from 90 to 80

I did test and code review, it works, thx!

Review notes:
- Move logic from bulk action into script service (e.g. DefaultSysSystemService) and implement CloneableService interface properly. The main benefit is @Transactional usage - when script authority creation fails, then skeleton script is created (~persisted) now.
- we are not using abbreviations

Actions #13

Updated by Ondrej Husník about 3 years ago

  • Status changed from In Progress to Needs feedback
  • Assignee changed from Ondrej Husník to Radek Tomiška

I implemented your review recommendations. I hope that refactored code better meets your expectations.

https://github.com/bcvsolutions/CzechIdMng/commit/e13902b204b558ce750094f04442228fd65a60f9

Actions #14

Updated by Radek Tomiška about 3 years ago

  • Status changed from Needs feedback to Resolved
  • Assignee changed from Radek Tomiška to Ondrej Husník
  • % Done changed from 80 to 100

It's not about my expectations, it doesn't work without @Transactional usage properly and not using abbreviations is in our coding style (read please https://github.com/bcvsolutions/CzechIdMng/blob/develop/CONTRIBUTING.md#coding-style-convention).

Note: Abbreviations are still in your code (e.g. authorityFilt), but I'm closing this ticket.

Actions #15

Updated by Radek Tomiška almost 3 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF