Skip to content

control-plane: bug fixes related to ops catalog changes#2002

Merged
psFried merged 3 commits intomasterfrom
phil/ops-migration-update
Mar 17, 2025
Merged

control-plane: bug fixes related to ops catalog changes#2002
psFried merged 3 commits intomasterfrom
phil/ops-migration-update

Conversation

@psFried
Copy link
Member

@psFried psFried commented Mar 12, 2025

Rolls up a few fixes related to the ops catalog changes:

  • Adds not null constraints, which were removed from the original ops_catalog_status migration in order to allow legacy agent processes to create new data planes. This just breaks out those constraints to a separate migration.
  • Fixes the catalog stats L1 rollup. I'd made a last minute change to validate that the type of /fields/error is a string on events documents, and it broke the whole thing. This fixes it and adds a test, which really should have been there from the beginning.
  • Fixes the new_free_trial_tenants view. The last line of the view definition got missed during the copypasta, which caused us to send out a bunch of free trial emails accidentally. This fixes it and adds a sql test.

This change is Reviewable

These constraints were removed from the original `ops_catalog_status` migration
in order to allow legacy agent processes to create new data planes.  This just
breaks out those constraints to a separate migration.
@psFried psFried requested a review from jgraettinger March 12, 2025 12:34
psFried added 2 commits March 13, 2025 17:15
Fixes a boneheaded mistake in the L1 events derivation, and adds a test
verifying the behavior. This had been a last-minute decision to validate
the type of `/fields/error`, since the events schema only allows it to
be a string. Note that it's not technically _necessary_ for `error` to
be constrained to strings, but it seemed like a more prudent starting
point, given that events are intended to communicate errors to users.
A previous migration broke the new_free_trial_tenants view. This fixes it, and
adds a sql test.
@psFried psFried changed the title control-plane: add not null constraints to data_planes events columns control-plane: bug fixes related to ops catalog changes Mar 14, 2025
Copy link
Member

@jgraettinger jgraettinger left a comment

Choose a reason for hiding this comment

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

LGTM

@psFried psFried merged commit a4a23ae into master Mar 17, 2025
3 checks passed
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