Skip to content

Hide inactive offerings from User type accounts#12865

Open
erikbocks wants to merge 3 commits intoapache:mainfrom
scclouds:change-inactive-offerings-view-normal-user
Open

Hide inactive offerings from User type accounts#12865
erikbocks wants to merge 3 commits intoapache:mainfrom
scclouds:change-inactive-offerings-view-normal-user

Conversation

@erikbocks
Copy link
Collaborator

Description

This PR changes the compute offerings tab behavior to prevent the listing of inactive offerings to User type accounts.

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • Build/CI
  • Test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Screenshots (if appropriate):

How Has This Been Tested?

Logged in as the ROOT admin, I validated that the compute offerings' listing displayed the filter button, and allowed the listing of Active and Inactive offerings. Then, I logged in with a User type account, and validated that the state filter button was hidden, and only Active offerings were listed.

@codecov
Copy link

codecov bot commented Mar 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 18.02%. Comparing base (b744824) to head (9055136).

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #12865      +/-   ##
============================================
- Coverage     18.02%   18.02%   -0.01%     
- Complexity    16450    16451       +1     
============================================
  Files          5968     5968              
  Lines        537086   537090       +4     
  Branches      65961    65962       +1     
============================================
- Hits          96819    96818       -1     
- Misses       429347   429350       +3     
- Partials      10920    10922       +2     
Flag Coverage Δ
uitests 3.53% <ø> (-0.01%) ⬇️
unittests 19.19% <ø> (-0.01%) ⬇️

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
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the UI “Compute Offerings” listing configuration so User accounts don’t see inactive offerings and don’t get a state filter dropdown, while Admin/DomainAdmin behavior remains unchanged.

Changes:

  • For computeoffering, default API params now force state=Active for non-admin roles.
  • computeoffering filter options are now role-aware (state filter hidden for Users).
  • computeoffering table columns were adjusted (GPU column removed).

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

@erikbocks erikbocks force-pushed the change-inactive-offerings-view-normal-user branch from b01ae39 to 9055136 Compare March 20, 2026 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants