Skip to content

Conversation

@radekkaluzik
Copy link

Reason for this fix: https://issues.redhat.com/browse/RHCLOUD-25108

There is a workaround in place: https://github.com/RedHatInsights/learning-resources/pull/12/files

There is a breaking change in the latest version of PatternFly (this is why I have added "@patternfly/react-core" to dependencies). SearchInput onChange method expects event as its first argument and then the actual string.

@netlify
Copy link

netlify bot commented Apr 12, 2023

Deploy Preview for quickstarts ready!

Name Link
🔨 Latest commit 34d2281
🔍 Latest deploy log https://app.netlify.com/sites/quickstarts/deploys/6463848f8c7c10000856d351
😎 Deploy Preview https://deploy-preview-237--quickstarts.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

package.json Outdated
"test:a11y": "patternfly-a11y --config patternfly-a11y.config"
},
"dependencies": {
"@patternfly/react-core": "^4.276.8"
Copy link
Member

Choose a reason for hiding this comment

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

This should not be added here - the dependency is defined in the module/package.json - we can increase the version required there, though.

@vikram-raj
Copy link

We are facing this issue in the Openshift console quick starts https://issues.redhat.com/browse/OCPBUGS-13359.

When will this get in?

@dgutride
Copy link
Member

hi - we requested changes on this PR - I haven't seen an update to this but we can certainly prioritize closing this and fixing this a different way.

@jessiehuff jessiehuff added this to the 2023.05 - 5/31 milestone May 15, 2023
Copy link
Contributor

@dlabaj dlabaj left a comment

Choose a reason for hiding this comment

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

looks good other then the package.json that should be updated is in module

@dlabaj dlabaj self-requested a review May 16, 2023 13:27
Copy link
Contributor

@dlabaj dlabaj left a comment

Choose a reason for hiding this comment

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

Updated the dependency @dgutride @radekkaluzik . Let me know if you see anything else.

Copy link
Contributor

@dlabaj dlabaj left a comment

Choose a reason for hiding this comment

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

Updated the dependency @dgutride @radekkaluzik . Let me know if you see anything else.

Copy link
Contributor

@dlabaj dlabaj left a comment

Choose a reason for hiding this comment

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

Updated the dependency @dgutride @radekkaluzik . Let me know if you see anything else.

Copy link
Contributor

@dlabaj dlabaj left a comment

Choose a reason for hiding this comment

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

Updated the dependency @dgutride @radekkaluzik . Let me know if you see anything else.

Copy link
Contributor

@dlabaj dlabaj left a comment

Choose a reason for hiding this comment

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

Updated the dependency @dgutride @radekkaluzik . Let me know if you see anything else.

}
export const QuickStartCatalogFilterSearchWrapper: React.FC<QuickStartCatalogFilterSearchWrapperProps> = ({
onSearchInputChange = () => {},
onSearchInputChange = (val?:string) => {},
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't you create a function in open shift to handle the val being passed in like this? It takes a parameter of any.

Copy link
Contributor

Choose a reason for hiding this comment

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

@radekkaluzik @dlabaj That's correct, this change isn't needed, it just changes the type of this implementation, but this is then ignored in the function itself.

If you want apply the right type you need to update the type definition of QuickStartCatalogFilterSearchWrapperProps above.

};

interface QuickStartCatalogFilterSearchWrapperProps {
onSearchInputChange: any;
Copy link
Contributor

Choose a reason for hiding this comment

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

You want change this here:

Suggested change
onSearchInputChange: any;
onSearchInputChange: (val: string);

}
export const QuickStartCatalogFilterSearchWrapper: React.FC<QuickStartCatalogFilterSearchWrapperProps> = ({
onSearchInputChange = () => {},
onSearchInputChange = (val?:string) => {},
Copy link
Contributor

Choose a reason for hiding this comment

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

@radekkaluzik @dlabaj That's correct, this change isn't needed, it just changes the type of this implementation, but this is then ignored in the function itself.

If you want apply the right type you need to update the type definition of QuickStartCatalogFilterSearchWrapperProps above.

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.

6 participants