-
-
Notifications
You must be signed in to change notification settings - Fork 964
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: Add all json schemas endpoint #1703
Conversation
I'm not sure which docs I'm supposed to update and also if I should commit the generated code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thank you for your contribution! This looks pretty good and I have some ideas how to improve it further :)
Codecov Report
@@ Coverage Diff @@
## master #1703 +/- ##
==========================================
- Coverage 74.10% 74.06% -0.05%
==========================================
Files 260 260
Lines 12715 12770 +55
==========================================
+ Hits 9423 9458 +35
- Misses 2667 2681 +14
- Partials 625 631 +6
Continue to review full report at Codecov.
|
62d97fb
to
bbb7a17
Compare
@aeneasr i hope this is to your liking |
bbb7a17
to
b97254e
Compare
Thank you! It looks like the tests fail with a panic right now: Could you please take a look? :) |
b97254e
to
84e01ce
Compare
Uh the endpoint returns the same schema multiple times. I need to fix that. |
84e01ce
to
d6466fc
Compare
I think the implementation should be fixed now. I also improved the test, because the bug slipped past it. Sorry for the many force pushes :( |
The test fail seems completely unrelated to this PR |
@aeneasr i think there is a but in the admin list identities endpoint. requesting page 0 and page 1 both return the same results. In this endpoint pages start at 0 and the bug is not present. this should be consistent though and the spec says pages start at 0, so the admin list identities endpoint needs to be fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating the PR 👍
I have some ideas how to improve the code even further 😉
d6466fc
to
7b95b1a
Compare
@zepatrik i applied all your suggestions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, this is going in a very good direction 😉
Just some final details, then it should be good to merge 👍
7b95b1a
to
e0c4e48
Compare
I hope this is all good now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, nearly there 👍
e0c4e48
to
4720dc8
Compare
@zepatrik i don't know how the hot-reloading of the config should work, can you give me a hint? |
What you did should work already, isn't it? |
yes it works, but it's a bit hacky |
circleci test fails because of something unrelated with goreleaser |
You have to merge/rebase to current master 😉 #1730 |
4720dc8
to
874dc1b
Compare
Ok :) I wasn't sure what the merge strategy is, so I didn't want to spam the git log |
the failed test to me seems unrelated to these changes |
@zepatrik i fixed the coverage as you suggested. the remaining uncovered lines are all error handling. i don't know if that is something that should be covered, because it wasn't covered before too. |
That is fine, only errors that are expected to occur during normal usage have to be covered. These are not expected errors. |
@zepatrik green light? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some swagger stuff :)
dd1ff61
to
6880efc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, looks good to me 😉 Thanks for all the hard work 👍
Thanks for all your nice comments :) It was a pleasure to work with so friendly developers |
When will this be merged/released? |
I am waiting for @aeneasr to approve. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you ! Looking great and also awesome tests 😎 You’re almost there!
6880efc
to
2517dff
Compare
@aeneasr anything missing for the merge? |
Just got back from holidays. Will review as soon as possible! |
2517dff
to
6a4a83f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thank you! 🎉 Your contribution makes Ory better :)
This PR implements an endpoint to list all Json schemas
Related issue(s)
#1699
Checklist
contributing code guidelines.
vulnerability. If this pull request addresses a security. vulnerability, I
confirm that I got green light (please contact
security@ory.sh) from the maintainers to push
the changes.
works.