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

docs(feedback): Add migration docs for moving from feedbackIntegration 7.x to 8.0.0 #11731

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

ryan953
Copy link
Member

@ryan953 ryan953 commented Apr 22, 2024

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

@ryan953 ryan953 changed the title docs(feedback): Add migration docs for moving from feedbackIntegration v7.x to v8.0.0-beta.2 docs(feedback): Add migration docs for moving from feedbackIntegration v7.x to v8.0.0 May 6, 2024
@ryan953 ryan953 force-pushed the ryan953/feedback-migration-docs branch from c4562f1 to 99250b4 Compare May 9, 2024 14:11
@ryan953 ryan953 changed the title docs(feedback): Add migration docs for moving from feedbackIntegration v7.x to v8.0.0 docs(feedback): Add migration docs for moving from feedbackIntegration 7.x to 8.0.0 May 9, 2024
@ryan953 ryan953 marked this pull request as ready for review May 9, 2024 15:07
@ryan953 ryan953 requested a review from a team as a code owner May 9, 2024 15:07
@@ -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.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
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.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
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. |
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
| `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. |
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
| `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:
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Alternativly you can call `createForm()` and control the form directly:
Alternatively you can call `createForm()` and control the form directly:

Comment on lines +61 to +62
// Option 2: Get a reference from the SDK client
const feedbackInstance = getClient()?.getIntegrationByName('Feedback');
Copy link
Member

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)"` |
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
| - | `isRequiredLabel` | `"(required)"` |
| `isRequiredText` | `isRequiredLabel` | `"(required)"` |

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants