-
Notifications
You must be signed in to change notification settings - Fork 3
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
197 Move all V3 Controllers into a Rest Namespace #198
197 Move all V3 Controllers into a Rest Namespace #198
Conversation
I think there's something wrong with Travis. Not sure what it is. |
869b7ed
to
03afb47
Compare
# We exclude the devise routes from these rake tasks because they load the | ||
# models. When loading the models, the database needs to exist, or else it | ||
# throws an error. | ||
unless rake_task?(%w(db:create db:migrate db:drop |
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.
I think this is still needed, might also be the problem Travis has, see #69.
config/routes.rb
Outdated
# We exclude these Devise mappings from these rake tasks because they | ||
# load the models. When loading the models, the database needs to exist, | ||
# or else it throws an error. | ||
unless rake_task?(%w(db:create db:migrate db:drop)) |
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.
Might be necessary to add db:recreate
and db:recreate:seed
as well (you forgot to copy a line 😄)
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.
Right 😅
cb59436
to
d65e1fe
Compare
d65e1fe
to
d447d10
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.
spec/support/api/schemas/rest/organizational_units_controller.json
125: "href": "/v3/{#/definitions/id}",
spec/support/api/schemas/rest/version_controller.json
57: "href": "/v3/version",
spec/support/api/schemas/rest/repositories_controller.json
127: "href": "/v3/{#/definitions/id}",
136: "href": "/v3/{#/definitions/organizational_unit_id}",
Codecov Report
@@ Coverage Diff @@
## master #198 +/- ##
==========================================
- Coverage 99.97% 99.97% -0.01%
==========================================
Files 196 197 +1
Lines 4621 4599 -22
==========================================
- Hits 4620 4598 -22
Misses 1 1
Continue to review full report at Codecov.
|
# This is the base class for all API Version 3 Controllers. | ||
class ApplicationController < ActionController::API | ||
extend DSL | ||
|
||
context do | ||
{current_user: current_user} | ||
end | ||
|
||
def no_op |
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.
Wrap in :nocov:
please
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.
Better: 664c3e4
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.
👍
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.
Well, that took some doing... |
This shall fix #197 along with some cleanup (see the commit messages).