Skip to content

UI: Add central project store and watch functionality#7900

Merged
weizhouapache merged 1 commit into
apache:4.18from
leaseweb:new-project-shown-fix
Aug 24, 2023
Merged

UI: Add central project store and watch functionality#7900
weizhouapache merged 1 commit into
apache:4.18from
leaseweb:new-project-shown-fix

Conversation

@CharlesQueiroz
Copy link
Copy Markdown
Contributor

Description

Issue: #7181

Added a new getter 'allProjects' and mutation 'RELOAD_ALL_PROJECTS' to centralize the tracking of available projects in the state.

This eliminates direct manipulation of the Project list in separate components and improves data consistency across the application.

A watcher in ProjectMenu.vue has been implemented to handle changes to the 'allProjects' getter.

The 'RELOAD_ALL_PROJECTS' mutation was also added where necessary to ensure the projects list is updated in the state whenever changes occur.

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)

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

How Has This Been Tested?

Before fix:

Screen.Recording.2023-08-23.at.14.00.05.mov

After Fix:

Screen.Recording.2023-08-23.at.13.41.22.mov

https://youtu.be/Ba63mpnie28

Added a new getter 'allProjects' and mutation 'RELOAD_ALL_PROJECTS' to centralize the tracking of available projects in the state.
This eliminates direct manipulation of the Project list in separate components and improves data consistency across the application.
A watcher in ProjectMenu.vue has been implemented to handle changes to the 'allProjects' getter.
The 'RELOAD_ALL_PROJECTS' mutation was also added where necessary to ensure projects list is updated in the state whenever changes occur.
@yadvr
Copy link
Copy Markdown
Member

yadvr commented Aug 23, 2023

@blueorangutan ui
@blueorangutan package

@weizhouapache weizhouapache linked an issue Aug 23, 2023 that may be closed by this pull request
@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.

@blueorangutan
Copy link
Copy Markdown

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

@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 23, 2023

Codecov Report

Merging #7900 (c3f866a) into 4.18 (b37834f) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##               4.18    #7900   +/-   ##
=========================================
  Coverage     13.06%   13.06%           
  Complexity     9084     9084           
=========================================
  Files          2720     2720           
  Lines        257370   257370           
  Branches      40124    40124           
=========================================
  Hits          33614    33614           
  Misses       219534   219534           
  Partials       4222     4222           

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

Copy link
Copy Markdown
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

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

tested in qa

Copy link
Copy Markdown
Member

@weizhouapache weizhouapache left a comment

Choose a reason for hiding this comment

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

code lgtm
verified ok.

if there are many projects, it might lead to some delay

@weizhouapache weizhouapache changed the title Add central project store and watch functionality (FIXING ISSUE #7181) UI: Add central project store and watch functionality Aug 24, 2023
@weizhouapache weizhouapache merged commit 2e1c282 into apache:4.18 Aug 24, 2023
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.

New project shown as -1

6 participants