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

RSE-1002: Fix: Slowness clicking the job name (migrate job scm status badge and scm action buttons to vue) #8877

Merged
merged 6 commits into from Feb 22, 2024

Conversation

L2JE
Copy link
Contributor

@L2JE L2JE commented Feb 2, 2024

Ticket: https://pagerduty.atlassian.net/browse/RSE-1002

QA FW pipe: https://app.circleci.com/pipelines/github/rundeckpro/rundeck-tester/7718/workflows/539e3b77-e6cf-4df5-981a-af39c4198700

Problem:
When having scm enabled and a user clicks on job name in the jobs page the page takes considerably longer than in 4.3.1 because of the controller loading scm data synchronously before rendering the job page.

The scm data is used for the import/export status badges (first image) and the Action Buttons (second image):

image
image

Expected Outcome:
Scm plugin data shouldn’t affect the time to render the job page on the browser

Proposed Solution:

Load scm data asynchronously by:

  1. Removing Scm processing from ScheduledExecutionController.show() endpoint which is accessed when clicking the job name.

  2. Load the status badge asynchronously, inserting a vue socket in the _jobHead.gsp page and reusing the JobScmStatus vue component.

  3. For the Action Buttons, add a vue socket to the _jobActionButtonMenuContent.gsp page reusing the JobScmActions vue component implementation.

@L2JE L2JE added this to the 5.2.0 milestone Feb 2, 2024
@L2JE L2JE changed the title Rse794 click jobname w scm slowness RSE-1002: Fix: Slowness clicking the job name (migrate job scm status badge and scm action buttons to vue) Feb 2, 2024
@L2JE L2JE force-pushed the rse794-click-jobname-w-scm-slowness branch from 8c971b8 to 8c7de68 Compare February 2, 2024 19:56
@L2JE L2JE force-pushed the rse794-click-jobname-w-scm-slowness branch from f9dec09 to 39be2be Compare February 21, 2024 21:57
… sockets

fixed unnecessary updates on JobScmStatus component caused by JobBrowserStore.loadJobMeta

Fix job scm actions not showing in job list page

use runClusterFix=true for getting scm status from scmMetadataComponent so it retrieves the same status as ScheduledExecutionService.scmActionMenuOptions

Removed scm authorizing mocks from test for ScheduledExecutionController.show

add a wait for JobCreatePage.adhocRemoteStringField to be clickable using locator to avoid error finding element
@L2JE L2JE force-pushed the rse794-click-jobname-w-scm-slowness branch from 39be2be to ee79719 Compare February 22, 2024 12:12
Copy link
Contributor

@DarwisNarvaezDev DarwisNarvaezDev left a comment

Choose a reason for hiding this comment

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

LGTM

@L2JE L2JE merged commit f842635 into main Feb 22, 2024
3 checks passed
@L2JE L2JE deleted the rse794-click-jobname-w-scm-slowness branch February 22, 2024 19:56
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.

None yet

2 participants