Skip to content

feat(server): route metadata - #1736

Merged
LouisHaftmann merged 12 commits into
mainfrom
feat/route-metadata
Apr 7, 2022
Merged

LouisHaftmann merged 12 commits into
mainfrom
feat/route-metadata

Conversation

@LouisHaftmann

Copy link
Copy Markdown
Contributor

Implementation of route metadata #1731

@vercel

vercel Bot commented Apr 5, 2022 •

Copy link
Copy Markdown

@LouisHaftmann
LouisHaftmann requested a review from KATT April 5, 2022 22:32
KATT
KATT previously requested changes Apr 6, 2022

@KATT KATT left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This looks great! I'm impressed that you were able to dive deep and get this in place.

Left comments here. Please resolve and dismiss my current review so I get a notification :)

Furthermore, this change needs tests & docs updates, maybe add a new router-meta.test.ts-file where it's tested.

Comment thread packages/server/src/router.ts Resolved
Comment thread packages/server/src/router.ts Resolved
Comment thread packages/server/src/router.ts Resolved
@KATT KATT assigned jlalmes and LouisHaftmann and unassigned jlalmes Apr 6, 2022
@KATT
KATT requested a review from jlalmes April 6, 2022 10:50
@KATT
KATT requested a review from sachinraja April 6, 2022 17:00
@KATT
KATT dismissed their stale review April 6, 2022 17:01

Let me see if @sachinraja or @jlames sees any reason why it shouldn't be merged 👀

@KATT

This comment was marked as off-topic.

@allcontributors

This comment was marked as off-topic.

@sachinraja sachinraja left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Love this! I think this can help a lot with building third-party extensions and with a few ideas I have. Implementation wise it looks good too (wow that's a lot of changes for one generic).

As a side note I think some of the other benefits of this will also be addressed by the reusable procedures in the v10 playground.

@jlalmes jlalmes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Brilliant work, thank you @LouisHaftmann! 🚀

This is going to be super useful for greater control of auto-generated OpenAPI specs moving forward (#1724)

Let's merge ✅

@LouisHaftmann
LouisHaftmann merged commit 4ce1bce into main Apr 7, 2022
@LouisHaftmann
LouisHaftmann deleted the feat/route-metadata branch April 7, 2022 11:03
@KATT
KATT restored the feat/route-metadata branch April 7, 2022 16:40
@KATT

KATT commented Apr 7, 2022

Copy link
Copy Markdown
Member

Oh man, this messed with the pretty commit history of main so I will do some git tricks to fix it

@jlalmes

jlalmes commented Apr 7, 2022

Copy link
Copy Markdown
Contributor

@KATT

KATT commented Apr 7, 2022

Copy link
Copy Markdown
Member

I think there's settings to only allow squash commits from PR's. https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/configuring-commit-squashing-for-pull-requests

Yeah, but I need the merge ones for the next-branch and you can't decide it on a per-branch basis.

KATT added a commit that referenced this pull request Apr 7, 2022
@KATT

KATT commented Apr 7, 2022

Copy link
Copy Markdown
Member

@LouisHaftmann

Copy link
Copy Markdown
Contributor Author

Oh man, this messed with the pretty commit history of main so I will do some git tricks to fix it

sry sry sry

@github-actions

github-actions Bot commented Oct 6, 2022

Copy link
Copy Markdown
Contributor

This pull request has been locked because it had no new activity for 30 days. If you think, this PR is still necessary, create a new one with the same branch. Thank you.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Oct 6, 2022

This branch was successfully deployed

3 active deployments
Preview – www — 89f4e98d Deployed Apr 7, 2022 by vercel[bot]
Preview – next-prisma-starter — 89f4e98d Deployed Apr 7, 2022 by vercel[bot]
Preview – todomvc — 89f4e98d Deployed Apr 7, 2022 by vercel[bot]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Idea: query/mutation options similar to Fastify's route configs

4 participants