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

feat(bulk-import): use react query to fetch repositories #23

Merged

Conversation

debsmita1
Copy link
Member

@debsmita1 debsmita1 commented Nov 5, 2024

Hey, I just made a Pull Request!

Resolves:

https://issues.redhat.com/browse/RHIDP-4035

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or Updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)

Copy link
Member

@christoph-jerolimov christoph-jerolimov left a comment

Choose a reason for hiding this comment

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

It works great. From my side we can merge it this way already.

Some small feedback anyway:

});
setOpenDrawer(false);
if (!mutationCreate.isError) {
Copy link
Member

Choose a reason for hiding this comment

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

I would expect that you need await mutate to see the error here. Also then I'm unsure if this error is automatically updated before the component is re-rendered. Did you tested the error case?

Copy link
Member Author

Choose a reason for hiding this comment

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

The error scenario that I tested, the mutationCreate.isError returns the boolean value without the await

@debsmita1 debsmita1 force-pushed the bulk-import-reactQuery branch 2 times, most recently from 5c0f97b to 54e98c1 Compare November 7, 2024 18:36
@debsmita1 debsmita1 force-pushed the bulk-import-reactQuery branch from 54e98c1 to bfffab3 Compare November 7, 2024 18:56
@debsmita1 debsmita1 force-pushed the bulk-import-reactQuery branch from bfffab3 to bc9d9cf Compare November 7, 2024 19:04
Copy link
Member

@christoph-jerolimov christoph-jerolimov left a comment

Choose a reason for hiding this comment

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

Thanks for all the effort that goes into this PR!!

Lgtm!

/lgtm
/approve

@openshift-ci openshift-ci bot added the lgtm label Nov 7, 2024
@christoph-jerolimov christoph-jerolimov removed their assignment Nov 7, 2024
@christoph-jerolimov christoph-jerolimov merged commit ab15e37 into redhat-developer:main Nov 7, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants