Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Update export/import CLI for MigrationWaves #643

Merged
merged 1 commit into from
Jun 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion hack/tool/tackle
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def cmdWanted(args, action):

class TackleTool:
# TYPES order matters for import/upload to Tackle2
TYPES = ['tagcategories', 'tags', 'jobfunctions', 'stakeholdergroups', 'stakeholders', 'businessservices', 'identities', 'applications', 'proxies', 'dependencies', 'questionnaires', 'archetypes', 'assessments', 'reviews']
TYPES = ['tagcategories', 'tags', 'jobfunctions', 'migrationwaves', 'stakeholdergroups', 'stakeholders', 'businessservices', 'identities', 'applications', 'proxies', 'dependencies', 'questionnaires', 'archetypes', 'assessments', 'reviews']
NOT_IMPORTED_TYPES = ['taskgroups', 'tasks']
TACKLE2_SEED_TYPES = ['tagcategories', 'tags', 'jobfunctions']

Expand Down Expand Up @@ -352,6 +352,17 @@ class TackleTool:
if "stakeholdergroups" in t:
dictObj['stakeholders'] = [] # empty stakeholders to not create it with parent stakeholdergroup, but in separate call

if "stakeholders" in t:
# Empty stakeholders Refs to Application, linked from Application created later
dictObj['owns'] = []
dictObj['contributes'] = []

if "migrationwaves" in t:
# Empty migrationvawe's Refs to avoid circular dependency problem, association is linked from the opposite side
dictObj['applications'] = []
dictObj['stakeholders'] = []
dictObj['stakeholdergroups'] = []

path = tackle2path(t)
if "assessments" in t:
if 'application' in dictObj:
Expand Down
Loading