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

Migrate from EE 8 to EE 9 #444

Merged
merged 3 commits into from
Jan 8, 2025
Merged

Migrate from EE 8 to EE 9 #444

merged 3 commits into from
Jan 8, 2025

Conversation

basil
Copy link
Member

@basil basil commented Nov 18, 2024

See jenkinsci/jenkins#9672.

Testing done

  • Passing CI build
  • Tested in context in branch-api and matrix-auth before and after migrating those plugins to EE 9
  • ATH (weekly and LTS): passing
  • BOM (weekly): passing

@basil basil added the internal label Nov 18, 2024
@basil basil force-pushed the jakarta branch 2 times, most recently from ee250fa to 50cbd7f Compare November 18, 2024 22:27
basil added a commit to basil/acceptance-test-harness that referenced this pull request Nov 18, 2024
basil added a commit to basil/bom that referenced this pull request Nov 18, 2024
@basil basil marked this pull request as ready for review November 18, 2024 23:37
@basil basil requested a review from a team as a code owner November 18, 2024 23:37
@@ -1092,13 +1159,39 @@ public void renameTo(String newName) throws IOException {
* {@inheritDoc}
*/
@Override
public synchronized void doSubmitDescription(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException {
public synchronized void doSubmitDescription(StaplerRequest2 req, StaplerResponse2 rsp) throws IOException, ServletException {
if (Util.isOverridden(AbstractFolder.class, getClass(), "doSubmitDescription", StaplerRequest.class, StaplerResponse.class)) {
Copy link
Member

Choose a reason for hiding this comment

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

Most if not all of these web methods could probably be simplified considerably by just deleting the deprecated overload, which I doubt is either called programmatically or overridden by any known subclass. Pending that, it would make sense to mark the new overloads final and/or @Restricted(NoExternalUse.class) unless and until some legitimate use case for overriding one is identified.

(not referring to submit, which is clearly overridden at least within this plugin, and also in branch-api)

Copy link
Member Author

Choose a reason for hiding this comment

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

Does not seem necessary for this PR.

@jglick jglick requested a review from a team November 19, 2024 20:33
@basil basil requested a review from alecharp November 21, 2024 16:02
Copy link
Member

@alecharp alecharp left a comment

Choose a reason for hiding this comment

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

This looks complete to me for the EE 8 to 9 migration.
Additional changes wouldn't be related to the migration and would require additional research as to their usages externally to the plugin.

@jglick
Copy link
Member

jglick commented Dec 17, 2024

Additional changes wouldn't be related to the migration

Well, no IMO, the PR is introducing new externally-visible API signatures which are not expected to ever be used externally, so it is related. Not blocking.

@basil
Copy link
Member Author

basil commented Dec 17, 2024

But they are only being introduced where there were existing externally-visible API signatures for the old EE 8 types. In other words, the fact that methods were exposed but unused before this PR was just technical debt, which I am not making worse in this PR (but also not making any better).

@basil basil merged commit 4dc79fb into jenkinsci:master Jan 8, 2025
17 checks passed
@basil basil deleted the jakarta branch January 8, 2025 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants