-
Notifications
You must be signed in to change notification settings - Fork 24
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
Improve error message & more frontend analytics #5490
Conversation
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.
Nice! Already looking very good.
I had one thought about page visits: Maybe we can track this on a lower level via the react router. So, each page visit/change is tracked. What do you think?
@@ -237,6 +242,9 @@ class DatasetActionView extends React.PureComponent<Props, State> { | |||
to={`/datasets/${dataset.owningOrganization}/${dataset.name}/edit`} | |||
title="Open Dataset Settings" | |||
disabled={isReloading} | |||
onClick={() => | |||
sendAnalyticsEvent("open_dataset_settings", { datasetName: dataset.name }) |
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.
I think, it would be better to trigger this event within componentDidMount
of the settings view. That way, we also catch this event, when another settings link is used (e.g., within the dataset-info-tab of the tracing view).
let needsConversion = true; | ||
for (const file of files) { | ||
const filenameParts = file.name.split("."); | ||
const fileExtension = filenameParts[filenameParts.length - 1].toLowerCase(); | ||
sendAnalyticsEvent("add_files_to_upload", { fileExtension }); |
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.
If I drop 100 files, this event will be triggered 100 times. Can we group this by fileExtension? Then, the file count could also be transmitted. E.g.
for (const fileExtension of uniqueFileExtensions) {
const fileCount = amount of files with that extension
sendAnalyticsEvent("add_files_to_upload", { fileExtension, fileCount });
}
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.
Good catch 👍
I just applied your 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.
🕺
This PR adds an additional error Toast for #5296 to better explain the error to the user and adds the requested analytics tracking of #5445 except for "Store custom layout" as it does not make sense in my opinion as this is tightly coupled to "Customize layout (i.e. move panels, resize panels)" when the auto-saving layout is turned on (which is the default).
If you think tracking this event still makes sense just notify me 😄
URL of deployed dev instance (used for testing):
Steps to test:
http://<>/projects/create
)I added the second error, to tell the user why this step failed and how to fix this error.
Issues:
[ ] Updated (unreleased) changelog[ ] Updated (unreleased) migration guide if applicable[ ] Updated documentation if applicable[ ] Adapted wk-connect if datastore API changes[ ] Needs datastore update after deployment