Repository navigation
Conversation
ref https://linear.app/ghost/issue/PROD-169/automated-tests-for-all-queries-including-every-filter-plus-one-other - This commit is part of a general effort to increase the test coverage of our Tinybird pipes so we can be more confident in quickly making changes in the future. - This commit adds the final remaining test for the source:direct and browser:chrome compound filter, for the KPIs endpoint.
WalkthroughThis pull request introduces a new test case in the file Possibly related PRs
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (2)
ghost/web-analytics/tests/filter_source_direct_browser_chrome_kpis.test.result (1)
1-9: CSV Test Result File Structure VerificationThe CSV file correctly defines the expected columns ("date", "visits", "pageviews", "bounce_rate", "avg_session_sec") and provides data rows for the specified date range. Please verify that the trailing blank line (line 9) is acceptable for your CSV parser. If your CSV processing tool treats blank lines as extra records, you might consider removing it for consistency.
ghost/web-analytics/tests/filter_source_direct_browser_chrome_kpis.test (1)
1-2: Test Command Filters and Environment Variable UsageThe test command uses
tb pipe dataalong with a dynamically substituted TB_VERSION parameter (with a default value of 0) and specifies the date range, site UUID, CSV format, and a browser filter for Chrome. However, note that the--sourceflag is provided as an empty string. The PR description refers to a compound filter involving source:direct and browser:chrome. Please confirm that an empty source value is intentional—if the goal was to test for "direct" as the source filter, adjust the command accordingly.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
ghost/web-analytics/tests/filter_source_direct_browser_chrome_kpis.test(1 hunks)ghost/web-analytics/tests/filter_source_direct_browser_chrome_kpis.test.result(1 hunks)
ref https://linear.app/ghost/issue/PROD-169/automated-tests-for-all-queries-including-every-filter-plus-one-other