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

Better document lib.hudson.widget-refresh #10237

Merged
merged 3 commits into from
Feb 9, 2025

Conversation

daniel-beck
Copy link
Member

@daniel-beck daniel-beck commented Feb 4, 2025

This is also used outside core, making it essentially API, so deserves to be documented. While I'm here, address some IDE complaints about my JS.

Testing done

None

Proposed changelog entries

  • human-readable text

Proposed upgrade guidelines

N/A

Submitter checklist

Preview Give feedback

Desired reviewers

@mention

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

Maintainer checklist

Preview Give feedback

Behaviour.specify(
".widget-refresh-reference",
"widget-refresh",
0,
function (e) {
var id = e.getAttribute("data-id");
var url = e.getAttribute("data-url");
let id = e.getAttribute("data-id");

Choose a reason for hiding this comment

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

Switching from var to let improves code safety

Copy link
Member

Choose a reason for hiding this comment

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

I don't think that extra change would suit the scope for this PR.

Copy link
Member Author

Choose a reason for hiding this comment

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

This PR changes from var to let already, so I'm interpreting this comment as a confirmation of the change.

Copy link
Member

Choose a reason for hiding this comment

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

Ah, I see! Thanks for clarifying.

@krisstern krisstern added the skip-changelog Should not be shown in the changelog label Feb 4, 2025
Copy link

@A1exKH A1exKH left a comment

Choose a reason for hiding this comment

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

@daniel-beck please, resolve comments in this PR.

@NotMyFault NotMyFault requested a review from a team February 6, 2025 20:25
@daniel-beck
Copy link
Member Author

@A1exKH Please clarify which comments need resolving.

@krisstern
Copy link
Member

krisstern commented Feb 7, 2025

There seem to be some issues need to be resolved in this PR. For example, there are 2 linting bugs reported at https://github.com/jenkinsci/jenkins/pull/10237/checks?check_run_id=36656792200.

@daniel-beck
Copy link
Member Author

daniel-beck commented Feb 7, 2025

There seem to be some issues need to be resolved in this PR. For example, there are 2 linting bugs reported at https://github.com/jenkinsci/jenkins/pull/10237/checks?check_run_id=36656792200.

Thanks, I missed that. Seems weird that IntelliJ is not picking up on these declarations and/or that we do not allow this to compensate for poor IDE behavior, but especially the latter seems like a topic for another time.

Copy link

@A1exKH A1exKH left a comment

Choose a reason for hiding this comment

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

@daniel-beck LGTM.

@krisstern
Copy link
Member

/label ready-for-merge

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

@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 Feb 8, 2025
@krisstern krisstern merged commit f5bbd10 into jenkinsci:master Feb 9, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback skip-changelog Should not be shown in the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants