Skip to content

Removed pageviews from traffic analytics pipe results - #22839

Merged
9larsons merged 1 commit into
mainfrom
rm-pageviews-pipes
Apr 8, 2025
Merged

9larsons merged 1 commit into
mainfrom
rm-pageviews-pipes

Conversation

@9larsons

@9larsons 9larsons commented Apr 8, 2025

Copy link
Copy Markdown
Contributor

ref https://linear.app/ghost/issue/PROD-204/

We weren't using the pageview results from the pipes (only visits), so those are now removed in order to clean up the results and query complexity.

ref https://linear.app/ghost/issue/PROD-204/

We weren't using the pageview results from the pipes (only visits), so those are now removed in order to clean up the results and query complexity.
@9larsons 9larsons changed the title Removed pageviews from pipe results Removed pageviews from traffic analytics pipe results Apr 8, 2025
@9larsons
9larsons enabled auto-merge (squash) April 8, 2025 14:18
@coderabbitai

coderabbitai Bot commented Apr 8, 2025 •

Copy link
Copy Markdown
Contributor

Walkthrough

This pull request removes the pageviews metric from various SQL queries and test result files in the repository. In several API pipes (for top browsers, devices, locations, operating systems, pages, and sources), the lines aggregating pageviews were deleted, so that the queries now only return unique session counts (visits) alongside other dimensions. Similarly, numerous test result files have been updated to eliminate any pageviews columns from their CSV-like data outputs, resulting in datasets that now include only the remaining metrics such as visits, browser, device, location, pathname, source, and operating system. Additionally, one script was modified to export an extra environment variable (TB_VERSION_WARNING=0). No changes were made to the declarations of exported or public entities aside from the inclusion of this new variable.


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7d45c4c and 3d35e57.

📒 Files selected for processing (70)
  • ghost/web-analytics/pipes/api_top_browsers.pipe (1 hunks)
  • ghost/web-analytics/pipes/api_top_devices.pipe (1 hunks)
  • ghost/web-analytics/pipes/api_top_locations.pipe (1 hunks)
  • ghost/web-analytics/pipes/api_top_os.pipe (1 hunks)
  • ghost/web-analytics/pipes/api_top_pages.pipe (1 hunks)
  • ghost/web-analytics/pipes/api_top_sources.pipe (1 hunks)
  • ghost/web-analytics/scripts/gen_test_results.sh (1 hunks)
  • ghost/web-analytics/tests/all_top_browsers.test.result (1 hunks)
  • ghost/web-analytics/tests/all_top_devices.test.result (1 hunks)
  • ghost/web-analytics/tests/all_top_locations.test.result (1 hunks)
  • ghost/web-analytics/tests/all_top_os.test.result (1 hunks)
  • ghost/web-analytics/tests/all_top_pages.test.result (1 hunks)
  • ghost/web-analytics/tests/all_top_sources.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_browser_chrome_top_browsers.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_browser_chrome_top_devices.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_browser_chrome_top_locations.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_browser_chrome_top_os.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_browser_chrome_top_pages.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_browser_chrome_top_sources.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_device_desktop_top_browsers.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_device_desktop_top_devices.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_device_desktop_top_locations.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_device_desktop_top_os.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_device_desktop_top_pages.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_device_desktop_top_sources.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_location_gb_top_browsers.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_location_gb_top_devices.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_location_gb_top_locations.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_location_gb_top_os.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_location_gb_top_pages.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_location_gb_top_sources.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_member_status_paid_top_browsers.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_member_status_paid_top_devices.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_member_status_paid_top_locations.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_member_status_paid_top_os.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_member_status_paid_top_pages.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_member_status_paid_top_sources.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_member_status_undefined_top_browsers.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_member_status_undefined_top_devices.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_member_status_undefined_top_locations.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_member_status_undefined_top_os.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_member_status_undefined_top_pages.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_member_status_undefined_top_sources.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_os_windows_top_browsers.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_os_windows_top_devices.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_os_windows_top_locations.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_os_windows_top_os.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_os_windows_top_pages.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_os_windows_top_sources.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_pathname_about_top_browsers.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_pathname_about_top_devices.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_pathname_about_top_locations.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_pathname_about_top_os.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_pathname_about_top_pages.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_source_bing_top_browsers.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_source_bing_top_pages.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_source_bing_top_sources.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_source_direct_browser_chrome_top_browsers.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_source_direct_browser_chrome_top_devices.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_source_direct_browser_chrome_top_locations.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_source_direct_browser_chrome_top_os.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_source_direct_browser_chrome_top_pages.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_source_direct_browser_chrome_top_sources.test.result (1 hunks)
  • ghost/web-analytics/tests/filter_source_direct_top_pages.test.result (1 hunks)
  • ghost/web-analytics/tests/timezone_top_browsers.test.result (1 hunks)
  • ghost/web-analytics/tests/timezone_top_devices.test.result (1 hunks)
  • ghost/web-analytics/tests/timezone_top_locations.test.result (1 hunks)
  • ghost/web-analytics/tests/timezone_top_os.test.result (1 hunks)
  • ghost/web-analytics/tests/timezone_top_pages.test.result (1 hunks)
  • ghost/web-analytics/tests/timezone_top_sources.test.result (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (4)
  • GitHub Check: Unit tests (Node 22.13.1)
  • GitHub Check: Unit tests (Node 20.11.1)
  • GitHub Check: Unit tests (Node 18.12.1)
  • GitHub Check: Tinybird Tests (Web Analytics)
🔇 Additional comments (70)
ghost/web-analytics/pipes/api_top_pages.pipe (1)

8-10: Confirmed removal of pageviews metric from query

The removal of the pageviews metric from this query aligns with the PR objective to streamline results and focus only on visits data. The query now correctly returns only pathname and unique session counts.

ghost/web-analytics/tests/filter_source_direct_browser_chrome_top_sources.test.result (1)

1-2: Successfully updated test result format

The test result file has been properly updated to remove the pageviews column, maintaining consistency with the changes made to the corresponding SQL queries. The data now correctly shows only source and visits.

ghost/web-analytics/tests/filter_source_direct_browser_chrome_top_os.test.result (1)

1-2: Correctly removed pageviews from test results

The test result format has been properly updated to include only the OS and visits columns, accurately reflecting the changes made to the data structure in the SQL queries.

ghost/web-analytics/tests/filter_source_direct_browser_chrome_top_devices.test.result (1)

1-2: Test result structure updated appropriately

The test result file has been correctly modified to include only device and visits data, maintaining consistency with the other changes in this PR that remove the unused pageviews metric.

ghost/web-analytics/tests/filter_browser_chrome_top_os.test.result (1)

1-3: The pageviews column has been correctly removed.

This change aligns with the PR objective to eliminate pageview results from pipes since they weren't being utilized. The test result file now properly reflects only the "os" and "visits" columns.

ghost/web-analytics/tests/filter_source_bing_top_browsers.test.result (1)

1-4: The pageviews column has been correctly removed.

This change aligns with the PR objective to eliminate pageview results from pipes since they weren't being utilized. The test result file now properly reflects only the "browser" and "visits" columns for both "chrome" and "ie" browsers.

ghost/web-analytics/tests/filter_os_windows_top_devices.test.result (1)

1-3: The pageviews column has been correctly removed.

This change aligns with the PR objective to eliminate pageview results from pipes since they weren't being utilized. The test result file now properly reflects only the "device" and "visits" columns.

ghost/web-analytics/tests/filter_os_windows_top_os.test.result (1)

1-3: The pageviews column has been correctly removed.

This change aligns with the PR objective to eliminate pageview results from pipes since they weren't being utilized. The test result file now properly reflects only the "os" and "visits" columns.

ghost/web-analytics/pipes/api_top_locations.pipe (1)

10-10: Appropriate removal of pageviews metric

This change aligns perfectly with the PR objectives to remove pageview results from pipes. The query now focuses solely on unique visits per location without the unused pageviews metric, which streamlines the results and reduces query complexity.

ghost/web-analytics/pipes/api_top_devices.pipe (1)

10-10: Consistent removal of pageviews metric

This change follows the same pattern as the other pipe files, removing the unused pageviews metric while preserving the essential visit data. The query now returns a more streamlined result set focused on device types and their unique session counts.

ghost/web-analytics/tests/all_top_browsers.test.result (1)

1-6: Test results properly updated to match code changes

The test result file has been correctly modified to reflect the removal of the pageviews column, maintaining consistency with the changes made to the SQL queries. The result now only includes the browser and visits columns, which matches the expected output format.

ghost/web-analytics/pipes/api_top_os.pipe (1)

10-10: Consistently implemented removal of pageviews metric

This change follows the same pattern as the other pipe files, removing the pageviews metric while maintaining the core functionality of counting unique session visits per operating system. The consistent implementation across different analytics dimensions ensures a cohesive approach to the codebase.

ghost/web-analytics/tests/filter_member_status_undefined_top_devices.test.result (1)

1-4: Column structure updated to reflect pageviews removal.

The test result file has been correctly updated to remove the "pageviews" column, aligning with the PR objective of eliminating pageview results from pipes. This matches the broader changes made to simplify queries by focusing only on visit data.

ghost/web-analytics/tests/filter_location_gb_top_locations.test.result (1)

1-3: Test result correctly simplified to track only visits.

This test result file has been appropriately modified to exclude the "pageviews" column, consistent with the PR's goal of eliminating pageview metrics as mentioned in the PR objectives (PROD-204).

ghost/web-analytics/tests/filter_member_status_undefined_top_os.test.result (1)

1-4: Operating system analytics simplified to visits-only metrics.

The test result has been properly updated to remove the "pageviews" column, keeping only the "os" and "visits" data. This change is consistent with the other test files and aligns with the PR objective to focus solely on visit data.

ghost/web-analytics/tests/filter_member_status_undefined_top_browsers.test.result (1)

1-5: Browser analytics updated to exclude pageviews.

The browser analytics test result now only contains "browser" and "visits" columns, correctly removing the "pageviews" data. This change is in line with the other modified files and supports the overall goal of streamlining the analytics results.

ghost/web-analytics/tests/filter_pathname_about_top_browsers.test.result (1)

1-6: Pageviews column successfully removed from test results

The test result file has been properly updated to exclude the pageviews column, now only containing browser names and visit counts. This change aligns well with the PR objective to remove pageview metrics that aren't being utilized in the current implementation.

ghost/web-analytics/tests/filter_os_windows_top_pages.test.result (1)

1-5: Pageviews column successfully removed from Windows OS test results

The test result file has been properly updated to include only pathname and visit count data, removing the pageviews column. This is consistent with the PR objective and maintains the essential metrics needed for analysis.

ghost/web-analytics/tests/filter_pathname_about_top_pages.test.result (1)

1-3: Pageviews column successfully removed from about pathname test results

The test result file has been properly simplified to only show pathname and visit count data, removing the unnecessary pageviews column as intended in the PR objectives.

ghost/web-analytics/tests/filter_source_direct_browser_chrome_top_pages.test.result (1)

1-5: Pageviews column successfully removed from filtered test results

The test result file has been correctly updated to only include pathname and visits data, removing the pageviews column. This change is consistent across all test result files and aligns with the PR goal of streamlining the results by focusing only on visit data.

ghost/web-analytics/tests/all_top_locations.test.result (1)

1-7: LGTM: Pageviews column successfully removed

The test result file has been properly updated to remove the pageviews column, keeping only the location and visits data. This change aligns with the PR objective of eliminating pageview results from pipes as mentioned in PROD-204.

ghost/web-analytics/tests/timezone_top_browsers.test.result (1)

1-6: LGTM: Pageviews column successfully removed

The browser analytics test result has been properly updated to include only the browser and visits columns, with the pageviews column removed. This is consistent with the PR objectives.

ghost/web-analytics/tests/filter_pathname_about_top_locations.test.result (1)

1-7: LGTM: Pageviews column successfully removed

The filtered pathname location analytics test result has been correctly updated to remove the pageviews column, focusing only on location and visits data. This maintains consistency with other test files and aligns with the PR goal.

ghost/web-analytics/tests/timezone_top_os.test.result (1)

1-4: LGTM: Pageviews column successfully removed

The operating system analytics test result has been correctly modified to remove the pageviews column, keeping only the os and visits data. This change is consistent with the PR objectives and the modifications in other test files.

ghost/web-analytics/tests/filter_member_status_paid_top_devices.test.result (1)

1-2: Changes look good!

The test result has been correctly updated to remove the "pageviews" column, now only showing "device" and "visits" data. This aligns with the PR objective to remove pageview results from pipes as mentioned in PROD-204.

ghost/web-analytics/tests/filter_source_direct_top_pages.test.result (1)

1-4: Changes look good!

The test result file has been properly updated to remove the "pageviews" column, now only containing "pathname" and "visits" data. This is consistent with the changes made in other files and aligns with the PR objective to streamline results by removing unused pageview data.

ghost/web-analytics/tests/filter_member_status_paid_top_browsers.test.result (1)

1-4: Changes look good!

The test result has been correctly updated to remove the "pageviews" column, now only showing "browser" and "visits" data. This change maintains consistency with the other modified files and supports the PR goal of simplifying query results.

ghost/web-analytics/tests/filter_browser_chrome_top_browsers.test.result (1)

1-2: Changes look good!

The test result has been correctly updated to remove the "pageviews" column, now only showing "browser" and "visits" data. This change is aligned with the PR objective to streamline the results by removing unused pageview metrics.

ghost/web-analytics/tests/filter_location_gb_top_os.test.result (1)

1-4: Changes aligned with PR objective to remove pageviews.

The deletion of the "pageviews" column from this test result file correctly implements the PR goal to eliminate pageview data from pipe results. This simplification to focus only on "os" and "visits" metrics streamlines the output as intended.

ghost/web-analytics/tests/timezone_top_devices.test.result (1)

1-3: Successfully removed pageviews column.

The test result file has been updated correctly to remove the "pageviews" column, retaining only the "device" and "visits" metrics. This change is consistent with the PR objective to streamline data by eliminating unused pageview metrics.

ghost/web-analytics/tests/filter_member_status_paid_top_sources.test.result (1)

1-6: Pageviews column successfully removed.

The test result file has been correctly updated to remove the "pageviews" column while maintaining the "source" and "visits" metrics. This change aligns with the PR objective to eliminate unused pageview data and simplify the output structure.

ghost/web-analytics/tests/filter_source_direct_browser_chrome_top_browsers.test.result (1)

1-3: Successfully simplified output by removing pageviews.

The test result file has been properly updated to exclude the "pageviews" column, now only showing "browser" and "visits" metrics. This change successfully implements the PR objective to streamline results by removing unused pageview data.

ghost/web-analytics/tests/filter_member_status_undefined_top_sources.test.result (1)

1-8: Confirmed removal of pageviews column from test result file.

The test result has been correctly updated to remove the pageviews column, keeping only source and visits data as specified in the PR objectives. This aligns with the broader goal of streamlining analytics data to include only visit metrics that are currently being utilized.

ghost/web-analytics/tests/filter_member_status_paid_top_locations.test.result (1)

1-6: Properly removed pageviews column from locations test result.

The test result file has been appropriately updated to include only location and visits columns, removing the pageviews data that's no longer needed. This change is consistent with the PR objectives to simplify the query outputs.

ghost/web-analytics/tests/all_top_os.test.result (1)

1-5: Successfully removed pageviews from OS test result.

The operating system test result has been correctly updated to only include the os and visits columns, eliminating the unnecessary pageviews data as intended in the PR.

ghost/web-analytics/tests/filter_device_desktop_top_browsers.test.result (1)

1-6: Browser test result properly updated to remove pageviews.

The test result file for browsers has been correctly modified to contain only the browser and visits columns, successfully removing the pageviews data as specified in the PR objectives.

ghost/web-analytics/tests/filter_device_desktop_top_devices.test.result (1)

1-2: Change looks good!

Successfully removed the "pageviews" column from the test result, keeping only "device" and "visits" columns as intended.

ghost/web-analytics/pipes/api_top_browsers.pipe (1)

10-10: SQL query appropriately modified

Successfully removed the pageviews metric from the query while preserving all filtering capabilities and the visits metric. Query syntax is valid and will now output only the required data.

ghost/web-analytics/tests/filter_source_bing_top_sources.test.result (1)

1-2: Change looks good!

Successfully removed the "pageviews" column from the test result, keeping only "source" and "visits" columns as intended.

ghost/web-analytics/tests/all_top_pages.test.result (1)

1-4: Change looks good!

Successfully removed the "pageviews" column from the test result, keeping only "pathname" and "visits" columns as intended. All data rows have been updated to match the new structure.

ghost/web-analytics/scripts/gen_test_results.sh (1)

14-14: Added environment variable to suppress TinyBird version warnings

This change adds a new environment variable TB_VERSION_WARNING=0 which likely suppresses version warnings from TinyBird. The change is appropriately placed after the existing TB_VERSION export.

ghost/web-analytics/tests/timezone_top_sources.test.result (1)

1-10: Removed pageviews column from source analytics data

The pageviews column has been successfully removed from the timezone_top_sources test result, leaving only source and visits data. This change aligns with the PR objective of removing pageview metrics from the analytics pipes.

ghost/web-analytics/tests/filter_browser_chrome_top_locations.test.result (1)

1-5: Removed pageviews column from location analytics data

The pageviews column has been successfully removed from the Chrome browser location filter test result, leaving only location and visits data. This change is consistent with the PR's goal of removing pageview metrics from analytics results.

ghost/web-analytics/tests/filter_location_gb_top_browsers.test.result (1)

1-6: Removed pageviews column from browser analytics data

The pageviews column has been successfully removed from the GB location browser filter test result, leaving only browser and visits data. This change aligns with the PR objective of streamlining analytics to focus only on visit data.

ghost/web-analytics/tests/filter_location_gb_top_devices.test.result (1)

1-3: Pageviews column successfully removed from test result

The removal of the pageviews column from this test result file aligns with the PR objective of removing pageviews from pipe results, as they're not being utilized in the current implementation.

ghost/web-analytics/tests/filter_source_direct_browser_chrome_top_locations.test.result (1)

1-3: Pageviews column successfully removed from test result

The removal of the pageviews column from the location test results is consistent with the overall PR objective of streamlining the data to focus only on visit counts rather than pageviews.

ghost/web-analytics/tests/filter_browser_chrome_top_pages.test.result (1)

1-4: Pageviews column successfully removed from pages test result

The modification to remove the pageviews column from the pages test results correctly maintains only the pathname and visits columns, which aligns with the PR objective stated in PROD-204.

ghost/web-analytics/pipes/api_top_sources.pipe (1)

9-9: SQL query updated to only count visits

The removal of the pageviews aggregation from the SQL query correctly simplifies the output to only include visits counts. The query logic and ordering remain appropriate with visits as the primary metric.

ghost/web-analytics/tests/filter_os_windows_top_sources.test.result (1)

1-10: Verified removal of pageviews column.

The test result file has been properly updated to remove the pageviews column, retaining only the source and visits data. This aligns with the PR objective to simplify the analytics results by focusing solely on visit metrics.

ghost/web-analytics/tests/filter_device_desktop_top_sources.test.result (1)

1-10: Confirmed consistent format for desktop sources.

The test result has been appropriately updated to remove the pageviews column, maintaining consistency with the other updated test files and aligning with the PR objective to streamline analytics data by focusing on visits only.

ghost/web-analytics/tests/filter_pathname_about_top_devices.test.result (1)

1-3: Properly simplified device analytics test result.

The pageviews column has been successfully removed from this test result file, leaving only the device type and visit count. This change is consistent with the PR's goal of removing unused pageview metrics.

ghost/web-analytics/tests/filter_member_status_paid_top_pages.test.result (1)

1-5: Correctly updated paid member page analytics test.

The pageviews column has been properly removed from this test result file while preserving the pathname and visits data. This change is in line with the PR objective to eliminate pageview metrics that weren't being utilized.

ghost/web-analytics/tests/filter_member_status_undefined_top_locations.test.result (1)

1-4: Consistent removal of pageviews column from test results

The change removes the pageviews column from the test results, leaving only location and visits data. This aligns with the PR objective to eliminate pageview results from pipes, focusing solely on visit data.

ghost/web-analytics/tests/filter_os_windows_top_browsers.test.result (1)

1-5: LGTM - Simplified data structure removing pageviews

The change successfully removes the pageviews column from browser test results while preserving the visit metrics. This is consistent with the other changes in this PR.

ghost/web-analytics/tests/timezone_top_locations.test.result (1)

1-7: Removed pageviews column as intended

The modification correctly removes the pageviews column from the timezone location results while maintaining the location names and visit counts, which aligns with the PR's objective of streamlining results to only include visit data.

ghost/web-analytics/tests/filter_member_status_paid_top_os.test.result (1)

1-3: Successfully simplified OS test results

The change properly removes the pageviews column from the operating system test results. This change is consistent with the overall PR goal of removing the unused pageviews metric from pipe results.

ghost/web-analytics/tests/filter_source_bing_top_pages.test.result (1)

1-5: Confirmed removal of pageviews column

The file now only contains "pathname" and "visits" columns, aligning with the PR objective to remove pageview results that weren't being utilized. This simplification should make the data structure cleaner and more focused on the relevant metrics needed.

ghost/web-analytics/tests/all_top_sources.test.result (1)

1-11: Successfully removed pageviews column

The test result file has been appropriately updated to include only "source" and "visits" columns, removing the unused "pageviews" metric. This change is consistent with the PR objectives and follows the same pattern as other similar files.

ghost/web-analytics/tests/filter_browser_chrome_top_sources.test.result (1)

1-6: Pageviews column removed as intended

The file structure has been simplified to only track "source" and "visits", removing the "pageviews" column. This matches the pattern of changes across other test result files and aligns with the PR goal of streamlining the results by removing unused metrics.

ghost/web-analytics/tests/filter_device_desktop_top_os.test.result (1)

1-4: Successfully removed pageviews metric

The test result file now shows only "os" and "visits" columns, with the "pageviews" column properly removed. This change is consistent with the overall PR objective to simplify queries by removing unused metrics.

ghost/web-analytics/tests/filter_member_status_undefined_top_pages.test.result (1)

1-5: Pageviews column has been successfully removed

The test result file has been updated to remove the "pageviews" column, keeping only "pathname" and "visits" as specified in the PR objectives. This change aligns with the goal of streamlining the results and focusing only on visit data.

ghost/web-analytics/tests/filter_location_gb_top_sources.test.result (1)

1-8: Pageviews column successfully removed from source data

The test result file has been appropriately modified to remove the "pageviews" column, retaining only the "source" and "visits" data. This change is consistent with the PR objective of eliminating pageview results from pipes.

ghost/web-analytics/tests/filter_device_desktop_top_pages.test.result (1)

1-5: Pageviews column correctly removed from desktop device results

The test result file has been properly updated to remove the "pageviews" column, keeping only "pathname" and "visits" columns. This change maintains consistency with other modified files and fulfills the PR requirements.

ghost/web-analytics/tests/timezone_top_pages.test.result (1)

1-5: Pageviews column properly removed from timezone results

The test result file has been correctly modified to remove the "pageviews" column, retaining only "pathname" and "visits" data. This change is aligned with the PR objectives and consistent with the modifications made to other test result files.

ghost/web-analytics/tests/all_top_devices.test.result (1)

1-3: Confirmed removal of pageviews column from device results

The changes successfully remove the pageviews column from the top devices test result file, leaving only device names and visit counts. This aligns with the PR objective to eliminate pageview results from pipes, as mentioned in PROD-204.

ghost/web-analytics/tests/filter_pathname_about_top_os.test.result (1)

1-3: Pageviews column successfully removed from OS results

The changes correctly remove the pageviews metric from the pathname-filtered OS results test file, retaining only OS type and visit count information. This is consistent with the PR objective to streamline results by focusing only on visit data.

ghost/web-analytics/tests/filter_browser_chrome_top_devices.test.result (1)

1-2: Pageviews metric correctly removed from filtered device results

The removal of the pageviews column from this browser-filtered device results test file is correct and aligns with the PR goal of simplifying the query results to only include visit data.

ghost/web-analytics/tests/filter_os_windows_top_locations.test.result (1)

1-6: Pageviews data successfully removed from location results

The changes correctly eliminate the pageviews column from this OS-filtered location results test file. All location entries now only display visit counts, which matches the PR's objective to remove unused pageview metrics from the pipe results.

ghost/web-analytics/tests/filter_location_gb_top_pages.test.result (1)

1-5: Column removal aligns with PR objectives.

The removal of the "pageviews" column from this test result file is consistent with the PR's goal of eliminating pageview metrics from the system. The data structure has been simplified to only include pathname and visit counts, which streamlines the test results.

ghost/web-analytics/tests/filter_device_desktop_top_locations.test.result (1)

1-7: Column removal aligns with PR objectives.

The removal of the "pageviews" column from this test result file is consistent with the PR's goal of eliminating pageview metrics from the system. The data structure has been simplified to only include location and visit counts, which streamlines the test results.

✨ Finishing Touches
  • 📝 Generate Docstrings

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.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai plan to trigger planning for file edits and PR creation.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

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.

1 participant