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

🐛 Fix insecure toggle regression #1831

Merged
merged 4 commits into from
Apr 10, 2024
Merged

Conversation

ibolton336
Copy link
Member

rszwajko and others added 2 commits April 9, 2024 09:13
Key points:
1. do not extend PF SelectOptionProps interface - this allows to add
   custom props to the interface and provides better control what prop
   are forwarded to SelectOption
2. remove key prop as it's a special prop used internally by React
3. use value prop according to PF documentation - effectively replace
   previously used key prop
4. add label prop - to be used as human friendly representation of the
   value
5. add groupLabel prop
6. add chipLabel prop - for cases where it differs from the label prop
   (main use case are tag items)

Signed-off-by: Radoslaw Szwajkowski <[email protected]>
Signed-off-by: Ian Bolton <[email protected]>
Copy link
Member

@sjd78 sjd78 left a comment

Choose a reason for hiding this comment

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

Classic typo catch! Nice one.

This PR seems like a decent interview question...tell me about:

() => onChange()
() => onChange
onChange
onChange()

@ibolton336 ibolton336 merged commit deb390b into konveyor:main Apr 10, 2024
7 checks passed
ibolton336 added a commit to ibolton336/tackle2-ui that referenced this pull request Apr 10, 2024
Resolves https://issues.redhat.com/browse/MTA-2426

---------

Signed-off-by: Radoslaw Szwajkowski <[email protected]>
Signed-off-by: Ian Bolton <[email protected]>
Co-authored-by: Radoslaw Szwajkowski <[email protected]>
sjd78 added a commit to sjd78/tackle2-ui that referenced this pull request Apr 11, 2024
On the review form, fix the `onChange` handler for the
following `NumberInput` fields:
  - criticality
  - priority

Note: This fix is a follow up to the fix in konveyor#1831.  A grep
across the codebase showed 2 more or the same problems.

Signed-off-by: Scott J Dickerson <[email protected]>
sjd78 added a commit to sjd78/tackle2-ui that referenced this pull request Apr 11, 2024
On the review form, fix the `onChange` handler for the
following `NumberInput` fields:
  - criticality
  - priority

Note: This fix is a follow up to the fix in konveyor#1831.  A grep
across the codebase showed 2 more or the same problems.

Signed-off-by: Scott J Dickerson <[email protected]>
sjd78 added a commit that referenced this pull request Apr 15, 2024
On the review form, fix the `onChange` handler for the following
`NumberInput` fields:
  - criticality
  - priority

Note: This fix is a follow up to the fix in #1831. A grep across the
codebase showed 2 more or the same problems.

Resolves: #1844

Signed-off-by: Scott J Dickerson <[email protected]>
Co-authored-by: Ian Bolton <[email protected]>
github-actions bot pushed a commit that referenced this pull request Apr 15, 2024
On the review form, fix the `onChange` handler for the following
`NumberInput` fields:
  - criticality
  - priority

Note: This fix is a follow up to the fix in #1831. A grep across the
codebase showed 2 more or the same problems.

Resolves: #1844

Signed-off-by: Scott J Dickerson <[email protected]>
Co-authored-by: Ian Bolton <[email protected]>
Signed-off-by: Cherry Picker <[email protected]>
sjd78 pushed a commit that referenced this pull request Apr 15, 2024
On the review form, fix the `onChange` handler for the following
`NumberInput` fields:
  - criticality
  - priority

Note: This fix is a follow up to the fix in #1831. A grep across the
codebase showed 2 more of the same problems.

Resolves: #1844
Backport-of: #1839

Signed-off-by: Scott J Dickerson <[email protected]>
Co-authored-by: Ian Bolton <[email protected]>
Signed-off-by: Cherry Picker <[email protected]>
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