0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 09:14:46 +01:00
Commit Graph

36 Commits

Author SHA1 Message Date
Michael Matloka
d1c75ab747
fix(environments): Rejig use of insight/dashboard endpoints (#25469)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-16 16:23:48 +02:00
Anirudh Pillai
7118410c35
feat: alerts on all trends (#25056)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-02 19:46:35 +01:00
Anirudh Pillai
d0a8627f4d
feat: insight with dashboard filters (#24745)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-09-12 16:08:02 +02:00
Julian Bez
1e1a740b6b
chore: Revert "chore(deps): Upgrade to Django 5" (#24668) 2024-08-29 10:51:36 +00:00
Julian Bez
9418235763
chore(deps): Upgrade to Django 5 (#23626) 2024-08-29 10:56:28 +01:00
Anirudh Pillai
5ee45fc552
feat: preview dashboard filter changes (#24303)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Michael Matloka <dev@twixes.com>
2024-08-22 07:47:21 +00:00
Michael Matloka
ceccb49800
feat(insights): Make initial single insight load async v2 (#23978)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Anirudh Pillai <anirudhx5@gmail.com>
2024-08-01 13:03:34 +02:00
Juraj Majerik
d1e240eeef
fix(eslint): lint cypress files (#23548) 2024-07-09 09:59:53 +00:00
David Newell
17a376c57c
chore: abstract PropertyFilters logic (#22625) 2024-06-05 11:42:00 +01:00
Julian Bez
b547d4ad59
feat(insights): Improve dashboard date and filters by removing need for edit button (#22540)
Co-authored-by: Michael Matloka <michal@matloka.com>
2024-05-29 10:02:53 +00:00
Julian Bez
a63217bff0
feat(insights): Add edit button for dashboard filters (#21841) 2024-04-30 12:28:53 +00:00
Julian Bez
ebd336fdc6
fix(insights): Remove insight reuse on dashboard and insights (#21471)
* Remove find insight from mounted logic

We rather load fresh to be save

* Do not set insights anymore

* Adjust dataNodeLogic

* Make insightLogic not load things on mount when cached

* Make sure refresh happens on filter change

* Make dataNodeLogic never load for dashboard with cached results

* Fix usage of `updateTileOnDashboards`

Fixes remaining unwanted propagation of dashboard filter changes to other dashboards.

* Fix "Remove from dashboard" buttons being out of date

Co-authored-by: Michael Matloka <michal@matloka.com>
2024-04-29 07:25:53 +01:00
Michael Matloka
3604a1ca66
test(e2e): Treat HogQL insights as fully rolled out (#21722)
* test(e2e): Treat HogQL insights as fully rolled out

* Only intercept /query in `interceptInsightLoad()`

* Remove long-broken `*Premium.cy.ts` tests

* Update e2e.ts

* Don't assume that untyped properties are boolean

* Update test_property.py
2024-04-23 11:48:20 +02:00
Ben White
2778c6ba28
feat: ~LemonMulitSelect~ LemonInputSelect (#20948) 2024-03-18 13:27:29 +01:00
Thomas Obermüller
1af8f779b3
fix(funnels): do not load funnels with a single step (#20768) 2024-03-12 14:39:05 +00:00
Tom Owers
4a60cad645
feat(hogql): Allow lazy joins on lazy tables with requested fields (#20731)
* WIP

* Clean up and tests

* Updated mypy

* Updated lazy tables to work without resolving types twice

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Updated mypy

* Fixed cohort people and joining multiple lazy tables

* Fixed infinite recursion

* Dont use an extra column for hogql expressions

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-08 11:40:43 +01:00
Julian Bez
7b8857383d
refactor(dashboards): Remove dead dashboardLogic/dashboardsModel code (#20508)
* Fix dashboard insight reuse

* Update more

* Beef up tests

* Make dashboard `id` required and remove `propsChanged`

* Remove the unused `updateDashboardTile` action

* Remove unused `dashboardsModel` and `dashboardLogic` reducers

* Revert savedInsightsLogic.ts change

* Restore `loadDashboardItemsSuccess` branch

* Update dashboardLogic.test.ts

* Update UI snapshots for `chromium` (2)

* Remove new E2E test code

* Update UI snapshots for `webkit` (2)

---------

Co-authored-by: Michael Matloka <michal@matloka.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-07 15:44:57 +01:00
Marius Andra
de278a298e
fix(insights): Move from GET to POST queries (#19859) 2024-02-12 16:33:04 +01:00
Thomas Obermüller
e1c68da4bf
chore(3000): remove feature flag (#19416) 2023-12-27 09:52:28 +01:00
Thomas Obermüller
56cf18ff29
fix(notebooks): use varying keys for global filters (#18601) 2023-11-14 14:38:36 +00:00
Paul D'Ambra
5da50e633a
fix: throw error so test failures are not swallowed (#17926)
So obvious in retrospect

If you listen to the Cypress fail event without re-throwing then you swallow all test failures

"fun"

When reviewing #17919 I knew the Cypress tests would have to be failing which is what prompted me to check

Introduced in bbb7ed9 (July 10th!)
2023-10-12 00:51:47 +01:00
Ben White
f8b26789bb
feat: Notebook queries node (#15910) 2023-06-16 16:08:07 +02:00
Paul D'Ambra
7c521c55b2
fix: update monaco editor (#15993) 2023-06-12 08:53:54 +02:00
Paul D'Ambra
cccefc889f
feat: un-menu-ify-the-new-insight-button (#14876) 2023-03-24 10:11:59 +01:00
Paul D'Ambra
597f79beff
feat: allow query flag with data exploration insight flag (#14845) 2023-03-22 10:36:09 +01:00
Paul D'Ambra
1f1d2c2779
feat: replace open in query builder with new insight page (#14709) 2023-03-21 00:44:56 +01:00
Paul D'Ambra
8217ef92ab
fix: reset insight on tab change (#14798)
* fix: reset insight on tab change

* add some cypress tests

* and now a failing test

* refactor cypress file

* don't reset the insight logic

* Update cypress/e2e/insights.dataExploration.cy.ts

* hammer to crack a nut

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* tests are green

* a little cypress massaging

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* more cypress massaging

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* safer network intercept choice

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-03-20 20:03:11 +00:00
Paul D'Ambra
8c76766d5a
feat: a little more e2e cypress data exploration tests (#14816)
* feat: a little more e2e cypress data exploration tests

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* tests were passing by accident

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-03-18 17:38:11 +00:00
Paul D'Ambra
9aa1122dc1
feat: add data exploration cypress test example (#14812) 2023-03-18 10:32:22 +00:00
Paul D'Ambra
ecdfaced7b
feat: allow new insight type choice from sidebar (#14759)
* feat: allow new insight type choice from sidebar

* update e2e test

* add more e2e test fixes

* Update frontend/src/layout/navigation/SideBar/SideBar.tsx

Co-authored-by: Michael Matloka <dev@twixes.com>

* a plus and a width

* allow passing in max width to popover

* Revert "allow passing in max width to popover"

This reverts commit 415a751f71.

* third-ish times the charm

* Use a more concise tooltip

The tooltip basically functions as a on-hover label here, so using the same text as on the saved insights page, where it says "New insight".

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

---------

Co-authored-by: Michael Matloka <dev@twixes.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-03-16 13:56:22 +00:00
Luke Harries
df583bd311
chore: remove flag from new dashboard modal (#14657)
Co-authored-by: Paul D'Ambra <paul@posthog.com>
2023-03-14 13:31:38 +00:00
Paul D'Ambra
00543e0a8a
fix: turbo mode persist dashboard filters (#14403) 2023-02-27 10:22:54 +00:00
Paul D'Ambra
5aa4995398
fix: dashboard modal could not cope with deleted tiles (#13794)
Problem
@annikaschmid accidentally deleted an insight from a dashboard and then couldn't put it back.

The insight API response was returning the deleted dashboard in the insight's dashboards field. That meant the UI didn't offer the ability to add it to that dashboard because it thought it was already added

Even though there was a test that protected against this which passes and I couldn't figure out why the application behaves well in the test and not when running 🤷

Changes
The dashboard_tiles relation is correct. And we should eventually remove the use of the dashboards relation.

So, let's expose it. This begins the deprecation of the dashboards field on the Insight API.

And overwrites the content of the dashboards field with the correct values when returning a representation of the model.

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Michael Matloka <dev@twixes.com>
2023-01-25 13:09:58 +00:00
Thomas Obermüller
7414ae04ff
test(e2e): convert cypress to typescript (#13513) 2022-12-30 11:23:09 +01:00
Paul D'Ambra
faf29ea1f2
feat: choose whether to duplicate insights with dashboard (#12648)
Problem
Via customer feedback: If someone is duplicating a dashboard they might not want to duplicate the insights on it.

Changes
This lets them choose.
2022-11-10 17:12:52 +00:00
Paul D'Ambra
63a1cb56e5
feat: choose if dashboard deletion also deletes insights (#12640)
Problem
Via customer feedback: If someone is deleting a dashboard they want to delete the insights too. At the moment that means they have to delete them one at a time.

Changes
Introduces a modal when deleting a dashboard that lets you choose whether to delete the insights on the dashboard

Soft-deletes the insights as appropriate
2022-11-08 15:50:58 +00:00