-
Notifications
You must be signed in to change notification settings - Fork 44
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
✨ Fetch export questionnaire and application static report with refactor. #1322
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #1322 +/- ##
==========================================
+ Coverage 42.38% 42.41% +0.02%
==========================================
Files 137 138 +1
Lines 4294 4315 +21
Branches 1010 1017 +7
==========================================
+ Hits 1820 1830 +10
- Misses 2462 2473 +11
Partials 12 12
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
...c/app/pages/applications/components/application-detail-drawer/components/download-button.tsx
Outdated
Show resolved
Hide resolved
.../src/app/pages/assessment-management/assessment-settings/ExportQuestionnaireDropdownItem.tsx
Outdated
Show resolved
Hide resolved
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.
+1 to Ian's feedback, LGTM otherwise.
Edit: Mea culpa, I reviewed without testing and didn't catch the below issues. Will review again.
...c/app/pages/applications/components/application-detail-drawer/components/download-button.tsx
Outdated
Show resolved
Hide resolved
@ibolton336, we're getting the "Error downloading report" as well on main branch when clicking on the YAML or Report links. So is that approach is solid enough ? I'm investigating... |
...c/app/pages/applications/components/application-detail-drawer/components/download-button.tsx
Outdated
Show resolved
Hide resolved
.../src/app/pages/assessment-management/assessment-settings/ExportQuestionnaireDropdownItem.tsx
Outdated
Show resolved
Hide resolved
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.
The change is looking nice and clean now. Only a single nit-pick, but not a blocker.
...c/app/pages/applications/components/application-detail-drawer/components/download-button.tsx
Outdated
Show resolved
Hide resolved
Looks like all of Ian's comments were addressed.
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.
I think one more step to get the button text (or react node) to render is still needed.
...c/app/pages/applications/components/application-detail-drawer/components/download-button.tsx
Outdated
Show resolved
Hide resolved
...c/app/pages/applications/components/application-detail-drawer/components/download-button.tsx
Outdated
Show resolved
Hide resolved
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.
LGTM
Signed-off-by: Gilles Dubreuil <gdubreui@redhat.com>
Signed-off-by: Gilles Dubreuil <gdubreui@redhat.com>
Signed-off-by: Gilles Dubreuil <gdubreui@redhat.com>
Signed-off-by: Gilles Dubreuil <gdubreui@redhat.com>
Signed-off-by: Gilles Dubreuil <gdubreui@redhat.com>
Signed-off-by: Gilles Dubreuil <gdubreui@redhat.com>
Signed-off-by: Gilles Dubreuil <gdubreui@redhat.com>
Signed-off-by: Gilles Dubreuil <gdubreui@redhat.com>
Signed-off-by: Gilles Dubreuil <gdubreui@redhat.com>
Looks like this broke the tar download functionality and the loading spinner in the app analysis detail drawer. |
Use
file-saver
package similarly as the download approach for the application static report.Refactor the application static report download hook :
useFetchStaticReport
(formeruseDownloadStaticReport
) withinqueries/applications.ts
because it's tapping into applications ressource.Resolves #1262