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

Fix Custom Threshold Rule ViewInAppUrl does not honor space #201793

Merged
merged 21 commits into from
Dec 11, 2024

Conversation

Dosant
Copy link
Contributor

@Dosant Dosant commented Nov 26, 2024

Summary

Close #201378
Fix #201333

  • [Share] Allow to pass spaceId to getRedirectUrl to build a URL with a specific spaceId
  • Fix Custom Threshold Rule ViewInAppUrl does not honor Space

@Dosant Dosant requested a review from maryam-saeidi November 26, 2024 13:56
@Dosant
Copy link
Contributor Author

Dosant commented Nov 27, 2024

@elasticmachine merge upstream

Copy link
Member

@maryam-saeidi maryam-saeidi left a comment

Choose a reason for hiding this comment

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

Tested with changes mentioned here, and it worked as expected 🚀

image

@Dosant Dosant marked this pull request as ready for review November 27, 2024 10:46
@Dosant Dosant requested a review from a team as a code owner November 27, 2024 10:46
@Dosant Dosant added release_note:skip Skip the PR/issue when compiling release notes Team:SharedUX Team label for AppEx-SharedUX (formerly Global Experience) backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) labels Nov 27, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/appex-sharedux (Team:SharedUX)

Copy link
Contributor

@sebelga sebelga left a comment

Choose a reason for hiding this comment

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

LGTM! 👍

@Dosant Dosant requested review from a team as code owners November 29, 2024 08:31
@botelastic botelastic bot added ci:project-deploy-observability Create an Observability project Team:obs-ux-management Observability Management User Experience Team labels Nov 29, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)

Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

Copy link
Member

@pheyos pheyos left a comment

Choose a reason for hiding this comment

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

Deployment agnostic test service changes LGTM

@Dosant Dosant changed the title [Share] support spaceId in getRedirectUrl Fix Custom Threshold Rule ViewInAppUrl does not honour Space Nov 29, 2024
@Dosant Dosant changed the title Fix Custom Threshold Rule ViewInAppUrl does not honour Space Fix Custom Threshold Rule ViewInAppUrl does not honor space Nov 29, 2024
@Dosant Dosant removed the backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) label Nov 29, 2024
@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🎉 All tests passed! - kibana-flaky-test-suite-runner#7572

[✅] x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.config.ts: 25/25 tests passed.

see run history

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🎉 All tests passed! - kibana-flaky-test-suite-runner#7571

[✅] x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.serverless.config.ts: 25/25 tests passed.

see run history

@maryam-saeidi
Copy link
Member

Unfortunately, running the whole test config against MKI still fails for me :(

image

I am looking into replacing synthtrace with data-forge.

@maryam-saeidi
Copy link
Member

Finally!

image

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🎉 All tests passed! - kibana-flaky-test-suite-runner#7573

[✅] x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.serverless.config.ts: 25/25 tests passed.

see run history

@elasticmachine
Copy link
Contributor

elasticmachine commented Dec 10, 2024

💛 Build succeeded, but was flaky

  • Buildkite Build
  • Commit: 252d471
  • Kibana Serverless Image: docker.elastic.co/kibana-ci/kibana-serverless:pr-201793-252d471956be

Failed CI Steps

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
share 91 92 +1

Page load bundle

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

id before after diff
observability 104.8KB 104.8KB +22.0B
share 58.2KB 58.4KB +268.0B
total +290.0B

History

@Dosant Dosant merged commit f1f3a4f into elastic:main Dec 11, 2024
12 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.17, 8.x

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

@Dosant
Copy link
Contributor Author

Dosant commented Dec 11, 2024

Great job @maryam-saeidi on following through with tests 👏

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Dec 11, 2024
…c#201793)

## Summary

Close elastic#201378
Fix elastic#201333

- [Share] Allow to pass `spaceId` to `getRedirectUrl` to build a URL
with a specific `spaceId`
- Fix Custom Threshold Rule ViewInAppUrl does not honor Space

---------

Co-authored-by: Maryam Saeidi <maryam.saeidi@elastic.co>
(cherry picked from commit f1f3a4f)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Dec 11, 2024
…c#201793)

## Summary

Close elastic#201378
Fix elastic#201333

- [Share] Allow to pass `spaceId` to `getRedirectUrl` to build a URL
with a specific `spaceId`
- Fix Custom Threshold Rule ViewInAppUrl does not honor Space

---------

Co-authored-by: Maryam Saeidi <maryam.saeidi@elastic.co>
(cherry picked from commit f1f3a4f)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.17
8.x

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

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Dec 11, 2024
…or space (#201793) (#203736)

# Backport

This will backport the following commits from `main` to `8.x`:
- [Fix Custom Threshold Rule &#x60;ViewInAppUrl&#x60; does not honor
space (#201793)](#201793)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Anton
Dosov","email":"anton.dosov@elastic.co"},"sourceCommit":{"committedDate":"2024-12-11T09:39:01Z","message":"Fix
Custom Threshold Rule `ViewInAppUrl` does not honor space
(#201793)\n\n## Summary\r\n\r\nClose
https://github.com/elastic/kibana/issues/201378\r\nFix
https://github.com/elastic/kibana/issues/201333\r\n\r\n- [Share] Allow
to pass `spaceId` to `getRedirectUrl` to build a URL\r\nwith a specific
`spaceId`\r\n- Fix Custom Threshold Rule ViewInAppUrl does not honor
Space\r\n\r\n---------\r\n\r\nCo-authored-by: Maryam Saeidi
<maryam.saeidi@elastic.co>","sha":"f1f3a4fddd34a08e33d2778a09f2166d6d1b02a0","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","v9.0.0","Team:SharedUX","ci:project-deploy-observability","Team:obs-ux-management","backport:version","v8.18.0","v8.17.1"],"title":"Fix
Custom Threshold Rule `ViewInAppUrl` does not honor
space","number":201793,"url":"https://github.com/elastic/kibana/pull/201793","mergeCommit":{"message":"Fix
Custom Threshold Rule `ViewInAppUrl` does not honor space
(#201793)\n\n## Summary\r\n\r\nClose
https://github.com/elastic/kibana/issues/201378\r\nFix
https://github.com/elastic/kibana/issues/201333\r\n\r\n- [Share] Allow
to pass `spaceId` to `getRedirectUrl` to build a URL\r\nwith a specific
`spaceId`\r\n- Fix Custom Threshold Rule ViewInAppUrl does not honor
Space\r\n\r\n---------\r\n\r\nCo-authored-by: Maryam Saeidi
<maryam.saeidi@elastic.co>","sha":"f1f3a4fddd34a08e33d2778a09f2166d6d1b02a0"}},"sourceBranch":"main","suggestedTargetBranches":["8.x","8.17"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201793","number":201793,"mergeCommit":{"message":"Fix
Custom Threshold Rule `ViewInAppUrl` does not honor space
(#201793)\n\n## Summary\r\n\r\nClose
https://github.com/elastic/kibana/issues/201378\r\nFix
https://github.com/elastic/kibana/issues/201333\r\n\r\n- [Share] Allow
to pass `spaceId` to `getRedirectUrl` to build a URL\r\nwith a specific
`spaceId`\r\n- Fix Custom Threshold Rule ViewInAppUrl does not honor
Space\r\n\r\n---------\r\n\r\nCo-authored-by: Maryam Saeidi
<maryam.saeidi@elastic.co>","sha":"f1f3a4fddd34a08e33d2778a09f2166d6d1b02a0"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
kibanamachine added a commit that referenced this pull request Dec 11, 2024
…nor space (#201793) (#203735)

# Backport

This will backport the following commits from `main` to `8.17`:
- [Fix Custom Threshold Rule &#x60;ViewInAppUrl&#x60; does not honor
space (#201793)](#201793)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Anton
Dosov","email":"anton.dosov@elastic.co"},"sourceCommit":{"committedDate":"2024-12-11T09:39:01Z","message":"Fix
Custom Threshold Rule `ViewInAppUrl` does not honor space
(#201793)\n\n## Summary\r\n\r\nClose
https://github.com/elastic/kibana/issues/201378\r\nFix
https://github.com/elastic/kibana/issues/201333\r\n\r\n- [Share] Allow
to pass `spaceId` to `getRedirectUrl` to build a URL\r\nwith a specific
`spaceId`\r\n- Fix Custom Threshold Rule ViewInAppUrl does not honor
Space\r\n\r\n---------\r\n\r\nCo-authored-by: Maryam Saeidi
<maryam.saeidi@elastic.co>","sha":"f1f3a4fddd34a08e33d2778a09f2166d6d1b02a0","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","v9.0.0","Team:SharedUX","ci:project-deploy-observability","Team:obs-ux-management","backport:version","v8.18.0","v8.17.1"],"title":"Fix
Custom Threshold Rule `ViewInAppUrl` does not honor
space","number":201793,"url":"https://github.com/elastic/kibana/pull/201793","mergeCommit":{"message":"Fix
Custom Threshold Rule `ViewInAppUrl` does not honor space
(#201793)\n\n## Summary\r\n\r\nClose
https://github.com/elastic/kibana/issues/201378\r\nFix
https://github.com/elastic/kibana/issues/201333\r\n\r\n- [Share] Allow
to pass `spaceId` to `getRedirectUrl` to build a URL\r\nwith a specific
`spaceId`\r\n- Fix Custom Threshold Rule ViewInAppUrl does not honor
Space\r\n\r\n---------\r\n\r\nCo-authored-by: Maryam Saeidi
<maryam.saeidi@elastic.co>","sha":"f1f3a4fddd34a08e33d2778a09f2166d6d1b02a0"}},"sourceBranch":"main","suggestedTargetBranches":["8.x","8.17"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201793","number":201793,"mergeCommit":{"message":"Fix
Custom Threshold Rule `ViewInAppUrl` does not honor space
(#201793)\n\n## Summary\r\n\r\nClose
https://github.com/elastic/kibana/issues/201378\r\nFix
https://github.com/elastic/kibana/issues/201333\r\n\r\n- [Share] Allow
to pass `spaceId` to `getRedirectUrl` to build a URL\r\nwith a specific
`spaceId`\r\n- Fix Custom Threshold Rule ViewInAppUrl does not honor
Space\r\n\r\n---------\r\n\r\nCo-authored-by: Maryam Saeidi
<maryam.saeidi@elastic.co>","sha":"f1f3a4fddd34a08e33d2778a09f2166d6d1b02a0"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Dec 12, 2024
…c#201793)

## Summary

Close elastic#201378
Fix elastic#201333

- [Share] Allow to pass `spaceId` to `getRedirectUrl` to build a URL
with a specific `spaceId`
- Fix Custom Threshold Rule ViewInAppUrl does not honor Space

---------

Co-authored-by: Maryam Saeidi <maryam.saeidi@elastic.co>
@fkanout
Copy link
Contributor

fkanout commented Dec 12, 2024

Thank you @maryam-saeidi, for the follow-up 💪🏻 !

@mistic mistic removed the v8.17.0 label Dec 12, 2024
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 ci:project-deploy-observability Create an Observability project release_note:fix Team:obs-ux-management Observability Management User Experience Team Team:SharedUX Team label for AppEx-SharedUX (formerly Global Experience) v8.17.1 v8.18.0 v9.0.0
Projects
None yet
9 participants