dieterich-lab / scimodom

GNU Affero General Public License v3.0
0 stars 0 forks source link

Search view data export #62

Closed eboileau closed 4 months ago

eboileau commented 6 months ago

Aims/objectives.

CSV export only exports the data that is in the "value" model itself. But what's the point of exporting ALL data with lazy loading? DB dumps should be available elsewhere (Download View).

If we want to do that, check here for suggestions (exportCSV with custom data)

/**
    * Exports the data to CSV format.
    * @param {DataTableExportCSVOptions} [options] - Export options.
    * @param {Object[]} [data] - Custom exportable data. This param can be used on lazy dataTable.
    */
exportCSV: (options?: DataTableExportCSVOptions, data?: any[]) => void;

A clear and concise description of todo items.

But maybe we could add e.g. :rowsPerPageOptions="[5, 10, 20, 50]" to the paginator?

eboileau commented 4 months ago

Search is for search, export is only to save a selection of records e.g. coordinate-specific, gene, etc. The export format is anyway not bedRMod. For downloading large amount of data in bedRMod, we will provide download functionality.