Skip to content

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

Merged
egor-alexandrov merged 4 commits into
developfrom
feature/odm-13099-fix-create-users-from-file
May 19, 2026
Merged

ODM-13099: unable to create users from a file fix#632
egor-alexandrov merged 4 commits into
developfrom
feature/odm-13099-fix-create-users-from-file

Conversation

@egor-alexandrov

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 issues around creating users from a TSV file (ODM-13099) by making the TSV reader and the create_users script more robust when optional columns/arguments are used.

Changes:

  • Updated TsvReader to use the standard iterator protocol (__iter__/__next__) while keeping a next alias for compatibility.
  • Made the password column optional when reading users from TSV (auto-generates when missing/blank).
  • Ensured create_users.py builds the connection using the parsed CLI args (so extra script args don’t break connection parsing).

Reviewed changes

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

File Description
odm_sdk/scripts/utils.py Standardizes iteration behavior for TSV reading (Python 3-friendly) while retaining compatibility.
odm_sdk/scripts/users/create_users.py Allows TSV rows without an explicit password and fixes connection initialization to use parsed args.
odm_sdk/files_util.py Minor docstring formatting tweak for the *names varargs parameter.

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

@egor-alexandrov egor-alexandrov marked this pull request as ready for review May 15, 2026 08:24
@egor-alexandrov egor-alexandrov requested review from a team as code owners May 15, 2026 08:24
@egor-alexandrov egor-alexandrov enabled auto-merge (squash) May 19, 2026 09:00
@egor-alexandrov egor-alexandrov merged commit 4e9525b into develop May 19, 2026
2 checks passed
@egor-alexandrov egor-alexandrov deleted the feature/odm-13099-fix-create-users-from-file branch May 19, 2026 11:11
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