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

Backend resource support for admin interface #425

Merged
merged 4 commits into from
May 8, 2017
Merged

Conversation

stefanoborini
Copy link
Contributor

Changes to the server side admin webapi to support switch to Vue based interface.

@codecov-io
Copy link

codecov-io commented May 5, 2017

Codecov Report

Merging #425 into master will increase coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #425      +/-   ##
=========================================
+ Coverage   95.26%   95.3%   +0.04%     
=========================================
  Files          96      92       -4     
  Lines        4114    4090      -24     
  Branches      254     257       +3     
=========================================
- Hits         3919    3898      -21     
+ Misses        143     141       -2     
+ Partials       52      51       -1
Impacted Files Coverage Δ
remoteappmanager/webapi/admin/container.py 95.12% <100%> (+3.45%) ⬆️
...eappmanager/webapi/admin/tests/test_application.py 100% <100%> (ø) ⬆️
...oteappmanager/webapi/admin/tests/test_container.py 100% <100%> (ø) ⬆️
remoteappmanager/webapi/admin/application.py 100% <100%> (ø) ⬆️
remoteappmanager/webapi/admin/user.py 100% <100%> (ø) ⬆️
remoteappmanager/webapi/admin/tests/test_user.py 100% <100%> (ø) ⬆️
remoteappmanager/tests/utils.py 87.25% <0%> (-5.5%) ⬇️
remoteappmanager/tests/test_application.py
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 44753d7...a64240f. Read the comment docs.

@gen.coroutine
@authenticated
def items(self, items_response, **kwargs):
db = self.application.db
Copy link
Member

Choose a reason for hiding this comment

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

You can maybe add a docstring

@gen.coroutine
@authenticated
def items(self, items_response, **kwargs):
users = self.application.db.list_users()
Copy link
Member

Choose a reason for hiding this comment

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

Same here

@martinRenou martinRenou merged commit ac19521 into master May 8, 2017
@martinRenou martinRenou deleted the server-side-admin branch May 8, 2017 12:35
@stefanoborini stefanoborini changed the title Server side admin Backend resource support for admin interface May 23, 2017
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.

3 participants