Skip to content

Conversation

shwstppr
Copy link
Contributor

@shwstppr shwstppr commented Sep 30, 2025

Description

This change adds a lightweight “advisories” mechanism to section configs and ships the first advisory to help operators satisfy some of the CKS prerequisites.
The functionality can be disabled by adding advisoriesDisabled as true in config.json.

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

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

ui-feature-advisory.mp4

How Has This Been Tested?

How did you try to break this feature and the system with this change?

This change adds a lightweight “advisories” mechanism to section configs and ships the first advisory to help operators satisfy some of the CKS prerequisites.

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Copy link

codecov bot commented Sep 30, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 17.50%. Comparing base (2c1aad4) to head (cc644eb).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #11763      +/-   ##
============================================
- Coverage     17.50%   17.50%   -0.01%     
+ Complexity    15427    15426       -1     
============================================
  Files          5894     5896       +2     
  Lines        526845   527030     +185     
  Branches      64334    64356      +22     
============================================
+ Hits          92232    92245      +13     
- Misses       424236   424408     +172     
  Partials      10377    10377              
Flag Coverage Δ
uitests 3.60% <ø> (-0.01%) ⬇️
unittests 18.56% <ø> (+<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.

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
@apache apache deleted a comment from blueorangutan Sep 30, 2025
@apache apache deleted a comment from blueorangutan Sep 30, 2025
@shwstppr
Copy link
Contributor Author

@blueorangutan ui

@blueorangutan
Copy link

@shwstppr a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
@blueorangutan
Copy link

UI build: ✔️
Live QA URL: https://qa.cloudstack.cloud/simulator/pr/11763 (QA-JID-769)

@shwstppr shwstppr requested a review from Copilot October 1, 2025 07:25
Copy link
Contributor

@Copilot 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

This PR introduces a lightweight "advisories" mechanism to section configurations that displays warnings and quick-fix actions to help operators satisfy CKS (CloudStack Kubernetes Service) prerequisites. The feature adds advisory alerts with actionable buttons to guide users through common configuration issues.

  • Adds advisory system with condition evaluation and quick-fix actions
  • Implements three CKS-specific advisories for compute offerings, Kubernetes versions, and endpoint URL configuration
  • Provides dismissible alerts with primary/secondary action buttons

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
ui/src/views/AutogenView.vue Integrates AdvisoriesView component into the main view
ui/src/config/section/compute.js Adds three CKS advisories with conditions and fix actions
ui/src/config/router.js Extends router metadata to include advisories configuration
ui/src/components/view/AdvisoriesView.vue Core advisory component with alert rendering and action handling
ui/src/api/index.js Adds getBaseUrl utility function
ui/public/locales/en.json Adds localization strings for advisory messages and actions
Comments suppressed due to low confidence (1)

ui/src/components/view/AdvisoriesView.vue:1

  • Use 'const' instead of 'var' for variable declaration to follow modern JavaScript best practices and maintain consistency with the rest of the codebase.
// Licensed to the Apache Software Foundation (ASF) under one

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

shwstppr and others added 4 commits October 1, 2025 13:10
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
@DaanHoogland
Copy link
Contributor

cool idea!

@shwstppr
Copy link
Contributor Author

shwstppr commented Oct 3, 2025

@blueorangutan ui

@blueorangutan
Copy link

@shwstppr a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

@blueorangutan
Copy link

UI build: ✔️
Live QA URL: https://qa.cloudstack.cloud/simulator/pr/11763 (QA-JID-773)

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.

3 participants