Skip to content

feat(api): extend counts endpoint with active/inactive counts and update_details#775

Merged
JosephKav merged 1 commit intomasterfrom
617-feat-update-counts-api-endpoint-or-add-a-new-one
Dec 28, 2025
Merged

feat(api): extend counts endpoint with active/inactive counts and update_details#775
JosephKav merged 1 commit intomasterfrom
617-feat-update-counts-api-endpoint-or-add-a-new-one

Conversation

@JosephKav
Copy link
Copy Markdown
Collaborator

@JosephKav JosephKav commented Dec 28, 2025

/api/v1/counts

{
  "service_count": 44,
  "service_count_active": 41,
  "service_count_inactive": 3,
  "updates_available": 2,
  "updates_skipped": 1,
  "update_details": [
    {
      "service_name": "App1",
      "deployed_version": "1.32.5.7349",
      "latest_version": "1.33.0.7405",
      "last_checked": "2025-07-25T10:44:00Z",
      "auto_approve": false,
      "approved": true,
      "skipped": false
    },
    {
      "service_name": "App2",
      "latest_version": "1.21.0",
      "deployed_version": "1.20.4",
      "last_checked": "2025-07-25T10:44:00Z",
      "auto_approve": false,
      "approved": false,
      "skipped": true
    },
    {
      "service_name": "App2",
      "deployed_version": "1.20.4",
      "latest_version": "1.21.0",
      "last_checked": "2025-07-25T10:44:00Z",
      "auto_approve": false,
      "approved": false,
      "skipped": false
    }
  ]
}

How does this format look @samcro1967? Minor renames to your suggestion (and add skipped to update_details)

closes #617

@JosephKav JosephKav added enhancement New feature or request go Pull requests that update Go code labels Dec 28, 2025
@JosephKav JosephKav linked an issue Dec 28, 2025 that may be closed by this pull request
@JosephKav JosephKav marked this pull request as ready for review December 28, 2025 00:25
@codecov
Copy link
Copy Markdown

codecov bot commented Dec 28, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.96%. Comparing base (d459b67) to head (514b7ce).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #775      +/-   ##
==========================================
+ Coverage   98.96%   98.96%   +0.01%     
==========================================
  Files         137      137              
  Lines        9193     9218      +25     
==========================================
+ Hits         9097     9122      +25     
  Misses         73       73              
  Partials       23       23              

☔ 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.

@JosephKav JosephKav force-pushed the 617-feat-update-counts-api-endpoint-or-add-a-new-one branch from c466e03 to dd59135 Compare December 28, 2025 00:37
@JosephKav JosephKav force-pushed the 617-feat-update-counts-api-endpoint-or-add-a-new-one branch from dd59135 to 514b7ce Compare December 28, 2025 00:45
@samcro1967
Copy link
Copy Markdown

Looks really good. Appreciate you adding this.

@JosephKav JosephKav merged commit 7c11de5 into master Dec 28, 2025
7 of 8 checks passed
@JosephKav JosephKav deleted the 617-feat-update-counts-api-endpoint-or-add-a-new-one branch December 28, 2025 14:25
@Argus-Bot Argus-Bot mentioned this pull request Dec 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Update counts api endpoint or add a new one

2 participants