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

Add export of course users #5411

Merged
merged 7 commits into from
Apr 4, 2024
Merged

Add export of course users #5411

merged 7 commits into from
Apr 4, 2024

Conversation

jorg-vr
Copy link
Contributor

@jorg-vr jorg-vr commented Mar 4, 2024

This pull request adds an export of all users in a course.
image

The csv is a different content type for the index api endpoint.
This means that all filters and sort features of the index page can also be applied.

The export now also includes the student progress in the course.
image

This export also replaces the old specific export labels csv, in the edit all labels flow.

Closes #3617

@jorg-vr jorg-vr added the feature New feature or request label Mar 4, 2024
@jorg-vr jorg-vr self-assigned this Mar 4, 2024
@jorg-vr jorg-vr marked this pull request as ready for review March 4, 2024 13:23
@jorg-vr jorg-vr requested a review from a team as a code owner March 4, 2024 13:23
@jorg-vr jorg-vr requested review from bmesuere and niknetniko and removed request for a team March 4, 2024 13:23
Copy link
Member

@bmesuere bmesuere left a comment

Choose a reason for hiding this comment

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

I agree with the export-related code changes and the fact that we make this more prominent, but I'm not convinced that the overflow menu of the search bar is the right place to put those options. They are still hidden and I would never check that menu.

Can we add figure out another way to place these actions? Maybe right-aligned buttons (but that might not be possible on smaller screens)?

format.js do
@course_memberships = @course_memberships.paginate(page: parse_pagination_param(params[:page]))
end
format.csv do
Copy link
Member

Choose a reason for hiding this comment

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

The x_sendfile setting isn't present here (and was in the old code). Is this something that isn't needed anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

"X-Sendfile is a special header option that tells the web server to ignore the content of the response and replace it by the file that is specified in the X-Sendfile header."

This is not relevant in this case, as the response is now the actual csv

@jorg-vr jorg-vr merged commit 0055cf1 into main Apr 4, 2024
13 checks passed
@jorg-vr jorg-vr deleted the feat/export-user-csv branch April 4, 2024 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve discoverability of student list export
3 participants