feat: set composed stream taxonomies #841
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull request introduces several significant changes to the taxonomy handling and testing framework. The most important changes include updates to the SQL schema, implementation of the
insert_taxonomy
action, and enhancements to the testing setup for composed streams.Updates to SQL Schema:
CREATE TABLE
statement in000-initial-data.sql
to reorder columns, ensuringchild_stream_id
is correctly placed.Implementation of
insert_taxonomy
Action:insert_taxonomy
action in004-composed-taxonomy.sql
, which includes validation, versioning, and insertion logic for taxonomy records.Enhancements to Testing Setup:
query_test.go
.WithComposedQueryTestSetup
and a placeholder testtestAGGR03_ComposedStreamWithWeights
inquery_test.go
.setup/composed.go
to ensure it is called after primitive streams are initialized. [1] [2]setTaxonomy
function to call the newinsert_taxonomy
action insetup/composed.go
. [1] [2]Related Problem
resolves: #838
How Has This Been Tested?
Run test for
WithComposedQueryTestSetup(testAGGR03_ComposedStreamWithWeights(t))