Fix Bot Insights ai_category transform output#184
Open
tom-howe-hdx wants to merge 2 commits into
Open
Conversation
Normalize settings.sample_data from array to single dict across all six
transforms so the deploy path's sample extractor actually ingests rows
(previously only tencent's dict form passed through; the five array-typed
transforms silently skipped both insert and verification). Also promote
default's rich 23-field external sample_data.json content into the
embedded transform copy so test ingests land a realistic row rather than
just a {timestamp} stub. Fix a Go-layout typo in tencent's primary format
(15:05:05Z -> 15:04:05Z).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Merged
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
ai_categoryoutput columns to manifest-listed Bot Insights transforms that feed the sharedlogstableai_categoryfromcommons_ua_cat_dictfor Akamai DS2, CloudFront Firehose, and FastlyNONEfor Cloudflare to match its existing placeholder bot classification pathWhy
The Bot Insights summary tables and dashboard query
ai_category, but several transforms did not materialize that column. Deploy-time summary creation can fail withMissing columns: ai_categorywhen the parent table schema is built from those transforms.Validation
jq emptyon the changed transform JSON filesaws/bot-insights/bundle.jsonnow exposesai_categorycargo run -- bot_insightsNot Run
BUNDLE_TESTING_CLUSTER,BUNDLE_TESTING_USERNAME, andBUNDLE_TESTING_PASSWORDare unset