Skip to content

Fixes #39522 - Fix failing new lint rules - #1043

Open
MariaAga wants to merge 3 commits into
theforeman:masterfrom
MariaAga:fix-lint-magic-numbers
Open

Fixes #39522 - Fix failing new lint rules#1043
MariaAga wants to merge 3 commits into
theforeman:masterfrom
MariaAga:fix-lint-magic-numbers

Conversation

@MariaAga

@MariaAga MariaAga commented Jul 13, 2026

Copy link
Copy Markdown
Member

@MariaAga
MariaAga force-pushed the fix-lint-magic-numbers branch from bbacc8e to 75fa1f1 Compare July 13, 2026 12:11
@MariaAga MariaAga changed the title Fixes #39517 - Fix failing new lint rules Fixes #39522 - Fix failing new lint rules Jul 14, 2026
@MariaAga
MariaAga force-pushed the fix-lint-magic-numbers branch from 75fa1f1 to 8f6426b Compare July 14, 2026 13:44
@MariaAga
MariaAga force-pushed the fix-lint-magic-numbers branch from 8f6426b to f96478a Compare July 21, 2026 14:45
@MariaAga
MariaAga marked this pull request as ready for review July 21, 2026 14:45
Comment on lines -44 to +51
exitDelay={copied ? 1500 : 600}
exitDelay={
copied
? CLIPBOARD_COPIED_EXIT_DELAY_MS
: CLIPBOARD_DEFAULT_EXIT_DELAY_MS
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Makes me wonder why we have this when foreman itself does not

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

we dont have ClipboardCopyButton in foreman itself. I dont remember why we use here this specific component, but in PF ClipboardCopy does add exitDelay to ClipboardCopyButton

Comment thread webpack/JobInvocationDetail/JobInvocationConstants.js Outdated
Comment thread webpack/JobWizard/JobWizardConstants.js Outdated
Comment on lines +85 to +87
export const SECONDS_PER_MINUTE = 60;
export const MINUTES_IN_HOUR = 60;
export const DAYS_IN_WEEK = 7;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I was hoping more of those would be defined in core and reused, especially considering those will be needed in other plugins as well

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good idea, thanks theforeman/foreman#11120

@MariaAga
MariaAga force-pushed the fix-lint-magic-numbers branch from 8ebaff5 to e54863d Compare July 30, 2026 12:21
@MariaAga

Copy link
Copy Markdown
Member Author

depends on theforeman/foreman#11120 now

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.

3 participants