• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

andela / wg-wits / 371 / 1
42%
develop: 42%

Build:
DEFAULT BRANCH: develop
Ran 20 Aug 2018 09:54AM UTC
Files 277
Run time 20s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

20 Aug 2018 09:42AM UTC coverage: 93.057% (+0.1%) from 92.961%
TEST_MOBILE=True DB=postgresql TRAVIS_NODE_VERSION="4"

push

travis-ci

lym
[Feature] Grant users permission to create users via REST API (#20)

This command is executed by the admin to give the user permissions
to create users via the REST API. The command expects either a username
or an email.

* Add special flags to the userprofile

  Add a special to indicate whether a user was created via REST API
  and a flag to verify whether a user has permissions to create users
  via REST API

* Create model to show REST API users relationship

  Create a one-to-one table that represents a relationship between
  the users and the rest api users they created.

* Create a permission for REST API user creation

* Create a serializer for the user objects

  Create a serializer class to parse the complex user objects into
  a simpler JSON format

* Create Viewset for REST API user creation

  Implement a view set to register a user via REST API.
  Ensure that when a user is registered, the one to one
  table is populated to maintain the relationship.

* Create the private API endpoint for user registration

  Register a private endpoint that enables users to create other
  users via the REST API. The endpoint is restricted and the user
  is able to create users once they get permission from the admin.

* List all REST API users

  Create a command that the admin can use to list all the users created
  via the REST API.

* [Feature #159236198] Add migrations

* [Feature #159236198] Test REST API user creation

* Fix admin commands for rest api user creation

* Write tests for rest api user creation and admin commands

* Resolve flake8 conflicts

* Change model field help text for proper indentation

* Resolve merge conflicts

* Write more tests for add_user_rest_api command

* Protect endpoint from unauthenticated access

* Restrict creating user whose email exists via REST API

[Delivers #159236198]

12478 of 13409 relevant lines covered (93.06%)

0.93 hits per line

Source Files on job 371.1 (TEST_MOBILE=True DB=postgresql TRAVIS_NODE_VERSION="4")
  • Tree
  • List 0
  • Changed 49
  • Source Changed 49
  • Coverage Changed 49
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 201
  • Travis Job 371.1
  • 6bb78638 on github
  • Prev Job for TEST_MOBILE=True DB=postgresql TRAVIS_NODE_VERSION="4" on develop (#342.1)
  • Next Job for TEST_MOBILE=True DB=postgresql TRAVIS_NODE_VERSION="4" on develop (#409.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc