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
chore(api): use direct routes #2066
Conversation
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #2066 +/- ##
==========================================
+ Coverage 39.47% 41.19% +1.72%
==========================================
Files 17 127 +110
Lines 608 7707 +7099
==========================================
+ Hits 240 3175 +2935
- Misses 337 4223 +3886
- Partials 31 309 +278
Continue to review full report at Codecov.
|
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.
LGTM
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.
rest LGTM
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
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.
LGTM!
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
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.
LGTM!
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 95c89fa
|
cherry pick to release-2.0 in PR #2072 |
* chore(api): use direct routes Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> * fix: makefile Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> * fix(ci): imports Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> * chore: address comments Signed-off-by: Yue Yang <g1enyy0ung@gmail.com> Co-authored-by: Yue Yang <g1enyy0ung@gmail.com> Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
Signed-off-by: Yue Yang g1enyy0ung@gmail.com
What problem does this PR solve?
Close #1500.
Problem Summary
Since the gin-gonic/gin#2706 be merged. Now gin allows param and exact paths to existing on the same route level.
So all of the UI assets can be safely routed by
/
and/:foo/*bar
. This is almost the same as the/*any
.What is changed and how it works?
Except for all descriptions above, this PR also introduces some bug fixes and so on:
uid
indices in SQLitegorm.Model
to replace dummy fieldsRelated changes
Checklist
Tests
Side effects
Release note