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

fix: environment_type_trends table data #6796

Merged
merged 3 commits into from
Apr 9, 2024

Conversation

andreas-unleash
Copy link
Contributor

@andreas-unleash andreas-unleash commented Apr 8, 2024

Creates a migration to fix the environment_type_trends table data.

The migration works in 4 steps:

  • Clear environment_type_trends table
  • Create a temporary staging table for 1st aggregation (day + environmentType)
  • Aggregate the data from stat_environment_updates to the staging table
  • Aggregate the data from staging to environment_type_trends

Closes # 1-2266

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
Copy link

vercel bot commented Apr 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 9, 2024 9:22am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Apr 9, 2024 9:22am

exports.down = function (db, cb) {
db.runSql(
`
ALTER TABLE features ADD COLUMN IF NOT EXISTS archived BOOLEAN DEFAULT FALSE;
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks wrong

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed - leftover

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
@sjaanus sjaanus merged commit 5a5d909 into main Apr 9, 2024
14 checks passed
@sjaanus sjaanus deleted the fix/environment_type_trends_table_data branch April 9, 2024 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants