Skip to content

Comments

[Response Ops][Reporting] Adding DISCOVER_APP_LOCATOR to REPORTING_REDIRECT_ALLOWED_LOCATOR_TYPES#227297

Merged
ymao1 merged 6 commits intoelastic:mainfrom
ymao1:fix-discover-app-locator
Jul 10, 2025
Merged

[Response Ops][Reporting] Adding DISCOVER_APP_LOCATOR to REPORTING_REDIRECT_ALLOWED_LOCATOR_TYPES#227297
ymao1 merged 6 commits intoelastic:mainfrom
ymao1:fix-discover-app-locator

Conversation

@ymao1
Copy link
Contributor

@ymao1 ymao1 commented Jul 9, 2025

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

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 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.

@ymao1 ymao1 force-pushed the fix-discover-app-locator branch from 5964917 to f613db6 Compare July 9, 2025 16:50
@ymao1 ymao1 self-assigned this Jul 9, 2025
@ymao1 ymao1 added Team:ResponseOps Platform ResponseOps team (formerly the Cases and Alerting teams) t// Feature:Reporting:Framework Reporting issues pertaining to the overall framework backport:version Backport to applied version labels v9.1.0 v8.19.0 v9.2.0 v8.18.4 v9.0.4 labels Jul 9, 2025
@ymao1 ymao1 marked this pull request as ready for review July 9, 2025 16:58
@ymao1 ymao1 requested review from a team as code owners July 9, 2025 16:58
@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops (Team:ResponseOps)

@ymao1 ymao1 added the release_note:skip Skip the PR/issue when compiling release notes label Jul 9, 2025
Copy link
Member

@tsullivan tsullivan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the code only, LGTM to unblock

Copy link
Contributor

@nreese nreese left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kibana-presentation changes LGTM
code review only

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

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

Copy link
Contributor

@davismcphee davismcphee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Data Discovery changes LGTM, thanks for fixing it 👍

@ymao1 ymao1 merged commit e4bc487 into elastic:main Jul 10, 2025
12 checks passed
@ymao1 ymao1 deleted the fix-discover-app-locator branch July 10, 2025 12:01
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.18, 8.19, 9.0, 9.1

https://github.com/elastic/kibana/actions/runs/16194537914

kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Jul 10, 2025
…_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 added a commit to kibanamachine/kibana that referenced this pull request Jul 10, 2025
…_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
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
8.18 Backport failed because of merge conflicts
8.19
9.0 Backport failed because of merge conflicts
9.1

Note: Successful backport PRs will be merged automatically after passing CI.

Manual backport

To create the backport manually run:

node scripts/backport --pr 227297

Questions ?

Please refer to the Backport tool documentation

@ymao1
Copy link
Contributor Author

ymao1 commented Jul 10, 2025

💚 All backports created successfully

Status Branch Result
9.0
8.18

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

ymao1 added a commit to ymao1/kibana that referenced this pull request Jul 10, 2025
…_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)

# Conflicts:
#	x-pack/platform/plugins/private/reporting/public/management/components/report_schedules_table.tsx
#	x-pack/platform/plugins/private/reporting/public/management/report_listing_table.tsx
ymao1 added a commit to ymao1/kibana that referenced this pull request Jul 10, 2025
…_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)

# Conflicts:
#	x-pack/platform/plugins/private/reporting/public/management/components/report_schedules_table.tsx
#	x-pack/platform/plugins/private/reporting/public/management/report_listing_table.tsx
kibanamachine added a commit that referenced this pull request Jul 10, 2025
…ORTING_REDIRECT_ALLOWED_LOCATOR_TYPES` (#227297) (#227436)

# Backport

This will backport the following commits from `main` to `9.1`:
- [[Response Ops][Reporting] Adding `DISCOVER_APP_LOCATOR` to
`REPORTING_REDIRECT_ALLOWED_LOCATOR_TYPES`
(#227297)](#227297)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Ying
Mao","email":"ying.mao@elastic.co"},"sourceCommit":{"committedDate":"2025-07-10T12:01:49Z","message":"[Response
Ops][Reporting] Adding `DISCOVER_APP_LOCATOR` to
`REPORTING_REDIRECT_ALLOWED_LOCATOR_TYPES` (#227297)\n\n## Summary\n\nIt
was noticed during verification that generating a ES|QL CSV
report\n(either single or scheduled) and then trying to access the
`Open\nDashboard` link from the Reporting UI would result in a redirect
error:\n\n![Skærmbillede 2025-07-09 kl 15
56\n00](https://github.com/user-attachments/assets/10df6745-e8f2-45c8-a053-96ee0a98030a)\n\nThe
locator params for this look like, so it looks
like\n`DISCOVER_APP_LOCATOR` needs to be added to
the\n`REPORTING_REDIRECT_ALLOWED_LOCATOR_TYPES`, similar to this
[previous\nPR](#224309) for
the\n`CANVAS_APP_LOCATOR`\n\n```\n{\n \"id\":
\"DISCOVER_APP_LOCATOR\",\n \"params\": {\n \"columns\": [],\n
\"dataViewSpec\": {\n \"allowHidden\": false,\n \"allowNoIndex\":
false,\n \"fieldFormats\": {},\n \"id\":
\"bc48ed34f1056457dd1c77b6326d7226c302ea35aecfae268cd142a126bb3143\",\n
\"name\": \"logs-library_endgame-default\",\n \"runtimeFieldMap\": {},\n
\"sourceFilters\": [],\n \"timeFieldName\": \"@timestamp\",\n \"title\":
\"logs-library_endgame-default\",\n \"type\": \"esql\"\n },\n
\"filters\": [],\n \"hideChart\": false,\n \"interval\": \"auto\",\n
\"query\": {\n \"esql\": \"FROM logs-library_endgame-default | LIMIT
10\"\n },\n \"refreshInterval\": {\n \"pause\": true,\n \"value\":
60000\n },\n \"sort\": [\n [\n \"@timestamp\",\n \"desc\"\n ]\n ],\n
\"timeRange\": {\n \"from\": \"2024-10-30T14:28:39.718Z\",\n \"to\":
\"2024-11-04T19:35:40.254Z\"\n }\n }\n}\n```\n\n## To Verify\n\n1.
Export a CSV from Discover in ES|QL mode (does not have to be
a\nscheduled export)\n2. Navigate to the Reporting UI and click the
hamburger menu > Open in\nDashboard\n3. This should navigate you back to
Discover in ES|QL mode instead of\nshowing the above
error.\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Janki
Salvi
<jankigaurav.salvi@elastic.co>","sha":"e4bc487dd0151df32ff0dd5a8cdfb9d7a61714f5","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:ResponseOps","Feature:Reporting:Framework","backport:version","v9.1.0","v8.19.0","v9.2.0","v8.18.4","v9.0.4"],"title":"[Response
Ops][Reporting] Adding `DISCOVER_APP_LOCATOR` to
`REPORTING_REDIRECT_ALLOWED_LOCATOR_TYPES`","number":227297,"url":"https://github.com/elastic/kibana/pull/227297","mergeCommit":{"message":"[Response
Ops][Reporting] Adding `DISCOVER_APP_LOCATOR` to
`REPORTING_REDIRECT_ALLOWED_LOCATOR_TYPES` (#227297)\n\n## Summary\n\nIt
was noticed during verification that generating a ES|QL CSV
report\n(either single or scheduled) and then trying to access the
`Open\nDashboard` link from the Reporting UI would result in a redirect
error:\n\n![Skærmbillede 2025-07-09 kl 15
56\n00](https://github.com/user-attachments/assets/10df6745-e8f2-45c8-a053-96ee0a98030a)\n\nThe
locator params for this look like, so it looks
like\n`DISCOVER_APP_LOCATOR` needs to be added to
the\n`REPORTING_REDIRECT_ALLOWED_LOCATOR_TYPES`, similar to this
[previous\nPR](#224309) for
the\n`CANVAS_APP_LOCATOR`\n\n```\n{\n \"id\":
\"DISCOVER_APP_LOCATOR\",\n \"params\": {\n \"columns\": [],\n
\"dataViewSpec\": {\n \"allowHidden\": false,\n \"allowNoIndex\":
false,\n \"fieldFormats\": {},\n \"id\":
\"bc48ed34f1056457dd1c77b6326d7226c302ea35aecfae268cd142a126bb3143\",\n
\"name\": \"logs-library_endgame-default\",\n \"runtimeFieldMap\": {},\n
\"sourceFilters\": [],\n \"timeFieldName\": \"@timestamp\",\n \"title\":
\"logs-library_endgame-default\",\n \"type\": \"esql\"\n },\n
\"filters\": [],\n \"hideChart\": false,\n \"interval\": \"auto\",\n
\"query\": {\n \"esql\": \"FROM logs-library_endgame-default | LIMIT
10\"\n },\n \"refreshInterval\": {\n \"pause\": true,\n \"value\":
60000\n },\n \"sort\": [\n [\n \"@timestamp\",\n \"desc\"\n ]\n ],\n
\"timeRange\": {\n \"from\": \"2024-10-30T14:28:39.718Z\",\n \"to\":
\"2024-11-04T19:35:40.254Z\"\n }\n }\n}\n```\n\n## To Verify\n\n1.
Export a CSV from Discover in ES|QL mode (does not have to be
a\nscheduled export)\n2. Navigate to the Reporting UI and click the
hamburger menu > Open in\nDashboard\n3. This should navigate you back to
Discover in ES|QL mode instead of\nshowing the above
error.\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Janki
Salvi
<jankigaurav.salvi@elastic.co>","sha":"e4bc487dd0151df32ff0dd5a8cdfb9d7a61714f5"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19","8.18","9.0"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/227297","number":227297,"mergeCommit":{"message":"[Response
Ops][Reporting] Adding `DISCOVER_APP_LOCATOR` to
`REPORTING_REDIRECT_ALLOWED_LOCATOR_TYPES` (#227297)\n\n## Summary\n\nIt
was noticed during verification that generating a ES|QL CSV
report\n(either single or scheduled) and then trying to access the
`Open\nDashboard` link from the Reporting UI would result in a redirect
error:\n\n![Skærmbillede 2025-07-09 kl 15
56\n00](https://github.com/user-attachments/assets/10df6745-e8f2-45c8-a053-96ee0a98030a)\n\nThe
locator params for this look like, so it looks
like\n`DISCOVER_APP_LOCATOR` needs to be added to
the\n`REPORTING_REDIRECT_ALLOWED_LOCATOR_TYPES`, similar to this
[previous\nPR](#224309) for
the\n`CANVAS_APP_LOCATOR`\n\n```\n{\n \"id\":
\"DISCOVER_APP_LOCATOR\",\n \"params\": {\n \"columns\": [],\n
\"dataViewSpec\": {\n \"allowHidden\": false,\n \"allowNoIndex\":
false,\n \"fieldFormats\": {},\n \"id\":
\"bc48ed34f1056457dd1c77b6326d7226c302ea35aecfae268cd142a126bb3143\",\n
\"name\": \"logs-library_endgame-default\",\n \"runtimeFieldMap\": {},\n
\"sourceFilters\": [],\n \"timeFieldName\": \"@timestamp\",\n \"title\":
\"logs-library_endgame-default\",\n \"type\": \"esql\"\n },\n
\"filters\": [],\n \"hideChart\": false,\n \"interval\": \"auto\",\n
\"query\": {\n \"esql\": \"FROM logs-library_endgame-default | LIMIT
10\"\n },\n \"refreshInterval\": {\n \"pause\": true,\n \"value\":
60000\n },\n \"sort\": [\n [\n \"@timestamp\",\n \"desc\"\n ]\n ],\n
\"timeRange\": {\n \"from\": \"2024-10-30T14:28:39.718Z\",\n \"to\":
\"2024-11-04T19:35:40.254Z\"\n }\n }\n}\n```\n\n## To Verify\n\n1.
Export a CSV from Discover in ES|QL mode (does not have to be
a\nscheduled export)\n2. Navigate to the Reporting UI and click the
hamburger menu > Open in\nDashboard\n3. This should navigate you back to
Discover in ES|QL mode instead of\nshowing the above
error.\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Janki
Salvi
<jankigaurav.salvi@elastic.co>","sha":"e4bc487dd0151df32ff0dd5a8cdfb9d7a61714f5"}},{"branch":"8.18","label":"v8.18.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Ying Mao <ying.mao@elastic.co>
Co-authored-by: Janki Salvi <jankigaurav.salvi@elastic.co>
kibanamachine added a commit that referenced this pull request Jul 10, 2025
…PORTING_REDIRECT_ALLOWED_LOCATOR_TYPES` (#227297) (#227435)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[Response Ops][Reporting] Adding `DISCOVER_APP_LOCATOR` to
`REPORTING_REDIRECT_ALLOWED_LOCATOR_TYPES`
(#227297)](#227297)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Ying
Mao","email":"ying.mao@elastic.co"},"sourceCommit":{"committedDate":"2025-07-10T12:01:49Z","message":"[Response
Ops][Reporting] Adding `DISCOVER_APP_LOCATOR` to
`REPORTING_REDIRECT_ALLOWED_LOCATOR_TYPES` (#227297)\n\n## Summary\n\nIt
was noticed during verification that generating a ES|QL CSV
report\n(either single or scheduled) and then trying to access the
`Open\nDashboard` link from the Reporting UI would result in a redirect
error:\n\n![Skærmbillede 2025-07-09 kl 15
56\n00](https://github.com/user-attachments/assets/10df6745-e8f2-45c8-a053-96ee0a98030a)\n\nThe
locator params for this look like, so it looks
like\n`DISCOVER_APP_LOCATOR` needs to be added to
the\n`REPORTING_REDIRECT_ALLOWED_LOCATOR_TYPES`, similar to this
[previous\nPR](#224309) for
the\n`CANVAS_APP_LOCATOR`\n\n```\n{\n \"id\":
\"DISCOVER_APP_LOCATOR\",\n \"params\": {\n \"columns\": [],\n
\"dataViewSpec\": {\n \"allowHidden\": false,\n \"allowNoIndex\":
false,\n \"fieldFormats\": {},\n \"id\":
\"bc48ed34f1056457dd1c77b6326d7226c302ea35aecfae268cd142a126bb3143\",\n
\"name\": \"logs-library_endgame-default\",\n \"runtimeFieldMap\": {},\n
\"sourceFilters\": [],\n \"timeFieldName\": \"@timestamp\",\n \"title\":
\"logs-library_endgame-default\",\n \"type\": \"esql\"\n },\n
\"filters\": [],\n \"hideChart\": false,\n \"interval\": \"auto\",\n
\"query\": {\n \"esql\": \"FROM logs-library_endgame-default | LIMIT
10\"\n },\n \"refreshInterval\": {\n \"pause\": true,\n \"value\":
60000\n },\n \"sort\": [\n [\n \"@timestamp\",\n \"desc\"\n ]\n ],\n
\"timeRange\": {\n \"from\": \"2024-10-30T14:28:39.718Z\",\n \"to\":
\"2024-11-04T19:35:40.254Z\"\n }\n }\n}\n```\n\n## To Verify\n\n1.
Export a CSV from Discover in ES|QL mode (does not have to be
a\nscheduled export)\n2. Navigate to the Reporting UI and click the
hamburger menu > Open in\nDashboard\n3. This should navigate you back to
Discover in ES|QL mode instead of\nshowing the above
error.\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Janki
Salvi
<jankigaurav.salvi@elastic.co>","sha":"e4bc487dd0151df32ff0dd5a8cdfb9d7a61714f5","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:ResponseOps","Feature:Reporting:Framework","backport:version","v9.1.0","v8.19.0","v9.2.0","v8.18.4","v9.0.4"],"title":"[Response
Ops][Reporting] Adding `DISCOVER_APP_LOCATOR` to
`REPORTING_REDIRECT_ALLOWED_LOCATOR_TYPES`","number":227297,"url":"https://github.com/elastic/kibana/pull/227297","mergeCommit":{"message":"[Response
Ops][Reporting] Adding `DISCOVER_APP_LOCATOR` to
`REPORTING_REDIRECT_ALLOWED_LOCATOR_TYPES` (#227297)\n\n## Summary\n\nIt
was noticed during verification that generating a ES|QL CSV
report\n(either single or scheduled) and then trying to access the
`Open\nDashboard` link from the Reporting UI would result in a redirect
error:\n\n![Skærmbillede 2025-07-09 kl 15
56\n00](https://github.com/user-attachments/assets/10df6745-e8f2-45c8-a053-96ee0a98030a)\n\nThe
locator params for this look like, so it looks
like\n`DISCOVER_APP_LOCATOR` needs to be added to
the\n`REPORTING_REDIRECT_ALLOWED_LOCATOR_TYPES`, similar to this
[previous\nPR](#224309) for
the\n`CANVAS_APP_LOCATOR`\n\n```\n{\n \"id\":
\"DISCOVER_APP_LOCATOR\",\n \"params\": {\n \"columns\": [],\n
\"dataViewSpec\": {\n \"allowHidden\": false,\n \"allowNoIndex\":
false,\n \"fieldFormats\": {},\n \"id\":
\"bc48ed34f1056457dd1c77b6326d7226c302ea35aecfae268cd142a126bb3143\",\n
\"name\": \"logs-library_endgame-default\",\n \"runtimeFieldMap\": {},\n
\"sourceFilters\": [],\n \"timeFieldName\": \"@timestamp\",\n \"title\":
\"logs-library_endgame-default\",\n \"type\": \"esql\"\n },\n
\"filters\": [],\n \"hideChart\": false,\n \"interval\": \"auto\",\n
\"query\": {\n \"esql\": \"FROM logs-library_endgame-default | LIMIT
10\"\n },\n \"refreshInterval\": {\n \"pause\": true,\n \"value\":
60000\n },\n \"sort\": [\n [\n \"@timestamp\",\n \"desc\"\n ]\n ],\n
\"timeRange\": {\n \"from\": \"2024-10-30T14:28:39.718Z\",\n \"to\":
\"2024-11-04T19:35:40.254Z\"\n }\n }\n}\n```\n\n## To Verify\n\n1.
Export a CSV from Discover in ES|QL mode (does not have to be
a\nscheduled export)\n2. Navigate to the Reporting UI and click the
hamburger menu > Open in\nDashboard\n3. This should navigate you back to
Discover in ES|QL mode instead of\nshowing the above
error.\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Janki
Salvi
<jankigaurav.salvi@elastic.co>","sha":"e4bc487dd0151df32ff0dd5a8cdfb9d7a61714f5"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19","8.18","9.0"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/227297","number":227297,"mergeCommit":{"message":"[Response
Ops][Reporting] Adding `DISCOVER_APP_LOCATOR` to
`REPORTING_REDIRECT_ALLOWED_LOCATOR_TYPES` (#227297)\n\n## Summary\n\nIt
was noticed during verification that generating a ES|QL CSV
report\n(either single or scheduled) and then trying to access the
`Open\nDashboard` link from the Reporting UI would result in a redirect
error:\n\n![Skærmbillede 2025-07-09 kl 15
56\n00](https://github.com/user-attachments/assets/10df6745-e8f2-45c8-a053-96ee0a98030a)\n\nThe
locator params for this look like, so it looks
like\n`DISCOVER_APP_LOCATOR` needs to be added to
the\n`REPORTING_REDIRECT_ALLOWED_LOCATOR_TYPES`, similar to this
[previous\nPR](#224309) for
the\n`CANVAS_APP_LOCATOR`\n\n```\n{\n \"id\":
\"DISCOVER_APP_LOCATOR\",\n \"params\": {\n \"columns\": [],\n
\"dataViewSpec\": {\n \"allowHidden\": false,\n \"allowNoIndex\":
false,\n \"fieldFormats\": {},\n \"id\":
\"bc48ed34f1056457dd1c77b6326d7226c302ea35aecfae268cd142a126bb3143\",\n
\"name\": \"logs-library_endgame-default\",\n \"runtimeFieldMap\": {},\n
\"sourceFilters\": [],\n \"timeFieldName\": \"@timestamp\",\n \"title\":
\"logs-library_endgame-default\",\n \"type\": \"esql\"\n },\n
\"filters\": [],\n \"hideChart\": false,\n \"interval\": \"auto\",\n
\"query\": {\n \"esql\": \"FROM logs-library_endgame-default | LIMIT
10\"\n },\n \"refreshInterval\": {\n \"pause\": true,\n \"value\":
60000\n },\n \"sort\": [\n [\n \"@timestamp\",\n \"desc\"\n ]\n ],\n
\"timeRange\": {\n \"from\": \"2024-10-30T14:28:39.718Z\",\n \"to\":
\"2024-11-04T19:35:40.254Z\"\n }\n }\n}\n```\n\n## To Verify\n\n1.
Export a CSV from Discover in ES|QL mode (does not have to be
a\nscheduled export)\n2. Navigate to the Reporting UI and click the
hamburger menu > Open in\nDashboard\n3. This should navigate you back to
Discover in ES|QL mode instead of\nshowing the above
error.\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Janki
Salvi
<jankigaurav.salvi@elastic.co>","sha":"e4bc487dd0151df32ff0dd5a8cdfb9d7a61714f5"}},{"branch":"8.18","label":"v8.18.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Ying Mao <ying.mao@elastic.co>
Co-authored-by: Janki Salvi <jankigaurav.salvi@elastic.co>
ymao1 added a commit that referenced this pull request Jul 10, 2025
…ORTING_REDIRECT_ALLOWED_LOCATOR_TYPES` (#227297) (#227438)

# Backport

This will backport the following commits from `main` to `9.0`:
- [[Response Ops][Reporting] Adding `DISCOVER_APP_LOCATOR` to
`REPORTING_REDIRECT_ALLOWED_LOCATOR_TYPES`
(#227297)](#227297)

<!--- Backport version: 10.0.1 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Ying
Mao","email":"ying.mao@elastic.co"},"sourceCommit":{"committedDate":"2025-07-10T12:01:49Z","message":"[Response
Ops][Reporting] Adding `DISCOVER_APP_LOCATOR` to
`REPORTING_REDIRECT_ALLOWED_LOCATOR_TYPES` (#227297)\n\n## Summary\n\nIt
was noticed during verification that generating a ES|QL CSV
report\n(either single or scheduled) and then trying to access the
`Open\nDashboard` link from the Reporting UI would result in a redirect
error:\n\n![Skærmbillede 2025-07-09 kl 15
56\n00](https://github.com/user-attachments/assets/10df6745-e8f2-45c8-a053-96ee0a98030a)\n\nThe
locator params for this look like, so it looks
like\n`DISCOVER_APP_LOCATOR` needs to be added to
the\n`REPORTING_REDIRECT_ALLOWED_LOCATOR_TYPES`, similar to this
[previous\nPR](#224309) for
the\n`CANVAS_APP_LOCATOR`\n\n```\n{\n \"id\":
\"DISCOVER_APP_LOCATOR\",\n \"params\": {\n \"columns\": [],\n
\"dataViewSpec\": {\n \"allowHidden\": false,\n \"allowNoIndex\":
false,\n \"fieldFormats\": {},\n \"id\":
\"bc48ed34f1056457dd1c77b6326d7226c302ea35aecfae268cd142a126bb3143\",\n
\"name\": \"logs-library_endgame-default\",\n \"runtimeFieldMap\": {},\n
\"sourceFilters\": [],\n \"timeFieldName\": \"@timestamp\",\n \"title\":
\"logs-library_endgame-default\",\n \"type\": \"esql\"\n },\n
\"filters\": [],\n \"hideChart\": false,\n \"interval\": \"auto\",\n
\"query\": {\n \"esql\": \"FROM logs-library_endgame-default | LIMIT
10\"\n },\n \"refreshInterval\": {\n \"pause\": true,\n \"value\":
60000\n },\n \"sort\": [\n [\n \"@timestamp\",\n \"desc\"\n ]\n ],\n
\"timeRange\": {\n \"from\": \"2024-10-30T14:28:39.718Z\",\n \"to\":
\"2024-11-04T19:35:40.254Z\"\n }\n }\n}\n```\n\n## To Verify\n\n1.
Export a CSV from Discover in ES|QL mode (does not have to be
a\nscheduled export)\n2. Navigate to the Reporting UI and click the
hamburger menu > Open in\nDashboard\n3. This should navigate you back to
Discover in ES|QL mode instead of\nshowing the above
error.\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Janki
Salvi
<jankigaurav.salvi@elastic.co>","sha":"e4bc487dd0151df32ff0dd5a8cdfb9d7a61714f5","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:ResponseOps","Feature:Reporting:Framework","backport:version","v9.1.0","v8.19.0","v9.2.0","v8.18.4","v9.0.4"],"title":"[Response
Ops][Reporting] Adding `DISCOVER_APP_LOCATOR` to
`REPORTING_REDIRECT_ALLOWED_LOCATOR_TYPES`","number":227297,"url":"https://github.com/elastic/kibana/pull/227297","mergeCommit":{"message":"[Response
Ops][Reporting] Adding `DISCOVER_APP_LOCATOR` to
`REPORTING_REDIRECT_ALLOWED_LOCATOR_TYPES` (#227297)\n\n## Summary\n\nIt
was noticed during verification that generating a ES|QL CSV
report\n(either single or scheduled) and then trying to access the
`Open\nDashboard` link from the Reporting UI would result in a redirect
error:\n\n![Skærmbillede 2025-07-09 kl 15
56\n00](https://github.com/user-attachments/assets/10df6745-e8f2-45c8-a053-96ee0a98030a)\n\nThe
locator params for this look like, so it looks
like\n`DISCOVER_APP_LOCATOR` needs to be added to
the\n`REPORTING_REDIRECT_ALLOWED_LOCATOR_TYPES`, similar to this
[previous\nPR](#224309) for
the\n`CANVAS_APP_LOCATOR`\n\n```\n{\n \"id\":
\"DISCOVER_APP_LOCATOR\",\n \"params\": {\n \"columns\": [],\n
\"dataViewSpec\": {\n \"allowHidden\": false,\n \"allowNoIndex\":
false,\n \"fieldFormats\": {},\n \"id\":
\"bc48ed34f1056457dd1c77b6326d7226c302ea35aecfae268cd142a126bb3143\",\n
\"name\": \"logs-library_endgame-default\",\n \"runtimeFieldMap\": {},\n
\"sourceFilters\": [],\n \"timeFieldName\": \"@timestamp\",\n \"title\":
\"logs-library_endgame-default\",\n \"type\": \"esql\"\n },\n
\"filters\": [],\n \"hideChart\": false,\n \"interval\": \"auto\",\n
\"query\": {\n \"esql\": \"FROM logs-library_endgame-default | LIMIT
10\"\n },\n \"refreshInterval\": {\n \"pause\": true,\n \"value\":
60000\n },\n \"sort\": [\n [\n \"@timestamp\",\n \"desc\"\n ]\n ],\n
\"timeRange\": {\n \"from\": \"2024-10-30T14:28:39.718Z\",\n \"to\":
\"2024-11-04T19:35:40.254Z\"\n }\n }\n}\n```\n\n## To Verify\n\n1.
Export a CSV from Discover in ES|QL mode (does not have to be
a\nscheduled export)\n2. Navigate to the Reporting UI and click the
hamburger menu > Open in\nDashboard\n3. This should navigate you back to
Discover in ES|QL mode instead of\nshowing the above
error.\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Janki
Salvi
<jankigaurav.salvi@elastic.co>","sha":"e4bc487dd0151df32ff0dd5a8cdfb9d7a61714f5"}},"sourceBranch":"main","suggestedTargetBranches":["8.18","9.0"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/227436","number":227436,"state":"OPEN"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/227435","number":227435,"state":"OPEN"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/227297","number":227297,"mergeCommit":{"message":"[Response
Ops][Reporting] Adding `DISCOVER_APP_LOCATOR` to
`REPORTING_REDIRECT_ALLOWED_LOCATOR_TYPES` (#227297)\n\n## Summary\n\nIt
was noticed during verification that generating a ES|QL CSV
report\n(either single or scheduled) and then trying to access the
`Open\nDashboard` link from the Reporting UI would result in a redirect
error:\n\n![Skærmbillede 2025-07-09 kl 15
56\n00](https://github.com/user-attachments/assets/10df6745-e8f2-45c8-a053-96ee0a98030a)\n\nThe
locator params for this look like, so it looks
like\n`DISCOVER_APP_LOCATOR` needs to be added to
the\n`REPORTING_REDIRECT_ALLOWED_LOCATOR_TYPES`, similar to this
[previous\nPR](#224309) for
the\n`CANVAS_APP_LOCATOR`\n\n```\n{\n \"id\":
\"DISCOVER_APP_LOCATOR\",\n \"params\": {\n \"columns\": [],\n
\"dataViewSpec\": {\n \"allowHidden\": false,\n \"allowNoIndex\":
false,\n \"fieldFormats\": {},\n \"id\":
\"bc48ed34f1056457dd1c77b6326d7226c302ea35aecfae268cd142a126bb3143\",\n
\"name\": \"logs-library_endgame-default\",\n \"runtimeFieldMap\": {},\n
\"sourceFilters\": [],\n \"timeFieldName\": \"@timestamp\",\n \"title\":
\"logs-library_endgame-default\",\n \"type\": \"esql\"\n },\n
\"filters\": [],\n \"hideChart\": false,\n \"interval\": \"auto\",\n
\"query\": {\n \"esql\": \"FROM logs-library_endgame-default | LIMIT
10\"\n },\n \"refreshInterval\": {\n \"pause\": true,\n \"value\":
60000\n },\n \"sort\": [\n [\n \"@timestamp\",\n \"desc\"\n ]\n ],\n
\"timeRange\": {\n \"from\": \"2024-10-30T14:28:39.718Z\",\n \"to\":
\"2024-11-04T19:35:40.254Z\"\n }\n }\n}\n```\n\n## To Verify\n\n1.
Export a CSV from Discover in ES|QL mode (does not have to be
a\nscheduled export)\n2. Navigate to the Reporting UI and click the
hamburger menu > Open in\nDashboard\n3. This should navigate you back to
Discover in ES|QL mode instead of\nshowing the above
error.\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Janki
Salvi
<jankigaurav.salvi@elastic.co>","sha":"e4bc487dd0151df32ff0dd5a8cdfb9d7a61714f5"}},{"branch":"8.18","label":"v8.18.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
ymao1 added a commit that referenced this pull request Jul 10, 2025
…PORTING_REDIRECT_ALLOWED_LOCATOR_TYPES` (#227297) (#227439)

# Backport

This will backport the following commits from `main` to `8.18`:
- [[Response Ops][Reporting] Adding `DISCOVER_APP_LOCATOR` to
`REPORTING_REDIRECT_ALLOWED_LOCATOR_TYPES`
(#227297)](#227297)

<!--- Backport version: 10.0.1 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Ying
Mao","email":"ying.mao@elastic.co"},"sourceCommit":{"committedDate":"2025-07-10T12:01:49Z","message":"[Response
Ops][Reporting] Adding `DISCOVER_APP_LOCATOR` to
`REPORTING_REDIRECT_ALLOWED_LOCATOR_TYPES` (#227297)\n\n## Summary\n\nIt
was noticed during verification that generating a ES|QL CSV
report\n(either single or scheduled) and then trying to access the
`Open\nDashboard` link from the Reporting UI would result in a redirect
error:\n\n![Skærmbillede 2025-07-09 kl 15
56\n00](https://github.com/user-attachments/assets/10df6745-e8f2-45c8-a053-96ee0a98030a)\n\nThe
locator params for this look like, so it looks
like\n`DISCOVER_APP_LOCATOR` needs to be added to
the\n`REPORTING_REDIRECT_ALLOWED_LOCATOR_TYPES`, similar to this
[previous\nPR](#224309) for
the\n`CANVAS_APP_LOCATOR`\n\n```\n{\n \"id\":
\"DISCOVER_APP_LOCATOR\",\n \"params\": {\n \"columns\": [],\n
\"dataViewSpec\": {\n \"allowHidden\": false,\n \"allowNoIndex\":
false,\n \"fieldFormats\": {},\n \"id\":
\"bc48ed34f1056457dd1c77b6326d7226c302ea35aecfae268cd142a126bb3143\",\n
\"name\": \"logs-library_endgame-default\",\n \"runtimeFieldMap\": {},\n
\"sourceFilters\": [],\n \"timeFieldName\": \"@timestamp\",\n \"title\":
\"logs-library_endgame-default\",\n \"type\": \"esql\"\n },\n
\"filters\": [],\n \"hideChart\": false,\n \"interval\": \"auto\",\n
\"query\": {\n \"esql\": \"FROM logs-library_endgame-default | LIMIT
10\"\n },\n \"refreshInterval\": {\n \"pause\": true,\n \"value\":
60000\n },\n \"sort\": [\n [\n \"@timestamp\",\n \"desc\"\n ]\n ],\n
\"timeRange\": {\n \"from\": \"2024-10-30T14:28:39.718Z\",\n \"to\":
\"2024-11-04T19:35:40.254Z\"\n }\n }\n}\n```\n\n## To Verify\n\n1.
Export a CSV from Discover in ES|QL mode (does not have to be
a\nscheduled export)\n2. Navigate to the Reporting UI and click the
hamburger menu > Open in\nDashboard\n3. This should navigate you back to
Discover in ES|QL mode instead of\nshowing the above
error.\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Janki
Salvi
<jankigaurav.salvi@elastic.co>","sha":"e4bc487dd0151df32ff0dd5a8cdfb9d7a61714f5","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:ResponseOps","Feature:Reporting:Framework","backport:version","v9.1.0","v8.19.0","v9.2.0","v8.18.4","v9.0.4"],"title":"[Response
Ops][Reporting] Adding `DISCOVER_APP_LOCATOR` to
`REPORTING_REDIRECT_ALLOWED_LOCATOR_TYPES`","number":227297,"url":"https://github.com/elastic/kibana/pull/227297","mergeCommit":{"message":"[Response
Ops][Reporting] Adding `DISCOVER_APP_LOCATOR` to
`REPORTING_REDIRECT_ALLOWED_LOCATOR_TYPES` (#227297)\n\n## Summary\n\nIt
was noticed during verification that generating a ES|QL CSV
report\n(either single or scheduled) and then trying to access the
`Open\nDashboard` link from the Reporting UI would result in a redirect
error:\n\n![Skærmbillede 2025-07-09 kl 15
56\n00](https://github.com/user-attachments/assets/10df6745-e8f2-45c8-a053-96ee0a98030a)\n\nThe
locator params for this look like, so it looks
like\n`DISCOVER_APP_LOCATOR` needs to be added to
the\n`REPORTING_REDIRECT_ALLOWED_LOCATOR_TYPES`, similar to this
[previous\nPR](#224309) for
the\n`CANVAS_APP_LOCATOR`\n\n```\n{\n \"id\":
\"DISCOVER_APP_LOCATOR\",\n \"params\": {\n \"columns\": [],\n
\"dataViewSpec\": {\n \"allowHidden\": false,\n \"allowNoIndex\":
false,\n \"fieldFormats\": {},\n \"id\":
\"bc48ed34f1056457dd1c77b6326d7226c302ea35aecfae268cd142a126bb3143\",\n
\"name\": \"logs-library_endgame-default\",\n \"runtimeFieldMap\": {},\n
\"sourceFilters\": [],\n \"timeFieldName\": \"@timestamp\",\n \"title\":
\"logs-library_endgame-default\",\n \"type\": \"esql\"\n },\n
\"filters\": [],\n \"hideChart\": false,\n \"interval\": \"auto\",\n
\"query\": {\n \"esql\": \"FROM logs-library_endgame-default | LIMIT
10\"\n },\n \"refreshInterval\": {\n \"pause\": true,\n \"value\":
60000\n },\n \"sort\": [\n [\n \"@timestamp\",\n \"desc\"\n ]\n ],\n
\"timeRange\": {\n \"from\": \"2024-10-30T14:28:39.718Z\",\n \"to\":
\"2024-11-04T19:35:40.254Z\"\n }\n }\n}\n```\n\n## To Verify\n\n1.
Export a CSV from Discover in ES|QL mode (does not have to be
a\nscheduled export)\n2. Navigate to the Reporting UI and click the
hamburger menu > Open in\nDashboard\n3. This should navigate you back to
Discover in ES|QL mode instead of\nshowing the above
error.\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Janki
Salvi
<jankigaurav.salvi@elastic.co>","sha":"e4bc487dd0151df32ff0dd5a8cdfb9d7a61714f5"}},"sourceBranch":"main","suggestedTargetBranches":["8.18","9.0"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/227436","number":227436,"state":"OPEN"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/227435","number":227435,"state":"OPEN"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/227297","number":227297,"mergeCommit":{"message":"[Response
Ops][Reporting] Adding `DISCOVER_APP_LOCATOR` to
`REPORTING_REDIRECT_ALLOWED_LOCATOR_TYPES` (#227297)\n\n## Summary\n\nIt
was noticed during verification that generating a ES|QL CSV
report\n(either single or scheduled) and then trying to access the
`Open\nDashboard` link from the Reporting UI would result in a redirect
error:\n\n![Skærmbillede 2025-07-09 kl 15
56\n00](https://github.com/user-attachments/assets/10df6745-e8f2-45c8-a053-96ee0a98030a)\n\nThe
locator params for this look like, so it looks
like\n`DISCOVER_APP_LOCATOR` needs to be added to
the\n`REPORTING_REDIRECT_ALLOWED_LOCATOR_TYPES`, similar to this
[previous\nPR](#224309) for
the\n`CANVAS_APP_LOCATOR`\n\n```\n{\n \"id\":
\"DISCOVER_APP_LOCATOR\",\n \"params\": {\n \"columns\": [],\n
\"dataViewSpec\": {\n \"allowHidden\": false,\n \"allowNoIndex\":
false,\n \"fieldFormats\": {},\n \"id\":
\"bc48ed34f1056457dd1c77b6326d7226c302ea35aecfae268cd142a126bb3143\",\n
\"name\": \"logs-library_endgame-default\",\n \"runtimeFieldMap\": {},\n
\"sourceFilters\": [],\n \"timeFieldName\": \"@timestamp\",\n \"title\":
\"logs-library_endgame-default\",\n \"type\": \"esql\"\n },\n
\"filters\": [],\n \"hideChart\": false,\n \"interval\": \"auto\",\n
\"query\": {\n \"esql\": \"FROM logs-library_endgame-default | LIMIT
10\"\n },\n \"refreshInterval\": {\n \"pause\": true,\n \"value\":
60000\n },\n \"sort\": [\n [\n \"@timestamp\",\n \"desc\"\n ]\n ],\n
\"timeRange\": {\n \"from\": \"2024-10-30T14:28:39.718Z\",\n \"to\":
\"2024-11-04T19:35:40.254Z\"\n }\n }\n}\n```\n\n## To Verify\n\n1.
Export a CSV from Discover in ES|QL mode (does not have to be
a\nscheduled export)\n2. Navigate to the Reporting UI and click the
hamburger menu > Open in\nDashboard\n3. This should navigate you back to
Discover in ES|QL mode instead of\nshowing the above
error.\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Janki
Salvi
<jankigaurav.salvi@elastic.co>","sha":"e4bc487dd0151df32ff0dd5a8cdfb9d7a61714f5"}},{"branch":"8.18","label":"v8.18.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
kertal pushed a commit to kertal/kibana that referenced this pull request Jul 25, 2025
…_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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels Feature:Reporting:Framework Reporting issues pertaining to the overall framework release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Platform ResponseOps team (formerly the Cases and Alerting teams) t// v8.18.4 v8.19.0 v9.0.4 v9.1.0 v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants