Skip to content

fix(middleware): do not import user middleware if not preset#9057

Merged
matthewp merged 1 commit intomainfrom
fix/integration-middleware-api
Nov 10, 2023
Merged

fix(middleware): do not import user middleware if not preset#9057
matthewp merged 1 commit intomainfrom
fix/integration-middleware-api

Conversation

@ematipico
Copy link
Member

@ematipico ematipico commented Nov 10, 2023

Changes

Fix #9047

We need to track if the user doesn't have a middleware. If not, we should not attempt to import it.

Testing

I created a new fixture with not user middleware but with integration middlewares.

Docs

N/A

@changeset-bot
Copy link

changeset-bot bot commented Nov 10, 2023

🦋 Changeset detected

Latest commit: 625c54f

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

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

@ematipico ematipico force-pushed the fix/integration-middleware-api branch from 041a7ae to cdfb7c4 Compare November 10, 2023 14:49
@github-actions github-actions bot added pkg: astro Related to the core `astro` package (scope) pr: docs A PR that includes documentation for review labels Nov 10, 2023
@ematipico ematipico force-pushed the fix/integration-middleware-api branch from cdfb7c4 to 625c54f Compare November 10, 2023 14:52
@ematipico ematipico requested a review from matthewp November 10, 2023 14:52
@matthewp matthewp merged commit 1bc3319 into main Nov 10, 2023
@matthewp matthewp deleted the fix/integration-middleware-api branch November 10, 2023 16:11
@astrobot-houston astrobot-houston mentioned this pull request Nov 10, 2023
@lilnasy
Copy link
Contributor

lilnasy commented Nov 10, 2023

@ematipico Not sure how this was any different from the original iteration. Line 47 is untouched as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: astro Related to the core `astro` package (scope) pr: docs A PR that includes documentation for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't add middleware with integrations

3 participants