mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-22 01:46:58 +01:00
rename url filter to url_path
This commit is contained in:
parent
9cb6046844
commit
92f32ce7fa
@ -45,7 +45,7 @@ export const SESSION_COLUMNS = [
|
||||
];
|
||||
|
||||
export const FILTER_COLUMNS = {
|
||||
url: 'url_path',
|
||||
url_path: 'url_path',
|
||||
referrer: 'referrer_domain',
|
||||
title: 'page_title',
|
||||
query: 'url_query',
|
||||
|
@ -189,7 +189,7 @@ export interface QueryFilters {
|
||||
timezone?: string;
|
||||
unit?: string;
|
||||
eventType?: number;
|
||||
url?: string;
|
||||
url_path?: string;
|
||||
referrer?: string;
|
||||
title?: string;
|
||||
query?: string;
|
||||
|
@ -14,7 +14,7 @@ export interface WebsiteEventsRequestQuery {
|
||||
endAt: string;
|
||||
unit?: string;
|
||||
timezone?: string;
|
||||
url: string;
|
||||
url_path: string;
|
||||
}
|
||||
|
||||
const schema = {
|
||||
@ -24,7 +24,7 @@ const schema = {
|
||||
endAt: yup.number().integer().moreThan(yup.ref('startAt')).required(),
|
||||
unit: UnitTypeTest,
|
||||
timezone: TimezoneTest,
|
||||
url: yup.string(),
|
||||
url_path: yup.string(),
|
||||
}),
|
||||
};
|
||||
|
||||
@ -36,7 +36,7 @@ export default async (
|
||||
await useAuth(req, res);
|
||||
await useValidate(schema, req, res);
|
||||
|
||||
const { id: websiteId, timezone, url } = req.query;
|
||||
const { id: websiteId, timezone, url_path } = req.query;
|
||||
const { startDate, endDate, unit } = await parseDateRangeQuery(req);
|
||||
|
||||
if (req.method === 'GET') {
|
||||
@ -49,7 +49,7 @@ export default async (
|
||||
endDate,
|
||||
timezone,
|
||||
unit,
|
||||
url,
|
||||
url_path,
|
||||
});
|
||||
|
||||
return ok(res, events);
|
||||
|
@ -13,7 +13,7 @@ export interface WebsiteMetricsRequestQuery {
|
||||
type: string;
|
||||
startAt: number;
|
||||
endAt: number;
|
||||
url?: string;
|
||||
url_path?: string;
|
||||
referrer?: string;
|
||||
title?: string;
|
||||
query?: string;
|
||||
@ -33,7 +33,7 @@ const schema = {
|
||||
type: yup.string().required(),
|
||||
startAt: yup.number().required(),
|
||||
endAt: yup.number().required(),
|
||||
url: yup.string(),
|
||||
url_path: yup.string(),
|
||||
referrer: yup.string(),
|
||||
title: yup.string(),
|
||||
query: yup.string(),
|
||||
@ -59,7 +59,7 @@ export default async (
|
||||
const {
|
||||
id: websiteId,
|
||||
type,
|
||||
url,
|
||||
url_path,
|
||||
referrer,
|
||||
title,
|
||||
query,
|
||||
@ -83,7 +83,7 @@ export default async (
|
||||
const filters = {
|
||||
startDate,
|
||||
endDate,
|
||||
url,
|
||||
url_path,
|
||||
referrer,
|
||||
title,
|
||||
query,
|
||||
|
@ -12,7 +12,7 @@ export interface WebsitePageviewRequestQuery {
|
||||
endAt: number;
|
||||
unit?: string;
|
||||
timezone?: string;
|
||||
url?: string;
|
||||
url_path?: string;
|
||||
referrer?: string;
|
||||
title?: string;
|
||||
os?: string;
|
||||
@ -32,7 +32,7 @@ const schema = {
|
||||
endAt: yup.number().required(),
|
||||
unit: UnitTypeTest,
|
||||
timezone: TimezoneTest,
|
||||
url: yup.string(),
|
||||
url_path: yup.string(),
|
||||
referrer: yup.string(),
|
||||
title: yup.string(),
|
||||
os: yup.string(),
|
||||
@ -55,7 +55,7 @@ export default async (
|
||||
const {
|
||||
id: websiteId,
|
||||
timezone,
|
||||
url,
|
||||
url_path,
|
||||
referrer,
|
||||
title,
|
||||
os,
|
||||
@ -78,7 +78,7 @@ export default async (
|
||||
endDate,
|
||||
timezone,
|
||||
unit,
|
||||
url,
|
||||
url_path,
|
||||
referrer,
|
||||
title,
|
||||
os,
|
||||
|
@ -11,7 +11,7 @@ export interface WebsiteStatsRequestQuery {
|
||||
id: string;
|
||||
startAt: number;
|
||||
endAt: number;
|
||||
url?: string;
|
||||
url_path?: string;
|
||||
referrer?: string;
|
||||
title?: string;
|
||||
query?: string;
|
||||
@ -30,7 +30,7 @@ const schema = {
|
||||
id: yup.string().uuid().required(),
|
||||
startAt: yup.number().required(),
|
||||
endAt: yup.number().required(),
|
||||
url: yup.string(),
|
||||
url_path: yup.string(),
|
||||
referrer: yup.string(),
|
||||
title: yup.string(),
|
||||
query: yup.string(),
|
||||
@ -54,7 +54,7 @@ export default async (
|
||||
|
||||
const {
|
||||
id: websiteId,
|
||||
url,
|
||||
url_path,
|
||||
referrer,
|
||||
title,
|
||||
query,
|
||||
@ -78,7 +78,7 @@ export default async (
|
||||
const prevEndDate = subMinutes(endDate, diff);
|
||||
|
||||
const filters = {
|
||||
url,
|
||||
url_path,
|
||||
referrer,
|
||||
title,
|
||||
query,
|
||||
|
Loading…
Reference in New Issue
Block a user