-
Notifications
You must be signed in to change notification settings - Fork 151
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(bulk-import): updated bulk import ui to show the correct import jobs count #2315
fix(bulk-import): updated bulk import ui to show the correct import jobs count #2315
Conversation
d396e2d
to
6fbb740
Compare
6fbb740
to
3d4bd53
Compare
3d4bd53
to
41107eb
Compare
41107eb
to
4857098
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@debsmita1 I just tested this PR, and can confirm both https://issues.redhat.com/browse/RHIDP-4067 and https://issues.redhat.com/browse/RHIDP-3868 are fixed.
However, I noticed what I think could be a regression: when trying to import new repos, the "Create pull request" button remains disabled regardless of the repos selected. See the screencast attached:
review-pr-2315-2024-10-09_11.07.04.mp4
Do you confirm this behavior on your end?
I can also confirm this issue does not occur on the |
354ca95
to
c73b5d9
Compare
Fixed it. PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@debsmita1 I just tested this PR, and can confirm both issues.redhat.com/browse/RHIDP-4067 and issues.redhat.com/browse/RHIDP-3868 are fixed.
However, I noticed what I think could be a regression: when trying to import new repos, the "Create pull request" button remains disabled regardless of the repos selected. See the screencast attached:
review-pr-2315-2024-10-09_11.07.04.mp4
Do you confirm this behavior on your end?Fixed it. PTAL
It works better now - thanks. LGTM, but I'll let frontend experts take a look as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small comments and questions:
plugins/bulk-import/src/components/AddRepositories/OrganizationTableRow.tsx
Outdated
Show resolved
Hide resolved
plugins/bulk-import/src/components/AddRepositories/RepositoryTableRow.tsx
Outdated
Show resolved
Hide resolved
plugins/bulk-import/src/components/Repositories/DeleteRepositoryDialog.tsx
Outdated
Show resolved
Hide resolved
plugins/bulk-import/src/components/Repositories/DeleteRepositoryDialog.tsx
Outdated
Show resolved
Hide resolved
plugins/bulk-import/src/components/Repositories/RepositoriesList.tsx
Outdated
Show resolved
Hide resolved
plugins/bulk-import/src/components/Repositories/RepositoriesList.tsx
Outdated
Show resolved
Hide resolved
facd635
to
b92f16c
Compare
🦋 Changeset detectedLatest commit: 5fd57b8 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
b92f16c
to
aa42ed2
Compare
aa42ed2
to
5fd57b8
Compare
Quality Gate failedFailed conditions |
<RepositoriesList /> | ||
</FormControl> | ||
</Formik> | ||
<QueryClientProvider client={queryClientRef.current as QueryClient}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as
always trigger me ;)
<QueryClientProvider client={queryClientRef.current as QueryClient}> | |
<QueryClientProvider client={queryClientRef.current!}> |
values?.repositories?.[data.id]?.catalogInfoYaml?.prTemplate | ||
?.pullRequestUrl || | ||
values?.repositories[data.id]?.repoUrl || | ||
values?.repositories?.[data.id]?.repoUrl || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anyway, the code generates a link that isn't clickable in some cases.
With the recommended check we can ensure that we don't create a button that doesn't open a valid link.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tiny nits
const classes = useStyles(); | ||
|
||
return ( | ||
<TableRow hover key={data.id}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit, but I guess the key here isn't needed.
<Link to={data?.repoUrl || ''}> | ||
{urlHelper(data?.repoUrl || '')} | ||
<OpenInNewIcon style={{ verticalAlign: 'sub', paddingTop: '7px' }} /> | ||
</Link> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned in other places. We should avoid rendering broken links.
<Link to={data?.organizationUrl || ''}> | ||
{urlHelper(data?.organizationUrl || '')} | ||
<OpenInNewIcon style={{ verticalAlign: 'sub', paddingTop: '7px' }} /> | ||
</Link> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned in other places. We should avoid rendering broken links.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update. Please take care of the left overs as part of your other bulk import PR.
/lgtm
/override SonarCloud Code Analysis |
@jerolimov: /override requires failed status contexts, check run or a prowjob name to operate on.
Only the following failed contexts/checkruns were expected:
If you are trying to override a checkrun that has a space in it, you must put a double quote on the context. 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 kubernetes-sigs/prow repository. |
/override "SonarCloud Code Analysis" |
@jerolimov: Overrode contexts on behalf of jerolimov: SonarCloud Code Analysis 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 kubernetes-sigs/prow repository. |
7a28963
into
janus-idp:main
…obs count (janus-idp#2315) [Bulk import]: fix added repositories count
Resolves:
Note: Used
@tanstack/react-query
for querying the import jobsScreenshots:
When the number of rows listed is less than the number of rows selected
(https://issues.redhat.com/browse/RHIDP-3868)