posthog icon indicating copy to clipboard operation
posthog copied to clipboard

feat: list dashboard templates from repository

Open pauldambra opened this issue 3 years ago • 1 comments

Problem

splitting out from #12753

We want to list dashboard templates from an external repository. Installation and management will be similar but a chunk simpler than plugins

Changes

  • Adds a DashboardTemplate model
  • the model has a github url that is used to load the template
    • in follow-up this will be used to determine if updates are available
  • Adds the OG template as a hard-coded always available template
  • Uses that template when creating the OG dashboard
  • lists templates in a tab in the dashboards section
  • shows if they are installed
  • shows if they are official
  • allows installation of templates
  • can use the installed templates as dashboard creation source

with feature flag off

original-template-mechanism

with feature flag on

new-mechanism

for follow-up

  • check for and allow upgrades
  • add instructions on how to create templates in the github repository
  • add the templates requested in https://github.com/PostHog/posthog/issues/12732

How did you test this code?

added back end developer tests used locally with and without flag on

pauldambra avatar Dec 29 '22 14:12 pauldambra

This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in another week.

posthog-bot avatar Jan 13 '23 07:01 posthog-bot