Skip to content

Conversation

pauldambra
Copy link
Member

Problem

We're hiding query based insights in the saved insights list based on a flag. But not in the home page recently viewed list

Changes

hides them

2023-03-15 19 48 49

How did you test this code?

dev tests and 👀 locally

@pauldambra pauldambra requested a review from mariusandra March 15, 2023 20:02
Copy link
Collaborator

@mariusandra mariusandra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this is fine, but

  1. If these are your recently viewed queries then you have the flag enabled
  2. thus this kind of seems excessive 🤷, and likely about a year from now someone will be wondering why this "include_query_insights" was added to the API in the first place 😅

@pauldambra
Copy link
Member Author

If these are your recently viewed queries then you have the flag enabled

"then you had the flag enabled

This is to avoid the case of us having to turn the flag off and folk being able to click on things being broken. So, the API param only lives as long as we're likely to have the flag off for anyone.

@pauldambra pauldambra merged commit 29a7872 into master Mar 16, 2023
@pauldambra pauldambra deleted the fix/hide-query-based-insights-in-recently-viewed branch March 16, 2023 08:21
fuziontech added a commit that referenced this pull request Mar 16, 2023
* master: (101 commits)
  feat: feedback tab - improve the UI and switch to HogQL (#14777)
  feat(experiments): cache experiment results (#14742)
  fix(empty-state): properly fix query timeout state (#14793)
  chore(feature-flag): release json payload flag (#14775)
  feat(hogql): make sure joins work with properties (#14790)
  test(frontend): Tune visual regression test failure threshold (#14766)
  feat(hogql): count distinct and count star (#14786)
  feat(perf): only load experiment results once (#14772)
  feat: allow new insight type choice from sidebar (#14759)
  fix(persons): hide persons in the future (#14308)
  feat: allow query cards in saved insights grid (#14784)
  fix(lemon-ui): Align padding for small/large buttons with icons (#14750)
  chore(deps): Upgrade TypeScript from 4.8 to 4.9 in the frontend (#14609)
  feat: rename insight query tab to json tab (#14781)
  feat: use same top heading for insight card and exported insight (#14780)
  feat: define new insight urls in one place (#14778)
  fix(hogql): person properties in a funnel breakdown (#14765)
  fix: hide query based insights in recently viewed list (#14774)
  feat: improve query summaries (#14768)
  feat(hogql): add sampling support (#14733)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants