Skip to content

adding user to course via Formgrader vs. cmdline  #1534

@szazs89

Description

@szazs89

Operating system

linux, jupyterhub/jupyterhub docker image

nbgrader --version

[GCC 9.3.0]
nbgrader version 0.7.0.dev

jupyterhub --version (if used with JupyterHub)

2.0.0

jupyter notebook --version

6.4.4

Expected behavior

  • adding user from Formgrader menu adds user to corresponding jupyterhub group (nbgrader-...)
  • adding / importing user from command line via nbgrader db student command works, however,
    • it should make the userID lower-case before registering in gradebook.db OR
    • the collected assignment should be registered in the gradebook.db with case-insensitive ID matching.

Actual behavior

  • adding user from formgrade menu DOES NOT add user to corresponding jupyterhub group (nbgrader-...)
  • adding / importing user from command line via nbgrader db student command has issues, if the userids are capitalized (though, the linux ids are in lower-case):
    • the ids are added to the nbgrader-... group in lower-case correctly, but they are registered in gradebook.db without such transformation; this causes problem when the submitted assignments are collected, since
    • the /srv/nbgrader/exhcange/inboud folder stores them below the lower-case linux id-s, and during the collect process a lower-case userID is going to be registered in gradebook.db (with no last-name, first-name, etc.)

Steps to reproduce the behavior

  • Open Formgrader, go to Manage students, Add students, give an ID. The student appears in the list, however, the student of that ID cannot access the released assignment, because his/her ID was not added to the appropriate nbgrader-... group.
  • Open a Terminal as a grader and issue the command:
    nbgrader db student add S0M3BODY --lastname Body --firstname Sam
    
    Now, Manage students (and gradebook.db) lists a student Body, Sam with id S0M3BODY, and the nbgrader-... group will contain an ID s0m3body. However, when the user of the ID s0m3body submits his work, and the instructor collects it, a new user appears in the list on the page Manage students: None, None with id s0m3body.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions