Skip to content
Snippets Groups Projects

Update api docs and remove old attribute from User entity.

Merged gitlab-qa-bot requested to merge github/fork/dblessing/apidocs into master

Created by: dblessing

The API docs incorrectly referenced a few attributes associated with users. The 'blocked' attribute has been replaced with 'state'. Also, 'dark_scheme' seems to no longer be available in the User model so it should be removed from the exposed attributes in the API User entity.

The screenshot shows the available attributes prior to this update. You can see that dark_scheme is not present, although it was exposed via User entity. Also, you can see that blocked is not present and is instead replaced with state.

user_api

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
14 14 "username": "john_smith",
15 15 "email": "john@example.com",
16 16 "name": "John Smith",
17 "blocked": false,
17 "state": "active",
18 18 "created_at": "2012-05-23T08:00:58Z",
19 19 "bio": null,
20 20 "skype": "",
21 21 "linkedin": "",
22 22 "twitter": "",
23 "dark_scheme": false,
  • Created by: dzaporozhets

    what about color_scheme_id?

    By Administrator on 2013-05-29T10:41:32 (imported from GitLab project)

    By Administrator on 2013-05-29T10:41:32 (imported from GitLab)

  • gitlab-qa-bot
  • 14 14 "username": "john_smith",
    15 15 "email": "john@example.com",
    16 16 "name": "John Smith",
    17 "blocked": false,
    17 "state": "active",
    18 18 "created_at": "2012-05-23T08:00:58Z",
    19 19 "bio": null,
    20 20 "skype": "",
    21 21 "linkedin": "",
    22 22 "twitter": "",
    23 "dark_scheme": false,
    • Created by: dblessing

      Sounds good to me. Let's expose it :)

      By Administrator on 2013-05-29T10:42:37 (imported from GitLab project)

      By Administrator on 2013-05-29T10:42:37 (imported from GitLab)

  • Created by: dblessing

    Exposed color_scheme_id also. Screenshot shows that new attribute is now available via user call.

    user_color_exposed

    By Administrator on 2013-05-29T10:43:33 (imported from GitLab project)

    By Administrator on 2013-05-29T10:43:33 (imported from GitLab)

  • Created by: coveralls

    Coverage Status

    Coverage decreased (-0%) when pulling 07fd95f3 on bke-drewb:apidocs into 6e961203 on gitlabhq:master.

    By Administrator on 2013-05-29T10:57:33 (imported from GitLab project)

    By Administrator on 2013-05-29T10:57:33 (imported from GitLab)

  • Please register or sign in to reply
    Loading