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

fix: add shell open events with entrypoints COMPASS-8136 #6106

Merged
merged 4 commits into from
Aug 12, 2024

Conversation

paula-stacho
Copy link
Contributor

@paula-stacho paula-stacho commented Aug 12, 2024

Description

Adding Shell Open events, with entrypoint of either sidebar | databases | collections | collection.

Checklist

Motivation and Context

  • Bugfix
  • New feature
  • Dependency update
  • Misc

Open Questions

Dependents

Types of changes

  • Backport Needed
  • Patch (non-breaking change which fixes an issue)
  • Minor (non-breaking change which adds functionality)
  • Major (fix or feature that would cause existing functionality to change)

@paula-stacho paula-stacho changed the title add events fix: add shell open events with entrypoints COMPASS-8136 Aug 12, 2024
@github-actions github-actions bot added the fix label Aug 12, 2024
@paula-stacho paula-stacho added the no release notes Fix or feature not for release notes label Aug 12, 2024
@paula-stacho paula-stacho marked this pull request as ready for review August 12, 2024 09:10
@alenakhineika
Copy link
Contributor

PR looks good! Curious, did you find a PR where we have removed it or how did you find the format of the event properties?

@paula-stacho
Copy link
Contributor Author

PR looks good! Curious, did you find a PR where we have removed it or how did you find the format of the event properties?

Oooooh! I don't know where I had the information from when I was writing the ticket description but it was a mistake. I dug a bit more into this and realised the existing Shell Show event is still being triggered and tracks the show command! 🤦 That's why it couldn't be find in the code. Changing the new event to Shell Open.

@@ -291,6 +293,7 @@ const ConnectionsNavigation: React.FC<ConnectionsNavigationProps> = ({
return;
case 'open-shell':
openShellWorkspace(item.connectionInfo.id, { newTab: true });
track('Shell Open', { entrypoint: 'sidebar' }, item.connectionInfo);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe we don't use a 'Shell '-prefixed name at all if we want to avoid collisions entirely?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right, originally I thought I am following a convention but it's safer to reserve that convention for the in-shell events

@paula-stacho paula-stacho merged commit 9b03158 into main Aug 12, 2024
28 checks passed
@paula-stacho paula-stacho deleted the COMPASS-8136 branch August 12, 2024 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix no release notes Fix or feature not for release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants