Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed bug that would create a request to /v2/logs endpoint w/o logs #77

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

ArielDemarco
Copy link
Collaborator

Overview

Today when one or more logs are added, a batch is created. When that batch is closed at the end of the session, another batch without logs is generated. If the session ends without any logs being added to this new batch, it is being sent to the backend with no logs.
This PR fixes this issue and prevents backend calls when an empty batch is closed.

@ArielDemarco ArielDemarco requested a review from a team as a code owner October 1, 2024 18:26
Copy link

github-actions bot commented Oct 1, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

@embrace-io embrace-io deleted a comment from notion-workspace bot Oct 1, 2024
Copy link

github-actions bot commented Oct 1, 2024

Warnings
⚠️ No CHANGELOG entry added.

Generated by 🚫 Danger Swift against 905e622

Copy link

codecov bot commented Oct 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.93%. Comparing base (fe3675e) to head (905e622).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main      #77   +/-   ##
=======================================
  Coverage   91.93%   91.93%           
=======================================
  Files         400      400           
  Lines       26024    26029    +5     
=======================================
+ Hits        23924    23930    +6     
+ Misses       2100     2099    -1     
Files with missing lines Coverage Δ
...rces/EmbraceCore/Internal/Logs/LogController.swift 93.12% <100.00%> (ø)
...ceCoreTests/Internal/Logs/LogControllerTests.swift 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

@NachoEmbrace NachoEmbrace merged commit c0f2305 into main Oct 2, 2024
9 of 10 checks passed
@NachoEmbrace NachoEmbrace deleted the fix-sending-empty-logs branch October 2, 2024 15:01
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.

3 participants