Skip to content

Comments

[9.1] [Response Ops][Reporting] Adding DISCOVER_APP_LOCATOR to REPORTING_REDIRECT_ALLOWED_LOCATOR_TYPES (#227297)#227436

Merged
kibanamachine merged 1 commit intoelastic:9.1from
kibanamachine:backport/9.1/pr-227297
Jul 10, 2025
Merged

[9.1] [Response Ops][Reporting] Adding DISCOVER_APP_LOCATOR to REPORTING_REDIRECT_ALLOWED_LOCATOR_TYPES (#227297)#227436
kibanamachine merged 1 commit intoelastic:9.1from
kibanamachine:backport/9.1/pr-227297

Conversation

@kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 9.1:

Questions ?

Please refer to the Backport tool documentation

…_REDIRECT_ALLOWED_LOCATOR_TYPES` (elastic#227297)

## Summary

It was noticed during verification that generating a ES|QL CSV report
(either single or scheduled) and then trying to access the `Open
Dashboard` link from the Reporting UI would result in a redirect error:

![Skærmbillede 2025-07-09 kl 15 56
00](https://github.com/user-attachments/assets/10df6745-e8f2-45c8-a053-96ee0a98030a)

The locator params for this look like, so it looks like
`DISCOVER_APP_LOCATOR` needs to be added to the
`REPORTING_REDIRECT_ALLOWED_LOCATOR_TYPES`, similar to this [previous
PR](elastic#224309) for the
`CANVAS_APP_LOCATOR`

```
{
    "id": "DISCOVER_APP_LOCATOR",
    "params": {
        "columns": [],
        "dataViewSpec": {
            "allowHidden": false,
            "allowNoIndex": false,
            "fieldFormats": {},
            "id": "bc48ed34f1056457dd1c77b6326d7226c302ea35aecfae268cd142a126bb3143",
            "name": "logs-library_endgame-default",
            "runtimeFieldMap": {},
            "sourceFilters": [],
            "timeFieldName": "@timestamp",
            "title": "logs-library_endgame-default",
            "type": "esql"
        },
        "filters": [],
        "hideChart": false,
        "interval": "auto",
        "query": {
            "esql": "FROM logs-library_endgame-default | LIMIT 10"
        },
        "refreshInterval": {
            "pause": true,
            "value": 60000
        },
        "sort": [
            [
                "@timestamp",
                "desc"
            ]
        ],
        "timeRange": {
            "from": "2024-10-30T14:28:39.718Z",
            "to": "2024-11-04T19:35:40.254Z"
        }
    }
}
```

## To Verify

1. Export a CSV from Discover in ES|QL mode (does not have to be a
scheduled export)
2. Navigate to the Reporting UI and click the hamburger menu > Open in
Dashboard
3. This should navigate you back to Discover in ES|QL mode instead of
showing the above error.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Janki Salvi <jankigaurav.salvi@elastic.co>
(cherry picked from commit e4bc487)
@kibanamachine kibanamachine merged commit 2383b72 into elastic:9.1 Jul 10, 2025
16 checks passed
@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #79 / Journey[infra_hosts_view] "before all" hook for "Navigate to Hosts view and load 500 hosts"

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/deeplinks-analytics 10 11 +1

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
fleet 2.1MB 2.1MB +23.0B
ml 5.4MB 5.4MB -7.0KB
reporting 159.3KB 159.4KB +113.0B
total -6.9KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
ml 85.7KB 85.7KB +2.0B
reporting 54.0KB 54.0KB +1.0B
total +3.0B
Unknown metric groups

API count

id before after diff
@kbn/deeplinks-analytics 10 11 +1

cc @ymao1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants