Brightspace / polymer-siren-behaviors

utility library for shared behaviors for building siren resource based web-components
Apache License 2.0
0 stars 5 forks source link

DE53088 - [CERT 20.23.05] Add extra details on error messages for fetch and extra details to telemetry logged by LX #76

Closed Kiefer-Co-D2L closed 1 year ago

Kiefer-Co-D2L commented 1 year ago

Relevant Rally Links

Description

Problem Description - Current Behaviour: The error message and telemetry logging are missing data in 2 files.

Problem Description - Expected Behaviour: We want to log details for why the status is blank in these cases.

Analysis/Investigation Details: <What analysis/investigation has been done so far to identify that this is a defect?>

  • SirenAction Fetch throws an exception with missing information. ${resp.statusText} statusText is incorrect and needs to be corrected to status.
  • SirenAction Fetch error also needs to include the data. The current way it is thrown will not result in the response data being included. Therefore it needs to be refactored into the message itself
  • For SequencesCompletionTrackingMixin there are 2 telemetry events being logged
    • 1 needs to have the action serialized correctly
    • both need to be augmented to also include the error message

Goal/Solution

In siren-action-behavior.js:

JSON error response:

image

Plaintext error response:

image

Related PRs

Remaining Work

ghost commented 1 year ago

:tada: This PR is included in version 1.6.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: