-
Notifications
You must be signed in to change notification settings - Fork 22
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
aem2doc parsing now done in da-collab #127
Conversation
Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
|
Note that the Playwright tests should pass again once adobe/da-collab#38 has been merged. |
I don't think we should expose these error messages to the authors. No author will ever understand a stack trace and developers have the console for debugging. This does raise some interesting considerations on parsing and what we should show in the event of an error. It's also a little scary we already think we will have errors. Do we know what those will be? 😬 |
Hi @auniverseaway, starting at the end. We're not expecting any specific errors. As a matter of fact, I have only experienced such an error once during development which was then quickly fixed by @karlpauls - after that I haven't seen any. On the other hand, as with any running process there is always the possibility of errors, albeit small. So then the question becomes. What do we do if there is an error? Some options:
So my thinking was that with a message the Author is alerted to a problem and guided to contact support. The stack trace in there could be used to send to support to help them fix the problem, but I agree that maybe this is too much for on the screen. So while I don't anticipate errors popping up what do you think the strategy should be if we have one? |
Errors are not logged to the console.
This PR is now replaced by #163 |
Description
da-collab now does its own aem2doc and vice versa parsing. This PR is to accommodate this on the client side.
It additionally contains a panel to show error messages from the server if there are any.
It also contains a bugfix to close the current websocket if the client navigates to a different document.
Related Issue
This is the client-side change for
adobe/da-collab#38
Screenshots
Of the new error panel.
Basic error message:

Stack trace can be seen when expanding:

How Has This Been Tested?
Types of changes
Checklist: