MM 60222 - apply filter to export csv (#28212)

* MM-60222_apply filter to export csv

* get the report exporting with the filters ready

* add unit tests

* cover one more file with some tests

* style the confirm modal note

* add translations

* remove unnecessary print line

* disable export button if there is no data to export

* fix linter issues

* fix linter errors

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Pablo Vélez
2024-10-02 12:23:39 +02:00
коммит произвёл GitHub
родитель 5098669cfb
Коммит 1690e48db6
13 изменённых файлов: 370 добавлений и 39 удалений

Просмотреть файл

@@ -1025,8 +1025,8 @@ export default class Client4 {
);
};
startUsersBatchExport = (dateRange: string) => {
const queryString = buildQueryString({date_range: dateRange});
startUsersBatchExport = (filter: UserReportFilter) => {
const queryString = buildQueryString(filter);
return this.doFetch<StatusOK>(
`${this.getReportsRoute()}/users/export${queryString}`,
{method: 'post'},