[OC-4409] Browser-Based CSV Viewer for Reports - #18231
Conversation
|
Thanks for the pull request, @xitij2000! I've created OSPR-2424 to keep track of it in JIRA. JIRA is a place for product owners to prioritize feature reviews by the engineering development teams. Feel free to add as much of the following information to the ticket:
All technical communication about the code itself will still be done via the GitHub pull request interface. As a reminder, our process documentation is here. If you like, you can add yourself to the AUTHORS file for this repo, though that isn't required. Please see the CONTRIBUTING file for more information. |
32f0ee0 to
57e1b61
Compare
There was a problem hiding this comment.
It seems papaparse is able to download remote files by itself, maybe that simplify things here?
There was a problem hiding this comment.
Sure will do, that does seem cleaner.
|
@xitij2000 Let me know when this is ready for review. Thanks! |
33fd0ac to
6b5e77a
Compare
|
jenkins run bokchoy |
viadanna
left a comment
There was a problem hiding this comment.
Good to go! 👍
- I tested this: ran the unit tests, tested in the devstack
- I read through the code
- I checked for accessibility issues
-
Includes documentation
|
@mduboseedx This is ready for review now. |
|
@edx/educator-product This PR adds a CSV viewer from within the browser. Could you give this a review and confirm it looks ok from your perspective? |
|
This looks good from a product perspective. I'm updating the JIRA ticket to "Awaiting prioritization". |
|
Thanks @shamck ! |
4cd4b21 to
8b938e1
Compare
4cfc214 to
281fd5d
Compare
|
@mduboseedx Could you help get this PR reviewed? It's been waiting for some time :-) |
|
@xitij2000 Sorry for the delay here and I understand that it has been waiting for a long time. Unfortunately I've learned the Educator team that would normally review this code, will actually be unable to for another few weeks. I'll see if another team or person could fill in for a review in the meantime. How does this PR fit in with your priorities? |
|
@marcotuts Would love to get an update on this as well, it's been in limbo for a while. |
|
@xitij2000 I am reaching out to Marco as well, will update you soon. Sorry for delay. |
|
Accessibility-wise, some comments:
|
|
@wittjeff Thanks for looking into this! Since this PR was created AG-Grid has now reached v20, so I will give it a spin and see if that solves some of these issues, and otherwise will try to look into the workarounds you mentioned. |
|
Hello! We can provide some feedback on options for making this a plugin, or a separate micro front end, but for the time being I do not think as it currently stands this should be merged into edx-platform. I will connect with @nasthagiri for her guidance on this, and we can perhaps discuss soon in person #OpenedX #SanDiego for options that are reasonable in scope to get this improvement landed somehow. Thanks! |
|
@xitij2000 Even though your pull request wasn’t merged, please take a moment to answer a two question survey so we can improve your experience in the future. |
|
@marcotuts @nasthagiri AFAIK the UI integration points that we'd need to make this a plugin (on the reports page in the instructor dashboard) don't exist, or we would have done it that way. We're already over-budget on this project, so can't spend the time for a big refactor. If you can add the requisite plugin API / UI integration point, then we can make this a plugin, sure. |
|
After some discussion, it looks like I missed an earlier approval for this change from the edX standpoint before we had started shifting toward plugin contributions & the goal of a separate edX instructor product / front-ends outside of edx-platform. While we would still prefer this future, we don't have a base instructor-dashboard-front-end implementation to steer a contribution like this towards. While our future goals aren't changed, this is a long standing PR that we would like to now move through to engineering prioritization. I will work with edX teams to see how we can get this reviewed. Thanks everyone! |
|
Your PR has finished running tests. The following contexts failed:
|
|
@marcotuts Did you get a chance to discuss how to handle this PR? |
|
Apologies for the delay and missing this @xitij2000. This can move to engineering review next, I will connect with @ormsbee and others to determine next steps. FYI @natabene |
|
Thanks! |
|
@ormsbee @marcotuts The goal then will be to inject some simple JavaScript code that will cause all .csv links to open in this web-based CSV viewer. We have other use-cases for this as well which are currently less defined. I would love to get feedback on this and see how we can get that PR into the platform so we can close this PR and move it to an external plugin. |
|
@xitij2000 Even though your pull request wasn’t merged, please take a moment to answer a two question survey so we can improve your experience in the future. |
|
Closed in favour of plugin-based approach using API from https://github.com/edx/edx-platform/pull/21968 |
Adds a purely static CSV viewer to allow viewing CSV reports in the browser. Also adds a link to preview reports generated in the data download page of the instructor dashboard.
Project details:
This PR is part of the "Improved Problem Response Report" project, funded by Australian National University (ANU) and developed by OpenCraft
JIRA tickets: OSPR-2424 / OC-4409
Discussions: https://edxchange.opencraft.com/t/xblock-reporting-tool/191
Screenshots:

Live preview link:
https://pr18231.sandbox.opencraft.hosting/csv-viewer?csvUrl=https://data.cityofnewyork.us/api/views/25th-nujf/rows.csv?accessType=DOWNLOAD
Sandbox URL:
Merge deadline: "None"
Testing instructions:
OR.
Example url: https://pr18231.sandbox.opencraft.hosting/csv-viewer?csvUrl=https://data.cityofnewyork.us/api/views/25th-nujf/rows.csv?accessType=DOWNLOAD
Author notes and concerns:
To view reports stored on S3, SWIFT or some other remote storage, it will need to have CORS set up.
Reviewers