Skip to content

Condense project selector stores/instances

The following discussion from !64560 (merged) should be addressed:

  • @aturinske started a discussion: (+1 comment)

    This required a lot of methods and that was annoying. Especially since I copied all of them the instance-level security dashboard component and they all seem to work. Maybe (as a follow-up) I should create a wrapper around project-selector that encapsulates all these methods for these two instances? Counter-point: There are only two instances, so maybe do that if there is a third instance? There are actually two other instances of the project-selector (instance-level operations and environment dashboards), but both of those use a Vuex store. Oh, there is a project_selctor Vuex store, should I be using that instead of these copy/pasted methods?

    I will...look into this.

Implementation

I talked to @ekigbo about this and we decided on a two pronged approach

Additional context

The current implementation has a help text. We want to keep that text.

current project selector proposed project selector
image image
Edited by Savas Vedova