Skip to content

[Enhancement][UX] Option to set data source as default data source. #5868

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Tracked by #5872
bandinib-amzn opened this issue Feb 13, 2024 · 5 comments
Closed
Tracked by #5872
Assignees
Labels
enhancement New feature or request multiple datasource multiple datasource project

Comments

@bandinib-amzn
Copy link
Member

Is your feature request related to a problem? Please describe.

As a user when there is only one data source created, it still asks me to select data source on dev tool, sample data screens. I want option to set data source as default data source and whenever there is option to select data source, I want that option to be selected by default.

@xeniatup
Copy link

To allow user to assign a “Default” status to one of the connected data sources and manage the preference I propose to implement the UX changes as follows:

  1. The first data source that is added to the instance of OpenSearch Dashboards becomes default data source automatically.
  2. In the case of multiple data sources connected, and the default data source is removed, the default status is automatically reassigned to the next data source in the list.
  3. On the “List connected data sources” (Dashboards management/Data sources) mark the default data source with a badge (OuiBadge) with starFilled icon.
Screenshot 2024-03-18 at 3 20 37 PM
  1. On “Create data source connection” page add a checkbox “Set as default data source”. If user selects the checkbox, the newly created data source becomes a default data source instead of the previous default.
Screenshot 2024-03-18 at 3 09 40 PM
  1. On the data source details page add a secondary button (OuiButtonEmpty) with starEmpty icon. Clicking on the button sets the default status to the data source. A success toast message is displayed on the page as the default status is reassigned.
Screenshot 2024-03-18 at 3 23 31 PM Screenshot 2024-03-18 at 3 27 20 PM
  1. When a data source is set to default, the secondary button is shown as disabled with the label “Default” and the icon changed to starFilled .
Screenshot 2024-03-18 at 3 27 55 PM

cc @zhyuanqi

@BionIT
Copy link
Collaborator

BionIT commented Apr 3, 2024

This is duplicate of #6058, 6058 has been closed, should we close this? @zhyuanqi

@zhyuanqi
Copy link
Collaborator

zhyuanqi commented Apr 3, 2024

Hi The issue has been addressed. Now customer can select default datasource.

  1. Add set default datasource #6186
    Make sure customer always have a default datasource #6237

@zhyuanqi
Copy link
Collaborator

zhyuanqi commented Apr 3, 2024

Yeah I believe we can close this.

@BionIT BionIT assigned zhyuanqi and unassigned seraphjiang Apr 3, 2024
@BionIT BionIT closed this as not planned Won't fix, can't repro, duplicate, stale Apr 3, 2024
@BionIT
Copy link
Collaborator

BionIT commented Apr 3, 2024

Closed as duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request multiple datasource multiple datasource project
Projects
None yet
Development

No branches or pull requests

6 participants