Skip to content

[JENKINS-75329] replace findAncestor with plain javascript#168

Merged
daniel-beck merged 1 commit intojenkinsci:masterfrom
mawinter69:JENKINS-75329
Mar 15, 2025
Merged

[JENKINS-75329] replace findAncestor with plain javascript#168
daniel-beck merged 1 commit intojenkinsci:masterfrom
mawinter69:JENKINS-75329

Conversation

@mawinter69
Copy link
Contributor

@mawinter69 mawinter69 commented Feb 25, 2025

JENKINS-75329

findAncestor is marked deprecated in Jenkins core and logs a warning. As this method is used quite a lot this leads to many warnings being logged which seems to slow down the page significantly when many users/groups are present
On a page with 42 users/groups I get over 8200 calls to findAncestor

Testing done

Interactive testing showed no more warnings in the browser console

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

findAncestor is marked deprecated in Jenkins core and logs a warning.
As this method is used quite a lot this leads to many warnings being
logged which seems to slow down the the page significantly when many
users/groups are present
@mawinter69 mawinter69 requested a review from a team as a code owner February 25, 2025 09:08
@daniel-beck daniel-beck merged commit eeb4ce5 into jenkinsci:master Mar 15, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants