ccodwg / Covid19CanadaArchive-data-explorer

Data explorer for the Canadian COVID-19 Data Archive
MIT License
0 stars 0 forks source link

Add ability to filter out duplicate files #10

Closed jeanpaulrsoucy closed 4 months ago

jeanpaulrsoucy commented 2 years ago

This could be achieved by either turning the "Duplicate file?" column in the DataTable to a dropdown or by making a new API query where duplicate files are filtered out of the results. The first option is simpler, except it may be useful to have a global toggle that would persistently filter out duplicate files from any query.

jeanpaulrsoucy commented 1 year ago

Looking into a button filter for this, but it's not clear that it's possible to filter on a column that is not otherwise searchable (attempting to returns a blank table).

This was brought up in an old DataTables thread, but it's not clear if a solution was ever implemented. The recommended work-around was implementing a custom search function.

jeanpaulrsoucy commented 1 year ago

This should be considered higher priority after #17. This is because links to duplicate files now point toward the original version of that file, it could make manual downloading confusing. The "download" attribute could be used to change the name of the file such that downloaded file names match the expected file names; however, this attribute is not honoured for cross-origin requests.