Skip to content

ODM-13099: unable to create users from a file fix#631

Closed
egor-alexandrov wants to merge 1 commit into
developfrom
bugfix/create-users-from-file-fix
Closed

ODM-13099: unable to create users from a file fix#631
egor-alexandrov wants to merge 1 commit into
developfrom
bugfix/create-users-from-file-fix

Conversation

@egor-alexandrov

@egor-alexandrov egor-alexandrov commented May 14, 2026

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Fixes the create_users script which was broken on multiple fronts: the get_connection() call was missing the parsed args, the per-row password handling crashed when the TSV omitted the optional password column, and the TsvReader iterator was structured in a way that prevented iteration from working correctly. Also fixes a minor docstring rendering issue in files_util.py.

Changes:

  • In create_users.py, pass parsed args to get_connection(args) and tolerate rows without a password column.
  • In utils.py, properly define __iter__/__next__ (with a next alias for Python 2 compatibility) on TsvReader.
  • In files_util.py, replace the escaped \*names with *names in the docstring.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
odm_sdk/scripts/users/create_users.py Pass args to get_connection and handle rows missing the password field.
odm_sdk/scripts/utils.py Restructure TsvReader to correctly implement the iterator protocol on both Py2/Py3.
odm_sdk/files_util.py Minor docstring fix for *names parameter.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@egor-alexandrov egor-alexandrov changed the title bugfix: unable to create users from a file fix ODM-13099: unable to create users from a file fix May 15, 2026
@egor-alexandrov egor-alexandrov deleted the bugfix/create-users-from-file-fix branch May 15, 2026 08:07
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.

2 participants