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