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

[Uptime] fix synthetics recorder file upload #127614

Merged

Conversation

dominiqueclarke
Copy link
Contributor

@dominiqueclarke dominiqueclarke commented Mar 14, 2022

Summary

Fixes #127515

Accepts text/javascript, application/javascript and application/x-javascript mime types for the Script Recorder upload.

Testing

Testing should be done in Chrome, Firefox and Safari.

  1. Navigate to Monitor Management
  2. Click Add Monitor
  3. Select Browser monitor type in monitor type dropdown
  4. Select Script Recorder as the browser source
  5. Using any of the files found here, upload to via the Script Recorder
  6. Confirm that they are uploaded successfully by clicking the Show Script buton

@dominiqueclarke dominiqueclarke added v8.2.0 release_note:fix auto-backport Deprecated - use backport:version if exact versions are needed bug Fixes for quality problems that affect the customer experience Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v8.3.0 labels Mar 31, 2022
@dominiqueclarke dominiqueclarke marked this pull request as ready for review March 31, 2022 02:37
@dominiqueclarke dominiqueclarke requested a review from a team as a code owner March 31, 2022 02:37
@elasticmachine
Copy link
Contributor

Pinging @elastic/uptime (Team:uptime)

@@ -38,7 +38,7 @@ export function Uploader({ onUpload }: Props) {
onUpload({ scriptText: '', fileName: '' });
return;
}
if (files.length && files[0].type !== 'text/javascript') {
if (files.length && !files[0].type.includes('javascript')) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

MIght need to have regex that includes javascript and ecmascript.

@dominiqueclarke dominiqueclarke changed the title synthetics - fix synthetics recorder file upload [Uptime] fix synthetics recorder file upload Mar 31, 2022
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
uptime 776.8KB 776.8KB +4.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@shahzad31 shahzad31 merged commit 347acc9 into elastic:main Apr 7, 2022
@shahzad31 shahzad31 deleted the fix/synthetics-recorder-upload branch April 7, 2022 14:53
kibanamachine pushed a commit that referenced this pull request Apr 7, 2022
Co-authored-by: shahzad31 <shahzad.muhammad@elastic.co>
(cherry picked from commit 347acc9)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.2

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 Apr 7, 2022
Co-authored-by: shahzad31 <shahzad.muhammad@elastic.co>
(cherry picked from commit 347acc9)

Co-authored-by: Dominique Clarke <dominique.clarke@elastic.co>
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed bug Fixes for quality problems that affect the customer experience release_note:fix Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v8.2.0 v8.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Uptime] Cannot upload script files in UI Monitor Management or Synthetics Integration in Safari
5 participants