posthog icon indicating copy to clipboard operation
posthog copied to clipboard

fix(insights): edit source

Open mariusandra opened this issue 1 year ago • 4 comments
trafficstars

Problem

You could view the source behind an insight for a while now, but you couldn't edit it. The button did nothing.

image

Changes

Now the button also takes effect.

How did you test this code?

Locally in the browser

mariusandra avatar Feb 13 '24 12:02 mariusandra

The check there is actually necessary. Try e.g. saving an insight. Don't know a better fix off the bat though and would need to dig deeper (potentially very deep) for a fix.

thmsobrmlr avatar Feb 13 '24 12:02 thmsobrmlr

Size Change: 0 B

Total Size: 2.22 MB

ℹ️ View Unchanged
Filename Size
frontend/dist/toolbar.js 2.22 MB

compressed-size-action

github-actions[bot] avatar Feb 13 '24 12:02 github-actions[bot]

Yeah, I was afraid it looked too simple.

Should we start the process of moving off of "filters" even before all insights are migrated? Would that help in this case?

mariusandra avatar Feb 13 '24 14:02 mariusandra

Yeah, I was afraid it looked too simple.

Should we start the process of moving off of "filters" even before all insights are migrated? Would that help in this case?

We could get rid off "filters" just frontend-side by using the filter_to_query method, identifying all places where filters are still used frontend side and replacing those.

thmsobrmlr avatar Feb 13 '24 14:02 thmsobrmlr

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 Feb 21 '24 07:02 posthog-bot

This PR was closed due to lack of activity. Feel free to reopen if it's still relevant.

posthog-bot avatar Feb 28 '24 07:02 posthog-bot