0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 04:12:23 +01:00
🦔 PostHog provides open-source product analytics, session recording, feature flagging and A/B testing that you can self-host.
Go to file
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
.devcontainer chore(NodeJS): use Node.js v18 (#12650) 2022-12-12 15:02:33 +01:00
.github ci(snapshots): also update snapshots from clickhouse schema changes (#13898) 2023-01-24 15:04:24 +00:00
.husky chore: use pnpm to manage dependencies (closes #12635) (#13190) 2022-12-12 10:28:06 +01:00
.run feat: Added performance API (#13452) 2023-01-06 09:51:51 +01:00
.storybook fix(storybook): don't use esbuild for storybook (#13883) 2023-01-23 23:46:29 +01:00
.vscode
bin chore: use pnpm to manage dependencies (closes #12635) (#13190) 2022-12-12 10:28:06 +01:00
cypress fix: dashboard modal could not cope with deleted tiles (#13794) 2023-01-25 13:09:58 +00:00
docker/clickhouse
ee refactor(queries): remove to_start_of_week_fix (#13907) 2023-01-25 08:18:47 -03:00
frontend fix: dashboard modal could not cope with deleted tiles (#13794) 2023-01-25 13:09:58 +00:00
playwright fix(storybook): don't use esbuild for storybook (#13883) 2023-01-23 23:46:29 +01:00
plugin-server fix: refactor person merging retry logic to be simpler (#13860) 2023-01-24 18:16:37 +01:00
posthog fix: dashboard modal could not cope with deleted tiles (#13794) 2023-01-25 13:09:58 +00:00
share
staticfiles
.all-contributorsrc chore: Add Ismaaa as a contributor 🎉 (#5679) 2022-12-19 21:13:17 +00:00
.coveragerc
.deepsource.toml
.dockerignore chore: use pnpm to manage dependencies (closes #12635) (#13190) 2022-12-12 10:28:06 +01:00
.environment
.eslintrc.js refactor: Replace Badge with LemonBadge (#13763) 2023-01-18 15:50:51 +01:00
.flake8 style(flake8): enable C400,C407,E262 (#13096) 2022-12-05 16:06:54 +01:00
.gitattributes
.gitignore chore: use pnpm to manage dependencies (closes #12635) (#13190) 2022-12-12 10:28:06 +01:00
.kearc
.prettierignore chore: use pnpm to manage dependencies (closes #12635) (#13190) 2022-12-12 10:28:06 +01:00
.prettierrc
.test_durations refactor: Prevent mat columns decorator from being mistaken for a test (#13547) 2023-01-04 11:28:07 +00:00
babel.config.js chore: use pnpm to manage dependencies (closes #12635) (#13190) 2022-12-12 10:28:06 +01:00
CHANGELOG.md
CODE_OF_CONDUCT.md
codecov.yml
CONTRIBUTING.md
cypress.e2e.config.ts
depot.json
docker-compose.base.yml chore(clickhouse): update from 22.3 to 22.8 (#13819) 2023-01-19 14:19:50 +00:00
docker-compose.dev-full.yml feat: Have a local docker-compose stack for developing 100% in docker (#13025) 2022-11-30 09:49:17 -08:00
docker-compose.dev.yml chore: move dev postgres settings out of base dockerfile (#13294) 2022-12-13 13:25:18 +00:00
docker-compose.hobby.yml fix(hobby): fix hobby install compose (#13067) 2022-12-01 10:22:01 -08:00
docker-compose.playwright.yml test(e2e-vrt): add playwright visual regression testing for storybook (#13065) 2022-12-07 11:40:56 +01:00
Dockerfile
Dockerfile.cloud
Dockerfile.playwright refactor(e2e-vrt): Optimize Playwright usage (#13714) 2023-01-16 10:00:05 +01:00
gunicorn.config.py
jest.config.ts chore: switch from esbuild-jest to sucrase for frontend tests (#13636) 2023-01-11 11:35:15 +01:00
jest.setup.ts
jest.setupAfterEnv.ts chore(frontend): upgrade jest (#12866) 2022-11-19 13:09:00 +01:00
latest_migrations.manifest fix: allow 'config_schema' on plugin to be blank (#13880) 2023-01-23 21:00:43 -08:00
LICENSE chore: 2023 (#13143) 2023-01-03 08:21:48 +00:00
manage.py
mypy.ini
package.json fix(storybook): don't use esbuild for storybook (#13883) 2023-01-23 23:46:29 +01:00
playwright.config.ts test(e2e-vrt): add playwright visual regression testing for storybook (#13065) 2022-12-07 11:40:56 +01:00
pnpm-lock.yaml fix(storybook): don't use esbuild for storybook (#13883) 2023-01-23 23:46:29 +01:00
postcss.config.js
Procfile
production.Dockerfile chore(dockerfile): switch base image to non alpine (#13314) 2022-12-16 11:12:11 +01:00
pyproject.toml
pytest.ini fix: Revert "chore(tests): add pytest-randomly plugin to randomize test run order" (#12335) 2022-10-19 13:30:16 +03:00
README.md chore: Add Ismaaa as a contributor 🎉 (#5679) 2022-12-19 21:13:17 +00:00
requirements-dev.in fix: Revert "chore(tests): add pytest-randomly plugin to randomize test run order" (#12335) 2022-10-19 13:30:16 +03:00
requirements-dev.txt chore: upgrade requests (#13020) 2022-11-30 16:50:23 +00:00
requirements.in chore(deps): Remove obsolete django-rest-hooks requirement (#13349) 2022-12-19 10:06:21 +01:00
requirements.txt chore(deps): Remove obsolete django-rest-hooks requirement (#13349) 2022-12-19 10:06:21 +01:00
runtime.txt
SECURITY.md
tailwind.config.js feat(billing): experiment with adding pricing/feature table on the org billing page (#13105) 2022-12-05 07:50:46 -08:00
tsconfig.dev.json
tsconfig.json
versions.json chore: Bump version to 1.43.0 (#13732) 2023-01-16 15:19:23 +01:00
webpack.config.js

posthoglogo

PRs Welcome Join Slack Community Docker Pulls GitHub commit activity GitHub closed issues

Docs - Using PostHog - Support community - Roadmap - Bug report

PostHog is an open-source suite of product and data tools, built for engineers

  • Specify events manually, or use autocapture to get started quickly
  • Analyze your data with visualizations and session recordings
  • Improve your product with A/B testing and feature flags
  • Keep control over your data by deploying PostHog on your infrastructure
  • Use apps to connect to external services and manage data flows

Table of Contents

Get started for free

PostHog Cloud

The fastest and most reliable way to get started with PostHog is signing up for free to PostHog Cloud or PostHog Cloud EU

Open-source hobby deploy

Deploy a hobby instance in one line on Linux with Docker (recommended 4GB memory):

 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/posthog/posthog/HEAD/bin/deploy-hobby)" 

Good for <100K events ingested monthly. See our docs for more info and limitations.

Enterprise self-hosted

See our enterprise self-hosted docs to deploy a scalable, production-ready instance with support from our team.

Features

ui-demo

We bring together all the tools and data in one place to help you build better products

Product analytics and optimization

  • Event-based analytics: capture your product's usage automatically, or customize it to your needs
  • User and group tracking: understand the people and groups behind the events and track properties about them
  • Data visualizations: create and share graphs, funnels, paths, retention, and dashboards
  • Session recording: watch videos of your users' behavior, with fine-grained filters and privacy controls
  • Heatmaps: see where users are using your product with the PostHog Toolbar
  • Feature flags: test and manage the rollout of new features, target specific users and groups
  • A/B and multi-variate testing: run simple or complex changes as experiments and get automatic significance calculations
  • Correlation analysis: discover what events and properties correlate with success and failure

Data and infrastructure tools

Read a full list of PostHog features.

Docs and support

Read how to deploy, integrate, and extend PostHog in our documentation.

Check out our tutorials for step-by-step guides, how-to's, and best practices.

Learn more about getting the most out of PostHog's features in our product manual.

Ask a question or join our Slack community to get support.

Contributing

We <3 contributions big and small. In priority order (although everything is appreciated) with the most helpful first:

Philosophy

Our mission is to increase the number of successful products in the world. To do that, we build product and data tools that help you understand user behavior without losing control of your data.

In our view, third-party analytics tools do not work in a world of cookie deprecation, GDPR, HIPAA, CCPA, and many other four-letter acronyms. PostHog is the alternative to sending all of your customers' personal information and usage data to third-parties.

PostHog gives you every tool you need to understand user behavior, develop and test improvements, and release changes to make your product more successful.

PostHog operates in public as much as possible. We detail how we work and our learning on building and running a fast-growing, product-focused startup in our handbook.

Open-source vs. paid

This repo is available under the MIT expat license, except for the ee directory (which has it's license here) if applicable.

Need absolutely 💯% FOSS? Check out our posthog-foss repository, which is purged of all proprietary code and features.

Using premium features (contained in the ee directory) with a self-hosted instance require a PostHog license. To learn more, book a demo or see our pricing page.

Were hiring!

Come help us make PostHog even better. We're growing fast and would love for you to join us.

Contributors 🦸