Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(bi): Dont allow multiple insight variables with the same code_name #25602

Merged
merged 8 commits into from
Oct 17, 2024

Conversation

Gilbert09
Copy link
Member

Problem

  • When creating insight variables, you can currently have duplicate variables

Changes

  • Throw validation errors if a variable with the same code_name already exists

Does this work well for both Cloud and self-hosted?

Yes

How did you test this code?

Backend tests

@Gilbert09 Gilbert09 requested a review from a team October 15, 2024 16:07
Copy link
Contributor

github-actions bot commented Oct 15, 2024

Size Change: 0 B

Total Size: 1.14 MB

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

compressed-size-action

@@ -97,20 +98,18 @@ export const addVariableLogic = kea<addVariableLogicType>([
},
],
}),
loaders(({ values, actions }) => ({
savedVariable: [
Copy link
Member

Choose a reason for hiding this comment

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

Double checking: this variable isn't used

Copy link
Member Author

Choose a reason for hiding this comment

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

Nope - not used 😄

Base automatically changed from tom/insight-variables-4-dashboard-rollup to master October 17, 2024 08:49
An error occurred while trying to automatically change base from tom/insight-variables-4-dashboard-rollup to master October 17, 2024 08:49
@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

2 snapshot changes in total. 0 added, 2 modified, 0 deleted:

  • chromium: 0 added, 2 modified, 0 deleted (diff for shard 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

2 snapshot changes in total. 0 added, 2 modified, 0 deleted:

  • chromium: 0 added, 2 modified, 0 deleted (diff for shard 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

2 snapshot changes in total. 0 added, 2 modified, 0 deleted:

  • chromium: 0 added, 2 modified, 0 deleted (diff for shard 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@Gilbert09 Gilbert09 merged commit f6f99fc into master Oct 17, 2024
94 checks passed
@Gilbert09 Gilbert09 deleted the tom/duplicate-vars branch October 17, 2024 15:27
timgl pushed a commit that referenced this pull request Oct 17, 2024
…ame (#25602)

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
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.

3 participants