Skip to content

fix: Fix continuous event analytics export (2.40)#23860

Merged
jason-p-pickering merged 1 commit into
2.40from
fix/event-analytics-continuous_2.40
May 11, 2026
Merged

fix: Fix continuous event analytics export (2.40)#23860
jason-p-pickering merged 1 commit into
2.40from
fix/event-analytics-continuous_2.40

Conversation

@jason-p-pickering

Copy link
Copy Markdown
Contributor

Fix: Fix skipPrograms filter inversion in continuous event analytics export

Fixes a bug in getRegularAnalyticsTables where the skipPrograms ternary was inverted: when a skip-program list was provided, all programs were returned unfiltered; when no skip list was set, it attempted to filter against an empty set.

Note: scope differs from the equivalent fix in 2.41+

The 2.41/2.42/2.43/master fix addressed two bugs:

  1. The skipPrograms ternary inversion (this PR)
  2. removeUpdatedData deleting from the staging table instead of the live table

Bug 2 does not exist in 2.40. The 2.40 AnalyticsTable model has separate getTableName() (live) and getTempTableName() (staging) methods, and removeUpdatedData correctly used getTableName(). The staging/live name conflation was introduced when the table model was refactored in 2.41 and the bug has existed there ever since.

Testing: Added a unit test confirming that programs listed in skipPrograms are excluded from the regular analytics table build.

* Invert skipPrograms ternary in getRegularAnalyticsTables (was
  returning all programs when skip list was set, filtering when not)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jason-p-pickering jason-p-pickering changed the title fix: Fix continuous event analytics export fix: Fix continuous event analytics export (2.40) May 9, 2026
@jason-p-pickering jason-p-pickering added the run-api-analytics-tests Enables analytics e2e tests label May 9, 2026
@sonarqubecloud

sonarqubecloud Bot commented May 9, 2026

Copy link
Copy Markdown

@jason-p-pickering
jason-p-pickering merged commit 32b6b69 into 2.40 May 11, 2026
17 checks passed
@jason-p-pickering
jason-p-pickering deleted the fix/event-analytics-continuous_2.40 branch May 11, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-api-analytics-tests Enables analytics e2e tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants