microsoft / iot-cardboard-js

iot-cardboard-js is a React library for building experiences for IoT applications
https://main--601c6b2fcd385c002100f14c.chromatic.com/
MIT License
84 stars 26 forks source link

Data pusher fix duplication in URL #907

Closed pasanchMSFT closed 1 year ago

pasanchMSFT commented 1 year ago

Summary of changes ๐Ÿ”

Fixes duplication created by setting a baseURL in the axios instance used for data pusher requests. URL is now managed by generateURL function exclusively.

this.axiosInstance can only be found in the following methods of ADT Adapter:

Testing ๐Ÿงช

Try out data pusher stories locally with both CORS on and off.

Checklist โœ”๏ธ

msnyder-msft commented 1 year ago

we have had several point fix PRs. How are we doing validations to ensure we don't need more fixes like this?

pasanchMSFT commented 1 year ago

we have had several point fix PRs. How are we doing validations to ensure we don't need more fixes like this?

Basically running scenarios manually, would be useful to have testing for these adapter methods but currently we don't have that in place.

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 1.0.0-beta.389 :tada:

The release is available on:

Your semantic-release bot :package::rocket: