Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sessions Table bug fixes #4963

Closed
wants to merge 17 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'origin' into feat/deeplink-sessions-events
alexkim205 committed Jun 30, 2021

Unverified

This user has not yet uploaded their public signing key.
commit 67a791fa456a5eda8dc507e7e94ddd9b7645cd60
4 changes: 2 additions & 2 deletions frontend/src/scenes/persons/PersonsTable.tsx
Original file line number Diff line number Diff line change
@@ -110,10 +110,10 @@ export function PersonsTable({
<>
<Link
to={deepLinkToPersonSessions(person)}
data-attr={'goto-person-arrow-' + index}
data-attr={`goto-person-arrow-${index}`}
data-test-goto-person
>
<ArrowRightOutlined />
<ArrowRightOutlined style={{ float: 'right' }} />
{allColumns ? ' view' : ''}
</Link>
</>
6 changes: 4 additions & 2 deletions frontend/src/scenes/persons/personsLogic.ts
Original file line number Diff line number Diff line change
@@ -203,7 +203,7 @@ export const personsLogic = kea<personsLogicType<PersonPaginatedResponse>>({
},
'/person/*': (
{
_,
_: person,
}: {
_: string
},
@@ -213,7 +213,9 @@ export const personsLogic = kea<personsLogicType<PersonPaginatedResponse>>({
if (activeTab && values.activeTab !== activeTab) {
actions.navigateToTab(activeTab as PersonsTabType)
}
actions.loadPerson(_) // underscore contains the wildcard
if (person) {
actions.loadPerson(person) // underscore contains the wildcard
}
},
}),
})
8 changes: 6 additions & 2 deletions frontend/src/scenes/trends/PersonModal.tsx
Original file line number Diff line number Diff line change
@@ -8,7 +8,8 @@ import { PersonsTable } from 'scenes/persons/PersonsTable'
import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { ViewType } from 'scenes/insights/insightLogic'
import { EntityTypes, EventPropertyFilter, FilterType, SessionsPropertyFilter } from '~/types'
import { ACTION_TYPE, EVENT_TYPE } from 'lib/constants'
import { ACTION_TYPE, EVENT_TYPE, FEATURE_FLAGS } from 'lib/constants'
import { personsModalLogic } from './personsModalLogic'

// Utility function to handle filter conversion required for deeplinking to person -> sessions
const convertToSessionFilters = (people: TrendPeople, filters: Partial<FilterType>): SessionsPropertyFilter[] => {
@@ -49,7 +50,10 @@ export function PersonModal({ visible, view, onSaveCohort }: Props): JSX.Element
: filters.display === 'ActionsBarValue' || filters.display === 'ActionsPie'
? `"${people?.label}"`
: `"${people?.label}" on ${people?.day ? dayjs(people.day).format('ll') : '...'}`
const closeModal = (): void => setShowingPeople(false)
const closeModal = (): void => {
setShowingPeople(false)
setSearchTerm('')
}

return (
<Modal
You are viewing a condensed version of this merge commit. You can view the full changes here.