kibana/x-pack/plugins/profiling/public
Cauê Marcondes 3f05ea0f0e
[8.8] [Profling][Fleet]Add a prerelease query param so who links to an integration can tell where the details must be read from (#160244) (#160511)
# Backport

This will backport the following commits from `main` to `8.8`:
- [[Profling][Fleet]Add a prerelease query param so who links to an
integration can tell where the details must be read from
(#160244)](https://github.com/elastic/kibana/pull/160244)

<!--- Backport version: 8.9.7 -->

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

<!--BACKPORT [{"author":{"name":"Cauê
Marcondes","email":"55978943+cauemarcondes@users.noreply.github.com"},"sourceCommit":{"committedDate":"2023-06-22T13:00:21Z","message":"[Profling][Fleet]Add
a prerelease query param so who links to an integration can tell where
the details must be read from (#160244)\n\nProblem:\r\nIn the Profiler
Add data page we show instructions on how to set up\r\nUniversal
Profiling. One of the options is from the Profiler\r\nintegration. So we
display a button that links
to\r\n`/app/integrations/detail/profiler_agent-8.8.0-preview/overview`.
The\r\nproblem is this link, is that the profiler integration is still
in\r\n`Beta`, and will be until `8.10`, and when I click on that link
the\r\nerror shown in the image below
happens.\r\nBefore:\r\n![Screenshot 2023-06-21 at 9 58
29\r\nPM](4800bdc3-df40-4579-9e57-d4b28e13be19)\r\n\r\nSolution:\r\nI
added an optional query param `prerelase={true|false}` to
the\r\nintegration link. So now I changed the link
to:\r\n`/app/integrations/detail/profiler_agent-8.8.0-preview/overview?prerelease=true`,\r\nthis
when true, overrides
the\r\n`settings?.item.prerelease_integrations_enabled` which is false
by\r\ndefault.\r\n\r\nAfter:\r\n<img width=\"1407\" alt=\"Screenshot
2023-06-22 at 11 16 52
AM\"\r\nsrc=\"a0fd4ea5-b54b-45ea-9903-b43a24600e7e\">","sha":"7b5b61a2ad5c08716949b6a6aa5a1562bdea6a5e","branchLabelMapping":{"^v8.9.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team:Fleet","v8.9.0"],"number":160244,"url":"https://github.com/elastic/kibana/pull/160244","mergeCommit":{"message":"[Profling][Fleet]Add
a prerelease query param so who links to an integration can tell where
the details must be read from (#160244)\n\nProblem:\r\nIn the Profiler
Add data page we show instructions on how to set up\r\nUniversal
Profiling. One of the options is from the Profiler\r\nintegration. So we
display a button that links
to\r\n`/app/integrations/detail/profiler_agent-8.8.0-preview/overview`.
The\r\nproblem is this link, is that the profiler integration is still
in\r\n`Beta`, and will be until `8.10`, and when I click on that link
the\r\nerror shown in the image below
happens.\r\nBefore:\r\n![Screenshot 2023-06-21 at 9 58
29\r\nPM](4800bdc3-df40-4579-9e57-d4b28e13be19)\r\n\r\nSolution:\r\nI
added an optional query param `prerelase={true|false}` to
the\r\nintegration link. So now I changed the link
to:\r\n`/app/integrations/detail/profiler_agent-8.8.0-preview/overview?prerelease=true`,\r\nthis
when true, overrides
the\r\n`settings?.item.prerelease_integrations_enabled` which is false
by\r\ndefault.\r\n\r\nAfter:\r\n<img width=\"1407\" alt=\"Screenshot
2023-06-22 at 11 16 52
AM\"\r\nsrc=\"a0fd4ea5-b54b-45ea-9903-b43a24600e7e\">","sha":"7b5b61a2ad5c08716949b6a6aa5a1562bdea6a5e"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.9.0","labelRegex":"^v8.9.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/160244","number":160244,"mergeCommit":{"message":"[Profling][Fleet]Add
a prerelease query param so who links to an integration can tell where
the details must be read from (#160244)\n\nProblem:\r\nIn the Profiler
Add data page we show instructions on how to set up\r\nUniversal
Profiling. One of the options is from the Profiler\r\nintegration. So we
display a button that links
to\r\n`/app/integrations/detail/profiler_agent-8.8.0-preview/overview`.
The\r\nproblem is this link, is that the profiler integration is still
in\r\n`Beta`, and will be until `8.10`, and when I click on that link
the\r\nerror shown in the image below
happens.\r\nBefore:\r\n![Screenshot 2023-06-21 at 9 58
29\r\nPM](4800bdc3-df40-4579-9e57-d4b28e13be19)\r\n\r\nSolution:\r\nI
added an optional query param `prerelase={true|false}` to
the\r\nintegration link. So now I changed the link
to:\r\n`/app/integrations/detail/profiler_agent-8.8.0-preview/overview?prerelease=true`,\r\nthis
when true, overrides
the\r\n`settings?.item.prerelease_integrations_enabled` which is false
by\r\ndefault.\r\n\r\nAfter:\r\n<img width=\"1407\" alt=\"Screenshot
2023-06-22 at 11 16 52
AM\"\r\nsrc=\"a0fd4ea5-b54b-45ea-9903-b43a24600e7e\">","sha":"7b5b61a2ad5c08716949b6a6aa5a1562bdea6a5e"}},{"url":"https://github.com/elastic/kibana/pull/160388","number":160388,"branch":"8.9","state":"MERGED","mergeCommit":{"sha":"c5b17f6d69869c14dc0e9df836da413d3bb43199","message":"[8.9]
[Profling][Fleet]Add a prerelease query param so who links to an
integration can tell where the details must be read from (#160244)
(#160388)\n\n# Backport\n\nThis will backport the following commits from
`main` to `8.9`:\n- [[Profling][Fleet]Add a prerelease query param so
who links to an\nintegration can tell where the details must be read
from\n(#160244)](https://github.com/elastic/kibana/pull/160244)\n\n<!---
Backport version: 8.9.7 -->\n\n### Questions ?\nPlease refer to the
[Backport
tool\ndocumentation](https://github.com/sqren/backport)\n\n<!--BACKPORT
[{\"author\":{\"name\":\"Cauê\nMarcondes\",\"email\":\"55978943+cauemarcondes@users.noreply.github.com\"},\"sourceCommit\":{\"committedDate\":\"2023-06-22T13:00:21Z\",\"message\":\"[Profling][Fleet]Add\na
prerelease query param so who links to an integration can tell
where\nthe details must be read from (#160244)\\n\\nProblem:\\r\\nIn the
Profiler\nAdd data page we show instructions on how to set
up\\r\\nUniversal\nProfiling. One of the options is from the
Profiler\\r\\nintegration. So we\ndisplay a button that
links\nto\\r\\n`/app/integrations/detail/profiler_agent-8.8.0-preview/overview`.\nThe\\r\\nproblem
is this link, is that the profiler integration is still\nin\\r\\n`Beta`,
and will be until `8.10`, and when I click on that link\nthe\\r\\nerror
shown in the image below\nhappens.\\r\\nBefore:\\r\\n![Screenshot
2023-06-21 at 9
58\n29\\r\\nPM](4800bdc3-df40-4579-9e57-d4b28e13be19)\\r\\n\\r\\nSolution:\\r\\nI\nadded
an optional query param `prerelase={true|false}`
to\nthe\\r\\nintegration link. So now I changed the
link\nto:\\r\\n`/app/integrations/detail/profiler_agent-8.8.0-preview/overview?prerelease=true`,\\r\\nthis\nwhen
true,
overrides\nthe\\r\\n`settings?.item.prerelease_integrations_enabled`
which is false\nby\\r\\ndefault.\\r\\n\\r\\nAfter:\\r\\n<img
width=\\\"1407\\\" alt=\\\"Screenshot\n2023-06-22 at 11 16
52\nAM\\\"\\r\\nsrc=\\\"a0fd4ea5-b54b-45ea-9903-b43a24600e7e\\\">\",\"sha\":\"7b5b61a2ad5c08716949b6a6aa5a1562bdea6a5e\",\"branchLabelMapping\":{\"^v8.9.0$\":\"main\",\"^v(\\\\d+).(\\\\d+).\\\\d+$\":\"$1.$2\"}},\"sourcePullRequest\":{\"labels\":[\"bug\",\"release_note:skip\",\"Team:Fleet\",\"v8.9.0\"],\"number\":160244,\"url\":\"https://github.com/elastic/kibana/pull/160244\",\"mergeCommit\":{\"message\":\"[Profling][Fleet]Add\na
prerelease query param so who links to an integration can tell
where\nthe details must be read from (#160244)\\n\\nProblem:\\r\\nIn the
Profiler\nAdd data page we show instructions on how to set
up\\r\\nUniversal\nProfiling. One of the options is from the
Profiler\\r\\nintegration. So we\ndisplay a button that
links\nto\\r\\n`/app/integrations/detail/profiler_agent-8.8.0-preview/overview`.\nThe\\r\\nproblem
is this link, is that the profiler integration is still\nin\\r\\n`Beta`,
and will be until `8.10`, and when I click on that link\nthe\\r\\nerror
shown in the image below\nhappens.\\r\\nBefore:\\r\\n![Screenshot
2023-06-21 at 9
58\n29\\r\\nPM](4800bdc3-df40-4579-9e57-d4b28e13be19)\\r\\n\\r\\nSolution:\\r\\nI\nadded
an optional query param `prerelase={true|false}`
to\nthe\\r\\nintegration link. So now I changed the
link\nto:\\r\\n`/app/integrations/detail/profiler_agent-8.8.0-preview/overview?prerelease=true`,\\r\\nthis\nwhen
true,
overrides\nthe\\r\\n`settings?.item.prerelease_integrations_enabled`
which is false\nby\\r\\ndefault.\\r\\n\\r\\nAfter:\\r\\n<img
width=\\\"1407\\\" alt=\\\"Screenshot\n2023-06-22 at 11 16
52\nAM\\\"\\r\\nsrc=\\\"a0fd4ea5-b54b-45ea-9903-b43a24600e7e\\\">\",\"sha\":\"7b5b61a2ad5c08716949b6a6aa5a1562bdea6a5e\"}},\"sourceBranch\":\"main\",\"suggestedTargetBranches\":[],\"targetPullRequestStates\":[{\"branch\":\"main\",\"label\":\"v8.9.0\",\"labelRegex\":\"^v8.9.0$\",\"isSourceBranch\":true,\"state\":\"MERGED\",\"url\":\"https://github.com/elastic/kibana/pull/160244\",\"number\":160244,\"mergeCommit\":{\"message\":\"[Profling][Fleet]Add\na
prerelease query param so who links to an integration can tell
where\nthe details must be read from (#160244)\\n\\nProblem:\\r\\nIn the
Profiler\nAdd data page we show instructions on how to set
up\\r\\nUniversal\nProfiling. One of the options is from the
Profiler\\r\\nintegration. So we\ndisplay a button that
links\nto\\r\\n`/app/integrations/detail/profiler_agent-8.8.0-preview/overview`.\nThe\\r\\nproblem
is this link, is that the profiler integration is still\nin\\r\\n`Beta`,
and will be until `8.10`, and when I click on that link\nthe\\r\\nerror
shown in the image below\nhappens.\\r\\nBefore:\\r\\n![Screenshot
2023-06-21 at 9
58\n29\\r\\nPM](4800bdc3-df40-4579-9e57-d4b28e13be19)\\r\\n\\r\\nSolution:\\r\\nI\nadded
an optional query param `prerelase={true|false}`
to\nthe\\r\\nintegration link. So now I changed the
link\nto:\\r\\n`/app/integrations/detail/profiler_agent-8.8.0-preview/overview?prerelease=true`,\\r\\nthis\nwhen
true,
overrides\nthe\\r\\n`settings?.item.prerelease_integrations_enabled`
which is false\nby\\r\\ndefault.\\r\\n\\r\\nAfter:\\r\\n<img
width=\\\"1407\\\" alt=\\\"Screenshot\n2023-06-22 at 11 16
52\nAM\\\"\\r\\nsrc=\\\"a0fd4ea5-b54b-45ea-9903-b43a24600e7e\\\">\",\"sha\":\"7b5b61a2ad5c08716949b6a6aa5a1562bdea6a5e\"}}]}]\nBACKPORT-->"}}]}]
BACKPORT-->
2023-06-26 05:42:37 -07:00
..
components [8.8] [Profling][Fleet]Add a prerelease query param so who links to an integration can tell where the details must be read from (#160244) (#160511) 2023-06-26 05:42:37 -07:00
hooks [Profiling] Add Co2 and dollar cost columns and show more information action to functions table (#154097) 2023-03-31 09:09:54 -04:00
routing [Synthetics][Ux][Uptime] Use Observability Page Template from Observability Shared (#154774) 2023-04-18 15:00:15 -07:00
utils [Profiling] Add Co2 and dollar cost columns and show more information action to functions table (#154097) 2023-03-31 09:09:54 -04:00
app.tsx [Profiling] adding invalid license page (#154866) 2023-04-13 17:16:12 -04:00
index.tsx
plugin.tsx Use Observability Page Template from Observability Shared in APM and Profiling (#154776) 2023-04-18 11:03:44 +02:00
services.ts [Profling] Single-click setup from Kibana (#148959) 2023-02-07 06:10:30 -07:00
types.ts [Synthetics][Ux][Uptime] Use Observability Page Template from Observability Shared (#154774) 2023-04-18 15:00:15 -07:00