Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
* upstream/master: (53 commits)
  Sync and remove all non-FOSS parts
  feat: remove perf events for now (#16652)
  fix: Update notification text and direct users to forum (#16655)
  chore: upgrade to Webpack 5 (#16648)
  fix: Session high watermarks logic (#16656)
  fix(funnels): fix accessing funnelsFilter (#16647)
  fix(insights): cohorts can only be made from persons (#16577)
  feat: Support basic templating in S3 key prefixes (#16591)
  feat: save filters as a playlist (#16562)
  chore(instrumentation): bump log level for insight cache updates (#16644)
  feat(hogql): add clickhouse geohash functions (#16649)
  chore: Danielj/split plugins helm chart (#16612)
  feat(persons & groups): search by UUID (#16609)
  feat: support HogQL property queries in session recording v3 listing (#16636)
  fix: Blob ingester unknown error (#16643)
  fix(insights): pie + breakdown + event filter (#16641)
  feat: Switch to inserted_at for batch exports (#16631)
  chore(deps): Update posthog-js to 1.72.1 (#16639)
  fix(refresh): fix tooltip for refresh button and it's disabled state for long-term insights (#16637)
  feat(dashboards): make the modal wider (#16635)
  ...
  • Loading branch information
karambir committed Jul 19, 2023
2 parents 44b2965 + 10bfc98 commit 4f38a05
Show file tree
Hide file tree
Showing 281 changed files with 5,550 additions and 4,784 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/__snapshots__/scenes-app-insights--lifecycle--webkit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/__snapshots__/scenes-app-insights--lifecycle-edit.png
Binary file modified frontend/__snapshots__/scenes-app-insights--lifecycle.png
Binary file modified frontend/__snapshots__/scenes-app-insights--retention--webkit.png
Binary file modified frontend/__snapshots__/scenes-app-insights--retention-breakdown.png
Binary file modified frontend/__snapshots__/scenes-app-insights--retention-edit.png
Binary file modified frontend/__snapshots__/scenes-app-insights--retention.png
Binary file modified frontend/__snapshots__/scenes-app-insights--stickiness--webkit.png
Binary file modified frontend/__snapshots__/scenes-app-insights--stickiness-edit.png
Binary file modified frontend/__snapshots__/scenes-app-insights--stickiness.png
Binary file modified frontend/__snapshots__/scenes-app-insights--trends-area--webkit.png
Binary file modified frontend/__snapshots__/scenes-app-insights--trends-area-edit.png
Binary file modified frontend/__snapshots__/scenes-app-insights--trends-area.png
Binary file modified frontend/__snapshots__/scenes-app-insights--trends-bar--webkit.png
Binary file modified frontend/__snapshots__/scenes-app-insights--trends-bar-edit.png
Binary file modified frontend/__snapshots__/scenes-app-insights--trends-bar.png
Binary file modified frontend/__snapshots__/scenes-app-insights--trends-line--webkit.png
Binary file modified frontend/__snapshots__/scenes-app-insights--trends-line-edit.png
Binary file modified frontend/__snapshots__/scenes-app-insights--trends-line.png
Binary file modified frontend/__snapshots__/scenes-app-insights--trends-number-edit.png
Binary file modified frontend/__snapshots__/scenes-app-insights--trends-number.png
Binary file modified frontend/__snapshots__/scenes-app-insights--trends-pie--webkit.png
Binary file modified frontend/__snapshots__/scenes-app-insights--trends-pie-edit.png
Binary file modified frontend/__snapshots__/scenes-app-insights--trends-pie.png
Binary file modified frontend/__snapshots__/scenes-app-insights--trends-table-edit.png
Binary file modified frontend/__snapshots__/scenes-app-insights--trends-table.png
Binary file modified frontend/__snapshots__/scenes-app-insights--trends-value-edit.png
Binary file modified frontend/__snapshots__/scenes-app-insights--trends-value.png
Binary file modified frontend/__snapshots__/scenes-app-insights--trends-world-map.png
Binary file modified frontend/__snapshots__/scenes-app-insights--user-paths--webkit.png
Binary file modified frontend/__snapshots__/scenes-app-insights--user-paths-edit.png
Binary file modified frontend/__snapshots__/scenes-app-insights--user-paths.png
8 changes: 0 additions & 8 deletions frontend/src/layout/navigation/SideBar/SideBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { ProjectName, ProjectSwitcherOverlay } from '~/layout/navigation/Project
import {
IconApps,
IconBarChart,
IconCoffee,
IconCohort,
IconComment,
IconDatabase,
Expand Down Expand Up @@ -164,13 +163,6 @@ function Pages(): JSX.Element {
}}
/>
<PageButton icon={<IconRecording />} identifier={Scene.Replay} to={urls.replay()} />
{featureFlags[FEATURE_FLAGS.WEB_PERFORMANCE] && (
<PageButton
icon={<IconCoffee />}
identifier={Scene.WebPerformance}
to={urls.webPerformance()}
/>
)}

{featureFlags[FEATURE_FLAGS.EARLY_ACCESS_FEATURE] && (
<div className="SideBar__heading">Feature Management</div>
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/layout/navigation/TopBar/NotificationBell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ export function NotificationBell(): JSX.Element {
</LemonTag>
</h5>
<p className={'mx-2 text-muted mt-2'}>
<IconInfo /> Notifications is in beta. Right now it only shows you changes other users make to{' '}
<IconInfo /> Notifications shows you changes others make to{' '}
<Link to={urls.savedInsights('history')}>Insights</Link> and{' '}
<Link to={urls.featureFlags('history')}>Feature Flags</Link> that you created. Come join{' '}
<Link to={'https://posthog.com/slack'}>our community slack</Link> and tell us what else should
be here!
<Link to={'https://posthog.com/community'}>our community forum</Link> and tell us what else
should be here!
</p>
<LemonDivider />
{hasNotifications ? (
Expand Down
46 changes: 0 additions & 46 deletions frontend/src/lib/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,12 @@ import {
NotebookType,
OrganizationResourcePermissionType,
OrganizationType,
PerformanceEvent,
PersonListParams,
PersonType,
PluginLogEntry,
PropertyDefinition,
PropertyDefinitionType,
RawAnnotationType,
RecentPerformancePageView,
RoleMemberType,
RolesListParams,
RoleType,
Expand All @@ -55,7 +53,6 @@ import { EVENT_PROPERTY_DEFINITIONS_PER_PAGE } from 'scenes/data-management/prop
import { ActivityLogItem, ActivityScope } from 'lib/components/ActivityLog/humanizeActivity'
import { ActivityLogProps } from 'lib/components/ActivityLog/ActivityLog'
import { SavedSessionRecordingPlaylistsResult } from 'scenes/session-recordings/saved-playlists/savedSessionRecordingPlaylistsLogic'
import { dayjs } from 'lib/dayjs'
import { QuerySchema } from '~/queries/schema'
import { decompressSync, strFromU8 } from 'fflate'
import { getCurrentExporterData } from '~/exporter/exporterViewLogic'
Expand Down Expand Up @@ -482,18 +479,6 @@ class ApiRequest {
return this.featureFlagAccessPermissions(flagId).addPathComponent(id)
}

// Performance events
public performanceEvents(teamId?: TeamType['id']): ApiRequest {
return this.projectsDetail(teamId).addPathComponent('performance_events')
}

public recentPageViewPerformanceEvents(dateFrom: string, dateTo: string, teamId?: TeamType['id']): ApiRequest {
return this.projectsDetail(teamId)
.addPathComponent('performance_events')
.addPathComponent('recent_pageviews')
.withQueryString(toParams({ date_from: dateFrom, date_to: dateTo }))
}

// # Queries
public query(teamId?: TeamType['id']): ApiRequest {
return this.projectsDetail(teamId).addPathComponent('query')
Expand Down Expand Up @@ -1369,37 +1354,6 @@ const api = {
},
},

performanceEvents: {
async list(
params: any,
teamId: TeamType['id'] = getCurrentTeamId()
): Promise<PaginatedResponse<PerformanceEvent>> {
return new ApiRequest().performanceEvents(teamId).withQueryString(toParams(params)).get()
},
recentPageViewsURL(teamId: TeamType['id'] = getCurrentTeamId(), dateFrom?: string, dateTo?: string): string {
return new ApiRequest()
.recentPageViewPerformanceEvents(
dateFrom || dayjs().subtract(1, 'hour').toISOString(),
dateTo || dayjs().toISOString(),
teamId
)
.assembleEndpointUrl()
},
async recentPageViews(
teamId: TeamType['id'] = getCurrentTeamId(),
dateFrom?: string,
dateTo?: string
): Promise<PaginatedResponse<RecentPerformancePageView>> {
return new ApiRequest()
.recentPageViewPerformanceEvents(
dateFrom || dayjs().subtract(1, 'hour').toISOString(),
dateTo || dayjs().toISOString(),
teamId
)
.get()
},
},

queryURL: (): string => {
return new ApiRequest().query().assembleFullUrl(true)
},
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export function getColorVar(variable: string): string {
*/
export function getSeriesColor(
index: number | undefined = 0,
comparePrevious: boolean = false,
comparePrevious: boolean | null = false,
asBackgroundHighlight?: boolean
): string {
const adjustedIndex = (comparePrevious ? Math.floor(index / 2) : index) % dataColorVars.length
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,13 @@ const DashboardRelationRow = ({
style={style}
className={clsx('flex items-center space-x-2', isHighlighted && 'highlighted')}
>
<Link to={urls.dashboard(dashboard.id)}>{dashboard.name || 'Untitled'}</Link>
<Link
to={urls.dashboard(dashboard.id)}
className="overflow-hidden text-ellipsis whitespace-nowrap"
title={dashboard.name}
>
{dashboard.name || 'Untitled'}
</Link>
{isPrimary && (
<Tooltip title="Primary dashboards are shown on the project home page">
<IconCottage className="text-warning text-base" />
Expand Down Expand Up @@ -143,7 +149,7 @@ export function AddToDashboardModal({
</>
}
>
<div className="space-y-2">
<div className="space-y-2 w-md max-w-full">
<LemonInput
data-attr="dashboard-searchfield"
type="search"
Expand Down
Loading

0 comments on commit 4f38a05

Please sign in to comment.