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

Allow subclasses of UpdateSite to call updateData #10019

Merged

Conversation

slide
Copy link
Member

@slide slide commented Dec 2, 2024

See JENKINS-74944.

The updateData method is required to be called for the actual update data to be synced. For plugins that may implement a different method for interacting with an update site (e.g. an implementation of password or API key protected update site being planned for the Managed Update Sites plugin), we need to override updateDirectlyNow and call updateData with the
retrieved JSON data.

No tests are needed as it does not decrease the visibility, only increases it.

Proposed changelog entries

  • Allow UpdateSite subclasses to call updateData method in UpdateSite to write out JSON

Proposed upgrade guidelines

N/A

Submitter checklist

Preview Give feedback

Desired reviewers

@jenkinsci/core-pr-reviewers

Before the changes are marked as ready-for-merge:

Maintainer checklist

Preview Give feedback

The updateData method is required to be called for the
actual update data to be synced. For plugins that may
implement a different method for interacting with an
update site (e.g. an implementation of password or
API key protected update site being planned for the
Managed Update Sites plugin), we need to override
updateDirectlyNow and call updateData with the
retrieved JSON data.
Copy link
Member

@timja timja left a comment

Choose a reason for hiding this comment

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

Makes sense

@timja timja requested a review from a team December 2, 2024 22:26
@timja timja added the developer Changes which impact plugin developers label Dec 2, 2024
@slide
Copy link
Member Author

slide commented Dec 2, 2024

Thanks!

@timja
Copy link
Member

timja commented Dec 3, 2024

/label ready-for-merge


This PR is now ready for merge, after ~24 hours, we will merge it if there's no negative feedback.

Thanks!

@comment-ops-bot comment-ops-bot bot added the ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback label Dec 3, 2024
@krisstern krisstern merged commit 7d8d2a6 into jenkinsci:master Dec 5, 2024
15 checks passed
@slide slide deleted the allow-subclasses-to-call-updateData branch December 10, 2024 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
developer Changes which impact plugin developers ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants