Skip to content

ui: don't skip if dataview has multiple items in response#7947

Merged
weizhouapache merged 1 commit into
apache:4.18from
shapeblue:ui-multi-zone-templates
Sep 6, 2023
Merged

ui: don't skip if dataview has multiple items in response#7947
weizhouapache merged 1 commit into
apache:4.18from
shapeblue:ui-multi-zone-templates

Conversation

@yadvr

@yadvr yadvr commented Sep 6, 2023

Copy link
Copy Markdown
Member

This would fix the case of multiple items return in API response for a resource such as a template or ISO in case of multi-zone env.

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)

This would fix the case of multiple items return in API response for a
resource such as a template or ISO in case of multi-zone env.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
@yadvr

yadvr commented Sep 6, 2023

Copy link
Copy Markdown
Member Author

@blueorangutan ui

@blueorangutan

Copy link
Copy Markdown

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

@weizhouapache weizhouapache 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.

Verified OK on an environment with 2 zones

@nvazquez

nvazquez commented Sep 6, 2023

Copy link
Copy Markdown
Contributor

@rohityadavcloud could this fix cause regressions on PR #7846 which introduced the check?

@yadvr

yadvr commented Sep 6, 2023

Copy link
Copy Markdown
Member Author

@nvazquez yes we need to regression test, but I think this code wasn't that useful in the first place; was put in as an additional check. We should check for #7846

@blueorangutan

Copy link
Copy Markdown

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

@shwstppr shwstppr 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.

code lgtm

@yadvr

yadvr commented Sep 6, 2023

Copy link
Copy Markdown
Member Author

I've tested for #7846 and can't reproduce the issue with this fix, I think this PR should address @rajujith 's issue and not cause further regression. Thank @rajujith @weizhouapache for reporting.
/cc @weizhouapache @nvazquez

@yadvr yadvr added the Severity:Critical Critical bug label Sep 6, 2023
@yadvr

yadvr commented Sep 6, 2023

Copy link
Copy Markdown
Member Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@rohityadavcloud a [SF] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@nvazquez nvazquez 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.

Thanks @rohityadavcloud - LGTM

@codecov

codecov Bot commented Sep 6, 2023

Copy link
Copy Markdown

Codecov Report

Merging #7947 (b70641c) into 4.18 (57c61fb) will decrease coverage by 0.01%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##               4.18    #7947      +/-   ##
============================================
- Coverage     13.06%   13.06%   -0.01%     
+ Complexity     9097     9096       -1     
============================================
  Files          2720     2720              
  Lines        257465   257465              
  Branches      40146    40146              
============================================
- Hits          33643    33634       -9     
- Misses       219594   219604      +10     
+ Partials       4228     4227       -1     

see 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6989

@weizhouapache

Copy link
Copy Markdown
Member

Reproduced the issue and verified it is fixed by this PR.

Without this PR
image

With this PR
image

@weizhouapache weizhouapache merged commit 0bb05f7 into apache:4.18 Sep 6, 2023

@rajujith rajujith 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.

The issue is no longer observed in environments with 2 zones.

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.

6 participants