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

fix(webhook): add migration script when webhooks have no API keys #6472

Merged
merged 7 commits into from
Nov 16, 2023

Conversation

d4x1
Copy link
Contributor

@d4x1 d4x1 commented Nov 16, 2023

⚠️ Pre Checklist

Please complete ALL items in this checklist, and remove before submitting

  • I have read through the Contributing Documentation.
  • I have added relevant tests.
  • I have added relevant documentation.
  • I will add labels to the PR, such as pr-type/bug-fix, pr-type/feature-development, etc.

Summary

What does this PR do?
When running an old version of devlake, webhook be created without api keys, and if it's upgraded to version >= v0.19(webhook has a api key), user cannot regenerate webhooks' api keys.
This PR just creates a related api key for existing webhooks, so users can regenerate it.
To run migration scripts, user should open Config UI and trigger the migration.

Does this close any open issues?

Closes part of #6467

Screenshots

Include any relevant screenshots here.

update partially

image #### update all webhooks' api keys image

Other Information

Any other information that is important to this PR.

@klesh klesh merged commit b6d8d8a into apache:main Nov 16, 2023
10 checks passed
@d4x1 d4x1 added the pr-type/bug-fix This PR fixes a bug label Nov 16, 2023
@d4x1 d4x1 added this to the v0.21 milestone Nov 16, 2023
abeizn pushed a commit that referenced this pull request Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-type/bug-fix This PR fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants