Skip to content

Commit

Permalink
feat: allow to export project with update_project flag (#913)
Browse files Browse the repository at this point in the history
* feat: allow to project update

* fix: typo

* fix: missing dot

---------

Co-authored-by: Przemyslaw Kalitowski <przemyslaw@kalitowski.com>
  • Loading branch information
przemkalit and Przemyslaw Kalitowski authored Sep 23, 2024
1 parent e6ead7a commit 0394ff3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changelogs/fragments/filetree_create_update_project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
minor_changes:
- filetree_create able to export project with update_project state
1 change: 1 addition & 0 deletions roles/filetree_create/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ The following variables are required for that role to work properly:
| `omit_id` | N/A | no | bool | Whether to create output files without objects id.|
| `organization`| N/A | no | str | Default organization for all objects that have not been set in the source controller.|
| `export_related_objects` | False | no | bool | Whether to export related objects (job templates related to certain workflows and the projects associated with these job templates) when a single JT or a single WFJT are being exported. |
| `update_project_state` | False | no | bool | Whether the project should be updated after import to the target controller. |

## Dependencies

Expand Down
1 change: 1 addition & 0 deletions roles/filetree_create/templates/current_projects.j2
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ controller_projects:
default_environment: "{{ current_job_templates_asset_value.summary_fields.default_environment.name }}"
{% endif %}
allow_override: "{{ current_projects_asset_value.allow_override }}"
update_project: "{{ update_project_state | default(false) }}"
timeout: {{ current_projects_asset_value.timeout }}
{% if query_notification_error | length > 0 %}
notification_templates_error:
Expand Down

0 comments on commit 0394ff3

Please sign in to comment.