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

[JENKINS-68602] parent name for ProjectNamingStrategy #6598

Merged
merged 10 commits into from Sep 5, 2022

Conversation

mawinter69
Copy link
Contributor

@mawinter69 mawinter69 commented May 24, 2022

add a new method checkName(parentName, name) to the ProjectNamingStrategy so that
it is possible to check the full name of an item.

See JENKINS-68602.

Proposed changelog entries

  • Developer: Enable ProjectNamingStrategy to check the full name of a new item

Proposed upgrade guidelines

N/A

Submitter checklist

  • (If applicable) Jira issue is well described
  • Changelog entries and upgrade guidelines are appropriate for the audience affected by the change (users or developer, depending on the change) and are in the imperative mood. Examples
    • Fill-in the Proposed changelog entries section only if there are breaking changes or other changes which may require extra steps from users during the upgrade
  • Appropriate autotests or explanation to why this change has no tests
  • New public classes, fields, and methods are annotated with @Restricted or have @since TODO Javadoc, as appropriate.
  • For dependency updates: links to external changelogs and, if possible, full diffs

Desired reviewers

@mention

Maintainer checklist

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

  • There are at least 2 approvals for the pull request and no outstanding requests for change
  • Conversations in the pull request are over OR it is explicit that a reviewer does not block the change
  • Changelog entries in the PR title and/or Proposed changelog entries are accurate, human-readable, and in the imperative mood
  • Proper changelog labels are set so that the changelog can be generated automatically
  • If the change needs additional upgrade steps from users, upgrade-guide-needed label is set and there is a Proposed upgrade guidelines section in the PR title. (example)
  • If it would make sense to backport the change to LTS, a Jira issue must exist, be a Bug or Improvement, and be labeled as lts-candidate to be considered (see query).

add a new method checkName to the ProjectNamingStrategy so that
it is possible to check the full name of an item.
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.

The default implementation of the new method is not using the new parameter, and the implementation in core are not using it either. Do you have a downstream pull request that is using the new parameter? I don't see the use nor need for this new API at the moment.

core/src/main/java/hudson/model/Job.java Outdated Show resolved Hide resolved
@alecharp alecharp added the needs-justification This PR lacks a motivation for the proposed change. label May 25, 2022
mawinter69 and others added 3 commits May 25, 2022 14:45
Co-authored-by: Adrien Lecharpentier <adrien.lecharpentier@gmail.com>
Co-authored-by: Adrien Lecharpentier <adrien.lecharpentier@gmail.com>
Co-authored-by: Adrien Lecharpentier <adrien.lecharpentier@gmail.com>
@alecharp alecharp added the squash-merge-me Unclean or useless commit history, should be merged only with squash-merge label May 25, 2022
@basil basil added needs-more-reviews Complex change, which would benefit from more eyes and removed needs-justification This PR lacks a motivation for the proposed change. labels May 31, 2022
@basil basil requested a review from a team May 31, 2022 17:44
@basil basil added the rfe For changelog: Minor enhancement. use `major-rfe` for changes to be highlighted label May 31, 2022
@basil
Copy link
Member

basil commented May 31, 2022

The intended consumer jenkinsci/role-strategy-plugin#179 has not yet been reviewed. That needs to happen before this core PR can be considered.

@alecharp alecharp added the on-hold This pull request depends on another event/release, and it cannot be merged right now label Jun 7, 2022
@NotMyFault
Copy link
Member

NotMyFault commented Jun 9, 2022

The intended consumer jenkinsci/role-strategy-plugin#179 has not yet been reviewed. That needs to happen before this core PR can be considered.

The core PR may ends up stalled, there are currently no active maintainers of the role strategy plugin.

@basil basil added the stalled The PR is reasonable and might be merged, but it is no longer active. It can be taken over by other label Jun 10, 2022
@NotMyFault NotMyFault removed the stalled The PR is reasonable and might be merged, but it is no longer active. It can be taken over by other label Jun 24, 2022
@NotMyFault
Copy link
Member

NotMyFault commented Jun 24, 2022

I removed the stalled label, the plugin has been adopted by the PR author, who maintains it now.

@NotMyFault NotMyFault removed the on-hold This pull request depends on another event/release, and it cannot be merged right now label Jun 24, 2022
@NotMyFault NotMyFault marked this pull request as draft July 21, 2022 21:08
@mawinter69 mawinter69 marked this pull request as ready for review July 28, 2022 15:54
@NotMyFault NotMyFault added the developer Changes which impact plugin developers label Aug 12, 2022
@NotMyFault
Copy link
Member

The downstream PR has been merged by now.

@NotMyFault NotMyFault requested a review from a team August 23, 2022 20:46
@NotMyFault NotMyFault added the needs-security-review Awaiting review by a security team member label Aug 23, 2022
@daniel-beck daniel-beck added security-approved @jenkinsci/core-security-review reviewed this PR for security issues and removed needs-security-review Awaiting review by a security team member labels Aug 30, 2022
@NotMyFault NotMyFault removed the request for review from a team September 3, 2022 21:33
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.

can you create a PR on role strategy consuming this API please?

I see you've merged a workaround, but generally we require a PR demonstrating use of the API consuming the core incremental.

apart from that this looks good to me

@mawinter69
Copy link
Contributor Author

mawinter69 commented Sep 4, 2022

Role strategy is already implementing the API
Just the @Override annotation is not there yet
https://github.com/jenkinsci/role-strategy-plugin/blob/master/src/main/java/org/jenkinsci/plugins/rolestrategy/RoleBasedProjectNamingStrategy.java#L72
The workaround mentioned is for the a case when the old method is called.

@timja timja requested a review from a team September 4, 2022 16:09
Copy link
Member

@NotMyFault NotMyFault left a comment

Choose a reason for hiding this comment

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

Thanks!

@NotMyFault NotMyFault removed rfe For changelog: Minor enhancement. use `major-rfe` for changes to be highlighted needs-more-reviews Complex change, which would benefit from more eyes labels Sep 4, 2022
Copy link
Member

@basil basil left a comment

Choose a reason for hiding this comment

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

This PR is now ready for merge. We will merge it after approximately 24 hours if there is no negative feedback. Please see the merge process documentation for more information about the merge process. Thanks!

@basil basil added the ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback label Sep 4, 2022
@basil basil merged commit f93ee62 into jenkinsci:master Sep 5, 2022
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 security-approved @jenkinsci/core-security-review reviewed this PR for security issues squash-merge-me Unclean or useless commit history, should be merged only with squash-merge
Projects
None yet
6 participants