Skip to content
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

[BUG] Can create multiple Data Source using the same Data Source Name through API #6823

Open
zhyuanqi opened this issue May 23, 2024 · 1 comment
Assignees
Labels
bug Something isn't working multiple datasource multiple datasource project v2.17.0

Comments

@zhyuanqi
Copy link
Collaborator

zhyuanqi commented May 23, 2024

Describe the bug

Can create multiple Data Source using the same Data Source Name through API.
Then we can have a few datasource with the same name

To Reproduce
Steps to reproduce the behavior:

  1. Create data source use API. In our case, we use cy.request.
cy.request({
  method: "POST",
  url: `${BASE_PATH}/api/saved_objects/data-source`,
  headers: {
      osd-xsrf": true,
  },
  body: {
      attributes: {
         title: "testDataSource",
        endpoint: Cypress.env("dataSourceEndpoint"),
        auth: {
            type: "token_exchange",
            credentials: {
                region: Cypress.env("dataSourceRegion"),
                roleARN: Cypress.env("dataSourceRoleArn"),
                service: getDataSourceServiceName(),
            },
       },
    },
},
  1. We can create several dataSource with the same name
Screenshot 2024-05-23 at 12 02 27 PM
  1. You will see odd behavior in selector as well.
Screenshot 2024-05-23 at 12 02 16 PM

Expected behavior
The API behavior should be consistent as UI behavior. The datasource cannot have the same name

OpenSearch Version
OS_2.13

Dashboards Version
OS_2.13

Plugins

Please list all plugins currently enabled.

Screenshots

If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Browser and version [e.g. 22]

Additional context

Add any other context about the problem here.

@zhyuanqi zhyuanqi added bug Something isn't working untriaged labels May 23, 2024
@zhyuanqi zhyuanqi changed the title [BUG] Can create multiple Neo Data Source using the same Neo Data Source Name through API [BUG] Can create multiple Data Source using the same Data Source Name through API May 23, 2024
@kavilla kavilla removed the untriaged label May 28, 2024
@BionIT
Copy link
Collaborator

BionIT commented Jun 3, 2024

Hi @zhyuanqi, are you working on this issue and should it be done for 2.15 ?

@BionIT BionIT added v2.16.0 multiple datasource multiple datasource project labels Jun 4, 2024
@BionIT BionIT added v2.17.0 and removed v2.16.0 labels Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working multiple datasource multiple datasource project v2.17.0
Projects
None yet
Development

No branches or pull requests

3 participants