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

RSE-955: Fix: Allow to update existing webhooks at project import #8892

Conversation

Jesus-Osuna-M
Copy link
Contributor

@Jesus-Osuna-M Jesus-Osuna-M commented Feb 7, 2024

Problem: When exporting a project and then importing into another instance, the Project Import feature fails to import webhooks if they already exist in the current project. Consequently, the webhook definitions are not updated.

Expected Outcome: Rundeck should treat webhook as it treats jobs when imported.

Proposed Solution: If a Webhook is being imported and should update an existing Webhook use the same UUID when saving the updated Webhook, this small change allows Webhooks to be updated when exported and imported over itself. Also, a new option should be added when importing a project to allow users to keep the same webhook UUID or generate new ones. By making these changes the Webhooks would be handled in the same way jobs are handled when a Project is imported over itself.

To make ir work with rd-cli needs: rundeck/rundeck-cli#546

@Jesus-Osuna-M Jesus-Osuna-M added this to the 5.2.0 milestone Feb 7, 2024
@Jesus-Osuna-M Jesus-Osuna-M force-pushed the RSE-955-update-existing-webhooks-at-project-import-based-on-RSE-979 branch from de30cb0 to bc75516 Compare February 7, 2024 21:34
@Jesus-Osuna-M Jesus-Osuna-M changed the title allow to update webhooks when importing RSE-955 FIX: Allow to update existing webhooks at project import Feb 8, 2024
@Jesus-Osuna-M Jesus-Osuna-M marked this pull request as ready for review February 8, 2024 13:03
@Jesus-Osuna-M Jesus-Osuna-M force-pushed the RSE-955-update-existing-webhooks-at-project-import-based-on-RSE-979 branch 5 times, most recently from 2f758f1 to 97a88d0 Compare February 12, 2024 17:12
@Jesus-Osuna-M Jesus-Osuna-M force-pushed the RSE-955-update-existing-webhooks-at-project-import-based-on-RSE-979 branch 3 times, most recently from 1170ba0 to 9c79de9 Compare February 23, 2024 13:42
@Jesus-Osuna-M Jesus-Osuna-M force-pushed the RSE-955-update-existing-webhooks-at-project-import-based-on-RSE-979 branch from 9c79de9 to 3f89805 Compare February 23, 2024 15:08
Copy link
Contributor

@carlosrfranco carlosrfranco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Jesus-Osuna-M Jesus-Osuna-M merged commit 9faa6ec into main Feb 23, 2024
3 checks passed
@Jesus-Osuna-M Jesus-Osuna-M deleted the RSE-955-update-existing-webhooks-at-project-import-based-on-RSE-979 branch February 23, 2024 16:33
@fdevans fdevans changed the title RSE-955 FIX: Allow to update existing webhooks at project import RSE-955: Fix: Allow to update existing webhooks at project import Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants