-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
Expose decoded cloudId components from the cloud plugin's contract #159442
Merged
pgayvallet
merged 18 commits into
elastic:main
from
pgayvallet:kbn-138813-decode-cloud-id
Jun 13, 2023
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
dc08921
add urls to cloud browser contracts
pgayvallet 607fb45
adapt fleet usages
pgayvallet 80934be
adapt other usages
pgayvallet d08de8c
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js -…
kibanamachine 6e23426
[CI] Auto-commit changed files from 'node scripts/lint_ts_projects --…
kibanamachine 65057b9
adapt unit tests
pgayvallet f2b91d5
add deploymentId to public contract
pgayvallet e0dc1cc
update the mocks
pgayvallet 296beda
add unit tests for plugin
pgayvallet 2485859
remove from start contract given unused for now
pgayvallet 093ea96
Merge remote-tracking branch 'upstream/main' into kbn-138813-decode-c…
pgayvallet fdc5d6c
fix snapshot
pgayvallet b38b74f
Merge remote-tracking branch 'upstream/main' into kbn-138813-decode-c…
pgayvallet cdb183f
Merge remote-tracking branch 'upstream/main' into kbn-138813-decode-c…
pgayvallet e8e2e1b
use real logger
pgayvallet 772b6b8
Merge remote-tracking branch 'upstream/main' into kbn-138813-decode-c…
pgayvallet df14feb
[CI] Auto-commit changed files from 'node scripts/lint_ts_projects --…
kibanamachine a5c8579
also adapt server-side call
pgayvallet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
export const parseDeploymentIdFromDeploymentUrlMock = jest.fn(); | ||
|
||
jest.doMock('../common/parse_deployment_id_from_deployment_url', () => { | ||
return { | ||
parseDeploymentIdFromDeploymentUrl: parseDeploymentIdFromDeploymentUrlMock, | ||
}; | ||
}); | ||
|
||
export const decodeCloudIdMock = jest.fn(); | ||
|
||
jest.doMock('../common/decode_cloud_id', () => { | ||
return { | ||
decodeCloudId: decodeCloudIdMock, | ||
}; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added the
deploymentId
(which was only exposed on the server-side contract) while I was at it, given some plugins recoded their helper to access it.