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
docs(feedback): Add migration docs for moving from feedbackIntegration 7.x to 8.0.0 #11731
base: develop
Are you sure you want to change the base?
Conversation
…n v7.x to v8.0.0-beta.2
c4562f1
to
99250b4
Compare
@@ -0,0 +1,148 @@ | |||
# End of Feedback Beta | |||
|
|||
With the release of 8.0.0 Sentry Feedback is now out of Beta. This means that the usual stabilty guarantees apply. |
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.
With the release of 8.0.0 Sentry Feedback is now out of Beta. This means that the usual stabilty guarantees apply. | |
With the release of 8.0.0, Sentry Feedback is now out of Beta. This means that the usual stabilty guarantees apply. |
Feedback 8.0.0 requires server version 24.4.2 and above. | ||
|
||
Because of experimentation and rapid iteration, during the Beta period some bugs and problems came up which have since | ||
been fixed/improved, as well as API's which have been streamlined and chanaged. |
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.
been fixed/improved, as well as API's which have been streamlined and chanaged. | |
been fixed/improved, as well as API's which have been streamlined and changed. |
|
||
| Method Name | Replacement | Notes | | ||
| ------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| `feedback.getWidget()` | `const widget = feedback.createWidget(); widget.appendToDom()` | The SDK no longer maintains a stack of form instances. If you call `createWidget()` a new widget will be inserted into the DOM and a `ActorComponent` returned allowed you control over the lifecycle of the widget. | |
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.
| `feedback.getWidget()` | `const widget = feedback.createWidget(); widget.appendToDom()` | The SDK no longer maintains a stack of form instances. If you call `createWidget()` a new widget will be inserted into the DOM and a `ActorComponent` returned allowed you control over the lifecycle of the widget. | | |
| `feedback.getWidget()` | `const widget = feedback.createWidget(); widget.appendToDom()` | The SDK no longer maintains a stack of form instances. If you call `createWidget()` a new widget will be inserted into the DOM and an `ActorComponent` returned allows you control over the lifecycle of the widget. | |
| ------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| `feedback.getWidget()` | `const widget = feedback.createWidget(); widget.appendToDom()` | The SDK no longer maintains a stack of form instances. If you call `createWidget()` a new widget will be inserted into the DOM and a `ActorComponent` returned allowed you control over the lifecycle of the widget. | | ||
| - | `const form = await feedback.createForm()` | A new method `createForm()`, used internally by `createWidget()` and `attachTo()`, returns a `Promise<FeedbackDialog>` so you can control showing and hiding of the feedback form directly. | | ||
| `feedback.attachTo()` | `const unsubscribe = feedback.attachTo(myButtonElem)` | The `attachTo()` method in will create an onClick event listener to your html element that calls appendToDom() and open(). It returns a callback to remove the event listener. | |
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.
| `feedback.attachTo()` | `const unsubscribe = feedback.attachTo(myButtonElem)` | The `attachTo()` method in will create an onClick event listener to your html element that calls appendToDom() and open(). It returns a callback to remove the event listener. | | |
| `feedback.attachTo()` | `const unsubscribe = feedback.attachTo(myButtonElem)` | The `attachTo()` method will create an onClick event listener to your html element that calls `appendToDom()` and `open()`. It returns a callback to remove the event listener. | |
} | ||
``` | ||
|
||
Alternativly you can call `createForm()` and control the form directly: |
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.
Alternativly you can call `createForm()` and control the form directly: | |
Alternatively you can call `createForm()` and control the form directly: |
// Option 2: Get a reference from the SDK client | ||
const feedbackInstance = getClient()?.getIntegrationByName('Feedback'); |
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.
We have getFeedback()
now don't we?
| Old Name | New Name | Default Value | | ||
| ------------- | ----------------------- | ------------------------------ | | ||
| `buttonLabel` | `triggerLabel` | `"Report a bug"` | | ||
| - | `isRequiredLabel` | `"(required)"` | |
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.
| - | `isRequiredLabel` | `"(required)"` | | |
| `isRequiredText` | `isRequiredLabel` | `"(required)"` | |
As the User Feedback feature moves from alpha/beta to GA some changes to the public API have been made, and version requirements for the server (for on-prem users) are being solidified.
Related to getsentry/develop#1206