Skip to content

Conversation

sureshanaparti
Copy link
Contributor

Description

This PR fixes duplicate quickview (for provider column) in backup repository.

Quickview for provider column is enabled for OAuth providers only, here: https://github.com/apache/cloudstack/pull/7996/files#diff-fa50e9f30df1f49ab46e9e30d15009ff36b166ce26cb289a8ec75a4f60873d2b

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):

How Has This Been Tested?

Verified quick view for Backup Repository and OAuth Configuration sections in UI.

Backup Repository UI, Before Fix:

BackupRepository_QuickView_Before

Backup Repository UI, After Fix:

BackupRepository_QuickView_After

OAuth Configuration UI, No change:

OAuthConfiguration_QuickView

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

@sureshanaparti
Copy link
Contributor Author

@blueorangutan ui

@blueorangutan
Copy link

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

@codecov
Copy link

codecov bot commented Oct 16, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 17.56%. Comparing base (4b74a99) to head (d0a5207).

Additional details and impacted files
@@            Coverage Diff            @@
##               main   #11849   +/-   ##
=========================================
  Coverage     17.56%   17.56%           
  Complexity    15533    15533           
=========================================
  Files          5909     5909           
  Lines        529013   529013           
  Branches      64605    64605           
=========================================
+ Hits          92911    92913    +2     
+ Misses       425655   425652    -3     
- Partials      10447    10448    +1     
Flag Coverage Δ
uitests 3.58% <ø> (ø)
unittests 18.63% <ø> (+<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.

@blueorangutan
Copy link

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

@sureshanaparti
Copy link
Contributor Author

@DaanHoogland that will enable quick view only in oauthsetting, for provider column. all other views have name column and route is not oauthsetting.

name column is the usual quick view column, only exception is provider column (used in oauthsetting for quick view)

@sureshanaparti sureshanaparti force-pushed the ui-backup-repo-quickview-fix branch from 235d726 to 8e0dc34 Compare October 17, 2025 04:02
@DaanHoogland
Copy link
Contributor

@DaanHoogland that will enable quick view only in oauthsetting, for provider column. all other views have name column and route is not oauthsetting.

name column is the usual quick view column, only exception is provider column (used in oauthsetting for quick view)

Thanks @sureshanaparti , I had found my erroneous way of thinking and deleted my comment.

Copy link
Collaborator

@abh1sar abh1sar left a comment

Choose a reason for hiding this comment

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

Hi Suresh,
Please see if the suggested change make sense.
The idea is to show the quick view only on the first column if it is one of [name, provider].
I think this is consistent with the existing UI behaviour and the code seems more maintainable.

Image Image

:actions="actions"
:resource="record"
:enabled="quickViewEnabled() && actions.length > 0 && columns && ['name', 'provider'].includes(columns[0].dataIndex)"
:enabled="quickViewEnabled() && actions.length > 0 && columns && (columns[0].dataIndex === 'name' || (columns[0].dataIndex === 'provider' && ['oauthsetting'].includes($route.path.split('/')[1])))"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
:enabled="quickViewEnabled() && actions.length > 0 && columns && (columns[0].dataIndex === 'name' || (columns[0].dataIndex === 'provider' && ['oauthsetting'].includes($route.path.split('/')[1])))"
:enabled="quickViewEnabled() && actions.length > 0 && column.key === columns[0].dataIndex"

</template>
<template #bodyCell="{ column, text, record }">
<template v-if="['name', 'provider'].includes(column.key) ">
<template v-if="column.key === 'name' || (column.key === 'provider' && ['oauthsetting'].includes($route.path.split('/')[1]))">
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
<template v-if="column.key === 'name' || (column.key === 'provider' && ['oauthsetting'].includes($route.path.split('/')[1]))">
<template v-if="['name', 'provider'].includes(column.key) ">

@sureshanaparti sureshanaparti force-pushed the ui-backup-repo-quickview-fix branch from 8e0dc34 to d0a5207 Compare October 23, 2025 05:39
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.

4 participants