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

feat: Introducing the default relation plugin option #175

Merged
merged 7 commits into from
Sep 29, 2022

Conversation

iifawzi
Copy link
Contributor

@iifawzi iifawzi commented Sep 13, 2022

Signed-off-by: iifawzi iifawzie@gmail.com

Hi, this PR is adding the defaultRelation option that can be used as a plugin option to eliminate the need of specifying the relation in each route

resolving: #170

Checklist

Signed-off-by: iifawzi <iifawzie@gmail.com>
Signed-off-by: iifawzi <iifawzie@gmail.com>
Copy link
Member

@Eomm Eomm left a comment

Choose a reason for hiding this comment

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

just 2 suggestions 👍🏽

then LGTM

test/auth.test.js Outdated Show resolved Hide resolved
test/auth.test.js Outdated Show resolved Hide resolved
iifawzi and others added 2 commits September 13, 2022 09:54
Co-authored-by: Manuel Spigolon <behemoth89@gmail.com>
Co-authored-by: Manuel Spigolon <behemoth89@gmail.com>
test/auth.test.js Outdated Show resolved Hide resolved
Comment on lines 46 to 47
app.register(fastifyAuth, { defaultRelation: 'or' })
.after(() => {
Copy link
Member

Choose a reason for hiding this comment

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

after after(), use await.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't get it, could you elaborate more?

Copy link
Member

Choose a reason for hiding this comment

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

Sorry: instead of after, use await.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done, committed the changes

Signed-off-by: iifawzi <iifawzie@gmail.com>
Signed-off-by: iifawzi <iifawzie@gmail.com>
test/auth.test.js Outdated Show resolved Hide resolved
Signed-off-by: iifawzi <iifawzie@gmail.com>
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@Fdawgs Fdawgs requested a review from Eomm September 19, 2022 09:37
@Eomm Eomm merged commit 6bdb2a9 into fastify:master Sep 29, 2022
@climba03003 climba03003 mentioned this pull request Nov 30, 2022
2 tasks
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.

None yet

3 participants