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 save multiple report definitions with the same name, but can only open the first one created #252

Open
CarolynRemacle opened this issue Nov 8, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@CarolynRemacle
Copy link

What is the bug?
The Create Report Definition button lets you save multiple report definitions with the same name. However, when you open one of the definitions, you always get the first one created.

How can one reproduce the bug?
Steps to reproduce the behavior:

  1. Create and save one report definition
  2. Create and save a second report definition with the exact same name as the first, assign this definition different attributes than the first.
  3. In the list of report definitions, click on the second report definition to open it.
  4. Notice you are looking at the first report definition.

What is the expected behavior?
I should see and work with the report definition I clicked on.

What is your host/environment?

  • RHEL 9.0
  • I have tested this on both 2.8.0.0 and the latest version of the reporting plugin.

I fixed this behavior by changing:

  render: (name) => (
        <EuiLink
          onClick={() => navigateToDefinitionDetails(name)}
          id={'reportDefinitionDetailsLink'}
        >
          {name}
        </EuiLink>
      ),

to:

     render: (name, item) => (
        <EuiLink
          onClick={() => {
            window.location.assign(
              `reports-dashboards#/report_definition_details/${item.id}`
            );
          }}
          id={'reportDefinitionDetailsLink'}
        >
          {name}
        </EuiLink>
      ),

so the report definitions are opened by id instead of name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants