8000 fix(analytics): return all batch data for requested flags by erka · Pull Request #4756 · flipt-io/flipt · GitHub
[go: up one dir, main page]

Skip to content

fix(analytics): return all batch data for requested flags#4756

Merged
erka merged 2 commits intov2from
rd/v2/ch-batch
Sep 23, 2025
Merged

fix(analytics): return all batch data for requested flags#4756
erka merged 2 commits intov2from
rd/v2/ch-batch

Conversation

@erka
Copy link
Contributor
@erka erka commented Sep 23, 2025

This pull request makes a minor adjustment to the logic for tracking timestamps in the GetBatchFlagEvaluationsCount method. The change moves the line that appends a timestamp to the timestamps map outside of a conditional block, ensuring that every timestamp is appended for each flag key, regardless of whether it is already present in orderedTimestamps.

Currently the batch analytics returns only data for one flag.

Currently the batch analytics returns only data for one flag.

Signed-off-by: Roman Dmytrenko <rdmytrenko@gmail.com>
@erka erka marked this pull request as ready for review September 23, 2025 12:40
@erka erka requested a review from a team as a code owner September 23, 2025 12:40
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Sep 23, 2025
@erka erka added v2 Flipt v2 and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Sep 23, 2025
@dosubot
Copy link
dosubot bot commented Sep 23, 2025

Related Documentation

Checked 3 published document(s). No updates required.

You have 3 draft document(s). Publish docs to keep them always up-to-date

How did I do? Any feedback?  Join Discord

@codecov
Copy link
codecov bot commented Sep 23, 2025

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 62.64%. Comparing base (5b43a4a) to head (30ec9a7).
⚠️ Report is 1 commits behind head on v2.

Files with missing lines Patch % Lines
internal/server/analytics/clickhouse/client.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##               v2    #4756   +/-   ##
=======================================
  Coverage   62.64%   62.64%           
=======================================
  Files         132      132           
  Lines       15531    15531           
=======================================
  Hits         9730     9730           
  Misses       5115     5115           
  Partials      686      686           
Flag Coverage Δ
integrationtests 36.34% <0.00%> (+0.01%) ⬆️
unittests 52.76% <0.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Collaborator
@markphelps markphelps left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch!

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Sep 23, 2025
@erka erka merged commit 9d5ed92 into v2 Sep 23, 2025
41 of 43 checks passed
@erka erka deleted the rd/v2/ch-batch branch September 23, 2025 16:04
@github-project-automation github-project-automation bot moved this to Done in Flipt V2 Sep 23, 2025
@dosubot
Copy link
dosubot bot commented Sep 23, 2025

Documentation Updates

Checked 3 published document(s). No updates required.

You have 3 draft document(s). Publish docs to keep them always up-to-date

How did I do? Any feedback?  Join Discord

ptejasvini pushed a commit to ptejasvini/flipt that referenced this pull request Oct 3, 2025
)

Currently the batch analytics returns only data for one flag for clickhouse.

Signed-off-by: tejasvini1 <33099251+ptejasvini@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files. v2 Flipt v2

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants

0