-
Notifications
You must be signed in to change notification settings - Fork 33
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
Adding in remove capability for group members + csv download #1367
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1367 +/- ##
==========================================
- Coverage 85.72% 85.53% -0.19%
==========================================
Files 609 611 +2
Lines 13363 13423 +60
Branches 2812 2812
==========================================
+ Hits 11455 11481 +26
- Misses 1838 1872 +34
Partials 70 70 ☔ View full report in Codecov by Sentry. |
return `${year}-${month}-${day}-group-detail-report.csv`; | ||
}; | ||
|
||
const createCsvData = (jsonData) => jsonToCsv(jsonData.map(row => ({ |
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 issue with generating the csv file like this is that it can only generate a file with the current page of group member results.
If you want to take the client side approach, you can do it (prior art here) but you'll need to do another fetch of the data with page_size
set to the total count of the filtered results.
Because I'm going on Christmas break, this isn't a fully finished PR. It doesn't contain tests, nor does it have the filter functionality needed in the CSV download when a user searches a string or filters on something else.
For all changes
Only if submitting a visual change