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 schema filter name collision bug #1036

Merged
merged 3 commits into from
Feb 13, 2024
Merged

Fix schema filter name collision bug #1036

merged 3 commits into from
Feb 13, 2024

Conversation

danieljackins
Copy link
Contributor

@danieljackins danieljackins commented Feb 8, 2024

This PR fixes an issue with integrations containing similar names (ie. Google Analytics and Google Analytics 4) having their schema filters applied incorrectly. It updates the filters to compare the schema filter name (which uses the creation name of the integration) with the creationName field in the remote plugin.

  • I've included a changeset (psst. run yarn changeset. Read about changesets here).

Copy link

changeset-bot bot commented Feb 8, 2024

🦋 Changeset detected

Latest commit: 0d4e6a7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@segment/analytics-next Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@silesky
Copy link
Contributor

silesky commented Feb 8, 2024

@danieljackins looks good but ugh, I see a weird BK error that seems unrelated to this PR. Any idea what's going on?

@danieljackins
Copy link
Contributor Author

@danieljackins looks good but ugh, I see a weird BK error that seems unrelated to this PR. Any idea what's going on?

I think buildkite is/was having some issues, I saw some others with the same problem

@@ -472,7 +472,7 @@ describe('schema filter', () => {
expect(updateUserProfile.track).toHaveBeenCalled()
})

it('covers different names between remote plugins and integrations', async () => {
it('works when current name differs from creation name', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add a test that would have failed without this fix? 2 integrations where the 2nd one's name starts with the entirety of the 1st one?

@danieljackins danieljackins merged commit f65c131 into master Feb 13, 2024
4 checks passed
@danieljackins danieljackins deleted the filter-fix branch February 13, 2024 18:01
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.

3 participants