mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-22 18:00:17 +01:00
Bump query limit to 500.
This commit is contained in:
parent
bbf85cb110
commit
1955166bdf
@ -9,7 +9,6 @@ import {
|
|||||||
Dropdown,
|
Dropdown,
|
||||||
Item,
|
Item,
|
||||||
Flexbox,
|
Flexbox,
|
||||||
useToasts,
|
|
||||||
} from 'react-basics';
|
} from 'react-basics';
|
||||||
import { useApi, useLogin, useMessages, useTeams } from 'components/hooks';
|
import { useApi, useLogin, useMessages, useTeams } from 'components/hooks';
|
||||||
import { WebsiteContext } from 'app/(main)/websites/[websiteId]/WebsiteProvider';
|
import { WebsiteContext } from 'app/(main)/websites/[websiteId]/WebsiteProvider';
|
||||||
@ -34,7 +33,6 @@ export function WebsiteTransferForm({
|
|||||||
});
|
});
|
||||||
const { result, query } = useTeams(user.id);
|
const { result, query } = useTeams(user.id);
|
||||||
const isTeamWebsite = !!website?.teamId;
|
const isTeamWebsite = !!website?.teamId;
|
||||||
const { showToast } = useToasts();
|
|
||||||
|
|
||||||
const handleSubmit = async () => {
|
const handleSubmit = async () => {
|
||||||
mutate(
|
mutate(
|
||||||
@ -44,7 +42,6 @@ export function WebsiteTransferForm({
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
onSuccess: async () => {
|
onSuccess: async () => {
|
||||||
showToast({ message: formatMessage(messages.saved), variant: 'success' });
|
|
||||||
onSave?.();
|
onSave?.();
|
||||||
onClose?.();
|
onClose?.();
|
||||||
},
|
},
|
||||||
|
@ -53,7 +53,7 @@ async function relationalQuery(websiteId: string, filters: QueryFilters) {
|
|||||||
and event_data.created_at between {{startDate}} and {{endDate}}
|
and event_data.created_at between {{startDate}} and {{endDate}}
|
||||||
group by website_event.event_name, event_data.event_key, event_data.data_type
|
group by website_event.event_name, event_data.event_key, event_data.data_type
|
||||||
order by 1 asc, 2 asc
|
order by 1 asc, 2 asc
|
||||||
limit 100
|
limit 500
|
||||||
`,
|
`,
|
||||||
params,
|
params,
|
||||||
);
|
);
|
||||||
@ -82,7 +82,7 @@ async function clickhouseQuery(
|
|||||||
and event_name = {event:String}
|
and event_name = {event:String}
|
||||||
group by event_key, data_type, string_value, event_name
|
group by event_key, data_type, string_value, event_name
|
||||||
order by 1 asc, 2 asc, 3 asc, 4 desc
|
order by 1 asc, 2 asc, 3 asc, 4 desc
|
||||||
limit 100
|
limit 500
|
||||||
`,
|
`,
|
||||||
params,
|
params,
|
||||||
).then(a => {
|
).then(a => {
|
||||||
@ -110,7 +110,7 @@ async function clickhouseQuery(
|
|||||||
and created_at between {startDate:DateTime64} and {endDate:DateTime64}
|
and created_at between {startDate:DateTime64} and {endDate:DateTime64}
|
||||||
group by event_key, data_type, event_name
|
group by event_key, data_type, event_name
|
||||||
order by 1 asc, 2 asc
|
order by 1 asc, 2 asc
|
||||||
limit 100
|
limit 500
|
||||||
`,
|
`,
|
||||||
params,
|
params,
|
||||||
).then(a => {
|
).then(a => {
|
||||||
|
@ -31,7 +31,7 @@ async function relationalQuery(websiteId: string, filters: QueryFilters & { fiel
|
|||||||
${filterQuery}
|
${filterQuery}
|
||||||
group by event_key, data_type, string_value
|
group by event_key, data_type, string_value
|
||||||
order by 3 desc, 2 desc, 1 asc
|
order by 3 desc, 2 desc, 1 asc
|
||||||
limit 100
|
limit 500
|
||||||
`,
|
`,
|
||||||
params,
|
params,
|
||||||
);
|
);
|
||||||
@ -59,7 +59,7 @@ async function clickhouseQuery(
|
|||||||
${filterQuery}
|
${filterQuery}
|
||||||
group by event_key, data_type, string_value
|
group by event_key, data_type, string_value
|
||||||
order by 3 desc, 2 desc, 1 asc
|
order by 3 desc, 2 desc, 1 asc
|
||||||
limit 100
|
limit 500
|
||||||
`,
|
`,
|
||||||
params,
|
params,
|
||||||
).then(a => {
|
).then(a => {
|
||||||
|
@ -22,7 +22,7 @@ async function relationalQuery(websiteId: string, column: string, startDate: Dat
|
|||||||
on session.session_id = website_event.session_id
|
on session.session_id = website_event.session_id
|
||||||
where website_event.website_id = {{websiteId::uuid}}
|
where website_event.website_id = {{websiteId::uuid}}
|
||||||
and website_event.created_at between {{startDate}} and {{endDate}}
|
and website_event.created_at between {{startDate}} and {{endDate}}
|
||||||
limit 100
|
limit 500
|
||||||
`,
|
`,
|
||||||
{
|
{
|
||||||
websiteId,
|
websiteId,
|
||||||
@ -41,7 +41,7 @@ async function clickhouseQuery(websiteId: string, column: string, startDate: Dat
|
|||||||
from website_event
|
from website_event
|
||||||
where website_id = {websiteId:UUID}
|
where website_id = {websiteId:UUID}
|
||||||
and created_at between {startDate:DateTime64} and {endDate:DateTime64}
|
and created_at between {startDate:DateTime64} and {endDate:DateTime64}
|
||||||
limit 100
|
limit 500
|
||||||
`,
|
`,
|
||||||
{
|
{
|
||||||
websiteId,
|
websiteId,
|
||||||
|
@ -17,7 +17,7 @@ async function relationalQuery(
|
|||||||
websiteId: string,
|
websiteId: string,
|
||||||
column: string,
|
column: string,
|
||||||
filters: QueryFilters,
|
filters: QueryFilters,
|
||||||
limit: number = 100,
|
limit: number = 500,
|
||||||
) {
|
) {
|
||||||
const { rawQuery, parseFilters } = prisma;
|
const { rawQuery, parseFilters } = prisma;
|
||||||
const { filterQuery, joinSession, params } = await parseFilters(
|
const { filterQuery, joinSession, params } = await parseFilters(
|
||||||
@ -57,7 +57,7 @@ async function clickhouseQuery(
|
|||||||
websiteId: string,
|
websiteId: string,
|
||||||
column: string,
|
column: string,
|
||||||
filters: QueryFilters,
|
filters: QueryFilters,
|
||||||
limit: number = 100,
|
limit: number = 500,
|
||||||
): Promise<{ x: string; y: number }[]> {
|
): Promise<{ x: string; y: number }[]> {
|
||||||
const { rawQuery, parseFilters } = clickhouse;
|
const { rawQuery, parseFilters } = clickhouse;
|
||||||
const { filterQuery, params } = await parseFilters(websiteId, {
|
const { filterQuery, params } = await parseFilters(websiteId, {
|
||||||
|
@ -17,7 +17,7 @@ async function relationalQuery(
|
|||||||
websiteId: string,
|
websiteId: string,
|
||||||
column: string,
|
column: string,
|
||||||
filters: QueryFilters,
|
filters: QueryFilters,
|
||||||
limit: number = 100,
|
limit: number = 500,
|
||||||
) {
|
) {
|
||||||
const { parseFilters, rawQuery } = prisma;
|
const { parseFilters, rawQuery } = prisma;
|
||||||
const { filterQuery, joinSession, params } = await parseFilters(
|
const { filterQuery, joinSession, params } = await parseFilters(
|
||||||
@ -56,7 +56,7 @@ async function clickhouseQuery(
|
|||||||
websiteId: string,
|
websiteId: string,
|
||||||
column: string,
|
column: string,
|
||||||
filters: QueryFilters,
|
filters: QueryFilters,
|
||||||
limit: number = 100,
|
limit: number = 500,
|
||||||
): Promise<{ x: string; y: number }[]> {
|
): Promise<{ x: string; y: number }[]> {
|
||||||
const { parseFilters, rawQuery } = clickhouse;
|
const { parseFilters, rawQuery } = clickhouse;
|
||||||
const { filterQuery, params } = await parseFilters(websiteId, {
|
const { filterQuery, params } = await parseFilters(websiteId, {
|
||||||
|
Loading…
Reference in New Issue
Block a user