Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

fix(glean): rename events to use kebab case #68

Merged
merged 3 commits into from
Oct 25, 2023

Conversation

wtfluckey
Copy link

While reviewing #67 I noticed that we had a mix of cases when it came to naming our engagement events, so I reached out to the data analytics team to see if they had a preference. They decided on kebab-case, so this PR simply updates the existing engagement events, plus those in #67, to be consistent. Two other small changes called out in comments.

This PR is to be merged into #67.

@wtfluckey wtfluckey requested a review from a team as a code owner October 19, 2023 21:54
@@ -52,7 +52,7 @@ function previewAvatar() {
}

async function toggleNotifications() {
const dataGlean = relationship?.notifying ? 'profile.notify_stop' : 'profile.notify_start'
const dataGlean = relationship?.notifying ? 'profile.notify.stop' : 'profile.notify.start'
Copy link
Author

Choose a reason for hiding this comment

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

These events were renamed to include the . separation between notify and the action (start or stop)

@@ -23,7 +23,7 @@ const { client } = $(useMasto())
const useStarFavoriteIcon = usePreferences('useStarFavoriteIcon')
const { share, isSupported: isShareSupported } = useShare()

function recordEngagement(dataGlean) {
function recordEngagement(dataGlean: string) {
Copy link
Author

Choose a reason for hiding this comment

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

Added a type here to make vscode happy

Choose a reason for hiding this comment

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

Hmm my vscode doesn't get sad over this. Do you have any idea what the difference is in our IDEs?

Copy link
Author

Choose a reason for hiding this comment

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

Not sure. I thought maybe I had a typescript extension on in vscode, but apparently I don't. Do you have one?

Choose a reason for hiding this comment

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

I disabled some extension with the word TypeScript in it that I couldn't find in the marketplace, and then I updated my IDE. Now I'm getting the error. Not sure which of the two was the culprit though

@wtfluckey wtfluckey merged commit f964cbb into fix/profile-analytics Oct 25, 2023
@wtfluckey wtfluckey deleted the fix/kebab-events branch October 25, 2023 15:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants