New report router and user reporting refactoring (#25713)
* Added materialized view migration * Renamed mat view * Added channel membership mat view and indexes * Added channel membership mat view and indexes * Added new index * WIP * Simplifying user reporting code * Created app and API layer for cahnnel reporting, reporting refactoring in general * New router * Remobved channel reporting meanwhile * Upodated autogenerated stuff * Lint fix * Fixed typo * api vet * i18n fix * Fixed API vetting and removed channel reporting constants * yaml * removed app pagination tests
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
32880efa25
Коммит
97a23d791e
@@ -477,6 +477,10 @@ export default class Client4 {
|
||||
return `${this.getBaseRoute()}/drafts`;
|
||||
}
|
||||
|
||||
getReportsRoute(): string {
|
||||
return `${this.getBaseRoute()}/reports`;
|
||||
}
|
||||
|
||||
getCSRFFromCookie() {
|
||||
if (typeof document !== 'undefined' && typeof document.cookie !== 'undefined') {
|
||||
const cookies = document.cookie.split(';');
|
||||
@@ -986,7 +990,7 @@ export default class Client4 {
|
||||
getUsersForReporting = (filter: UserReportOptions) => {
|
||||
const queryString = buildQueryString(filter);
|
||||
return this.doFetch<UserReport[]>(
|
||||
`${this.getUsersRoute()}/report${queryString}`,
|
||||
`${this.getReportsRoute()}/users${queryString}`,
|
||||
{method: 'get'},
|
||||
);
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user