-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Append serverless project ID to Support URL #171448
Append serverless project ID to Support URL #171448
Conversation
42369ab
to
199c86b
Compare
Pinging @elastic/appex-sharedux (Team:SharedUX) |
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.
LGTM
let supportUrl = ELASTIC_SUPPORT_LINK; | ||
if (this.config.serverless?.project_id) { | ||
// serverless projects use config.id and config.serverless.project_id | ||
supportUrl += '?serverless_project_id=' + this.config.serverless.project_id; | ||
} else if (this.config.id) { | ||
// non-serverless Cloud projects only use config.id | ||
supportUrl += '?cloud_deployment_id=' + this.config.id; | ||
} |
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.
NIT: I would extract that to an getSupportUrl(config: CloudConfigType): string
helper function
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.
Code LGTM
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Module Count
Page load bundle
History
To update your PR or re-run it, just comment with: cc @tsullivan |
This PR updates the URL to the Elastic Support Portal registered by the Cloud plugin, to include the configured deployment ID as a querystring parameter.
?serverless_project_id=123ABC
?cloud_deployment_id=123ABC
Where this link can be found in the UI: