Skip to content

Activity bounded context: Complete read operations - #38555

Merged
getvictor merged 28 commits into
mainfrom
victor/38534-poc
Feb 9, 2026
Merged

Activity bounded context: Complete read operations#38555
getvictor merged 28 commits into
mainfrom
victor/38534-poc

Conversation

@getvictor

@getvictor getvictor commented Jan 20, 2026

Copy link
Copy Markdown
Member

Related issue: Resolves #38534

moved /api/_version_/fleet/hosts/{id:[0-9]+}/activities endpoint and MarkActivitiesAsStreamed to activity bounded context

Checklist for submitter

  • Changes file added for user-visible changes in changes/, orbit/changes/ or ee/fleetd-chrome/changes.

Testing

Summary by CodeRabbit

  • New Features

    • Added new endpoint to retrieve host-specific past activities with pagination metadata.
  • Refactor

    • Refactored activity service architecture and authorization layer to improve data provider integration and activity streaming capabilities.

@codecov

codecov Bot commented Jan 20, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 84.26966% with 28 lines in your changes missing coverage. Please review.
✅ Project coverage is 64.39%. Comparing base (657e815) to head (7729cb9).
⚠️ Report is 110 commits behind head on main.

Files with missing lines Patch % Lines
server/activity/internal/service/service.go 84.41% 6 Missing and 6 partials ⚠️
server/activity/internal/mysql/activity.go 81.81% 4 Missing and 4 partials ⚠️
cmd/fleet/cron.go 0.00% 2 Missing ⚠️
cmd/fleet/serve.go 0.00% 2 Missing ⚠️
server/acl/activityacl/fleet_adapter.go 77.77% 1 Missing and 1 partial ⚠️
server/datastore/mysql/testing_utils.go 77.77% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #38555      +/-   ##
==========================================
+ Coverage   64.35%   64.39%   +0.03%     
==========================================
  Files        2397     2398       +1     
  Lines      187216   187404     +188     
  Branches     8423     8559     +136     
==========================================
+ Hits       120489   120672     +183     
  Misses      55817    55817              
- Partials    10910    10915       +5     
Flag Coverage Δ
backend 65.93% <84.26%> (+0.03%) ⬆️

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.

Resolve merge conflicts:
- Keep branch's StreamActivities approach instead of main's cronActivitiesStreaming
- Keep branch's HostProvider and GetHostLite additions to activity service
- Remove main's MarkActivitiesAsStreamed from fleet.Datastore (now handled by activity service)
- Remove main's testListHostPastActivities and cronActivitiesStreaming tests (not applicable to branch approach)
@getvictor

Copy link
Copy Markdown
Member Author

@coderabbitai full review

@getvictor getvictor changed the title [POC] Activity bounded context: Complete read operations Activity bounded context: Complete read operations Feb 3, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 35 out of 35 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@getvictor
getvictor marked this pull request as ready for review February 5, 2026 20:53
@getvictor
getvictor requested a review from a team as a code owner February 5, 2026 20:53

@JordanMontgomery JordanMontgomery left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Changes look good to me

@getvictor
getvictor merged commit 61f635d into main Feb 9, 2026
62 of 69 checks passed
@getvictor
getvictor deleted the victor/38534-poc branch February 9, 2026 21:29
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.

Activity bounded context: Complete read operations

5 participants