Skip to content

Conversation

@Mylanos
Copy link
Contributor

@Mylanos Mylanos commented Nov 1, 2024

before:

Screen.Recording.2024-11-07.at.16.23.45.mov

after:

Screen.Recording.2024-11-12.at.11.13.26.mov

@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Nov 1, 2024

@Mylanos: This pull request references CONSOLE-4075 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.18.0" version, but no target version was set.

In response to this:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Nov 1, 2024
@openshift-ci openshift-ci bot requested review from TheRealJon and jhadvig November 1, 2024 17:21
@openshift-ci openshift-ci bot added component/core Related to console core functionality component/shared Related to console-shared labels Nov 1, 2024
@Mylanos
Copy link
Contributor Author

Mylanos commented Nov 1, 2024

TODO: Been looking into the ways we use crypto libraries and saw that there is one single instance where we use crypto-browserify package to generate new hashes. We should probably replace it with Crypto as back then this library was most likely not present so we opted for crypto-browserify.

Copy link
Member

@jhadvig jhadvig left a comment

Choose a reason for hiding this comment

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

One small comment. Otherwise looks good to go 👍

Copy link
Member

Choose a reason for hiding this comment

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

Lets add a comment that this implementation is a direct replacement for crypto.randomUUID(), and it will generate a cryptographically secure, UUID v4-compliant identifier, for environments where crypto.randomUUID() may not be available.

@Mylanos
Copy link
Contributor Author

Mylanos commented Nov 7, 2024

/retest

@Mylanos
Copy link
Contributor Author

Mylanos commented Nov 7, 2024

Following up on our discussions, I have removed the fallback/our own UUID generator function as the window.randomUUID() works fine and it should be available on all of the browsers we currently support.

@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Nov 7, 2024

@Mylanos: This pull request references CONSOLE-4075 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.18.0" version, but no target version was set.

In response to this:

after changes:

Screen.Recording.2024-11-07.at.16.23.45.mov

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

Copy link
Member

@logonoff logonoff Nov 7, 2024

Choose a reason for hiding this comment

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

nit: if this results in an eslint warning/error I think there should be a // eslint-disable-next-line @typescript-eslint/ban-ts-comment and perhaps a few words explaining why it's needed in the comment

Copy link
Contributor Author

@Mylanos Mylanos Nov 8, 2024

Choose a reason for hiding this comment

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

Seems like that the // eslint-disable-next-line @typescript-eslint/ban-ts-comment won't suppress the generated TS error on its own, so we should probably keep the @ts-ignore / @ts-ignore-next-line.

Will add the comment there, but to leave some answer here as well - briefly the cause is that our current typescript version does not have this function defined yet. But all the browsers that we currently support should have it - https://developer.mozilla.org/en-US/docs/Web/API/Crypto/randomUUID#browser_compatibility. But randomUUID should be available starting version 4.6 ( added in this PR ), so once we upgrade our TS this comment can get removed.

Copy link
Member

@logonoff logonoff left a comment

Choose a reason for hiding this comment

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

works locally, just have some minor nits

@Mylanos
Copy link
Contributor Author

Mylanos commented Nov 8, 2024

After the update that incorporated PF components.

Screen.Recording.2024-11-08.at.11.42.48.mov

Copy link
Member

@logonoff logonoff left a comment

Choose a reason for hiding this comment

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

frontend tests are failing, seems like you need to run yarn i18n and commit

@openshift-ci openshift-ci bot added the kind/i18n Indicates issue or PR relates to internationalization or has content that needs to be translated label Nov 10, 2024
@Mylanos
Copy link
Contributor Author

Mylanos commented Nov 10, 2024

/retest

2 similar comments
@logonoff
Copy link
Member

/retest

@Mylanos
Copy link
Contributor Author

Mylanos commented Nov 11, 2024

/retest

@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Nov 12, 2024

@Mylanos: This pull request references CONSOLE-4075 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.18.0" version, but no target version was set.

In response to this:

before:

Screen.Recording.2024-11-07.at.16.23.45.mov

after:

Screen.Recording.2024-11-12.at.11.13.26.mov

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@Mylanos
Copy link
Contributor Author

Mylanos commented Nov 12, 2024

/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 12, 2024
@Mylanos
Copy link
Contributor Author

Mylanos commented Nov 12, 2024

@logonoff So I discussed with Jon about the extent of the refactors in these components, and he said that the scope of the story was just a logical refactor ( class component to functional ) and the PatternFly updates were out of scope just because these were already big stories.

We decided to keep this stories just as a logical refactor and I have created a separate story where we will update all of the components affected in the secrets form tech debt epic. This will make it easier to consolidate the styling between all of the forms and not affect other PRs that are already in review.

So I'm holding this PR at this moment I will stash the current changes of my PR (that included the PF components update, that will be used later on in the new story) and roll-back to the commit where I have not used the PF components yet.

@Mylanos Mylanos force-pushed the CONSOLE-4075-Address-tech-debt-in-WebHookSecretForm-component branch from c3e086e to 8f286d4 Compare November 13, 2024 14:42
@logonoff
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 13, 2024
@logonoff
Copy link
Member

Adding labels as this is debt
/label px-approved
/label docs-approved

@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Nov 19, 2024
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 19, 2024
Copy link
Member

@jhadvig jhadvig left a comment

Choose a reason for hiding this comment

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

@logonoff thank you for the review 👍

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 21, 2024
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 21, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jhadvig, logonoff, Mylanos

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD d878879 and 2 for PR HEAD e2f3e8b in total

14 similar comments
@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD d878879 and 2 for PR HEAD e2f3e8b in total

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD d878879 and 2 for PR HEAD e2f3e8b in total

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD d878879 and 2 for PR HEAD e2f3e8b in total

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD d878879 and 2 for PR HEAD e2f3e8b in total

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD d878879 and 2 for PR HEAD e2f3e8b in total

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD d878879 and 2 for PR HEAD e2f3e8b in total

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD d878879 and 2 for PR HEAD e2f3e8b in total

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD d878879 and 2 for PR HEAD e2f3e8b in total

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD d878879 and 2 for PR HEAD e2f3e8b in total

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD d878879 and 2 for PR HEAD e2f3e8b in total

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD d878879 and 2 for PR HEAD e2f3e8b in total

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD d878879 and 2 for PR HEAD e2f3e8b in total

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD d878879 and 2 for PR HEAD e2f3e8b in total

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD d878879 and 2 for PR HEAD e2f3e8b in total

@Mylanos
Copy link
Contributor Author

Mylanos commented Nov 28, 2024

/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 28, 2024
@Mylanos
Copy link
Contributor Author

Mylanos commented Nov 29, 2024

/unhold

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 29, 2024
@Mylanos
Copy link
Contributor Author

Mylanos commented Nov 29, 2024

/retest

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 29, 2024

@Mylanos: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@openshift-merge-bot openshift-merge-bot bot merged commit 080f0b4 into openshift:master Nov 29, 2024
7 checks passed
@Mylanos Mylanos deleted the CONSOLE-4075-Address-tech-debt-in-WebHookSecretForm-component branch March 31, 2025 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. component/core Related to console core functionality component/shared Related to console-shared docs-approved Signifies that Docs has signed off on this PR jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. kind/i18n Indicates issue or PR relates to internationalization or has content that needs to be translated lgtm Indicates that a PR is ready to be merged. px-approved Signifies that Product Support has signed off on this PR qe-approved Signifies that QE has signed off on this PR tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants