Extract shared Vuex module for use with project_selector.vue
Extract a new Vuex module from the the existing Instance Security Dashboard's Vuex module, with the actions/mutations/getters necessary to drive the project selector vue component
- This likely means:
- Fetching projects given a search query
- The ability to page in more search results on demand
- The ability to add/remove projects from a "selected" list
- Exposing paging information
- Other unrelated functionality that exists in the places the project selector vue component is used (e.g., Instance Security Dashboard; Operations Dashboard; Environments Dashboard), e.g.,
localStorage
interactions, polling, would remain the responsibility of the parent Vuex stores/modules.
This new Vuex module probably ought to live close to the project selector it's supposed to drive, e.g.: app/assets/javascripts/vue_shared/components/project_selector/store/{actions,mutations,state,index}.js
Edited by Mark Florian