Skip to content

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

})

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
@danieljackins danieljackins deleted the filter-fix branch February 13, 2024 18:01
@github-actions github-actions bot mentioned this pull request Feb 13, 2024
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