Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
npalaska committed Feb 27, 2023
1 parent 6620010 commit 6c49612
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/pbench/cli/server/user_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from pbench.server.database.models.users import User

USER_LIST_ROW_FORMAT = "{0:15}\t{1:36}"
USER_LIST_HEADER_ROW = USER_LIST_ROW_FORMAT.format("Username", "oidc id")
USER_LIST_HEADER_ROW = USER_LIST_ROW_FORMAT.format("Username", "OIDC ID")


@click.group("user_group")
Expand Down
2 changes: 1 addition & 1 deletion lib/pbench/server/api/resources/upload_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def _put(self, args: ApiParams, request: Request, context: ApiContext) -> Respon
# Create a tracking dataset object; it'll begin in UPLOADING state
try:
dataset = Dataset(
owner_id=user_id,
owner=username,
name=Dataset.stem(tar_full_path),
resource_id=md5sum,
access=access,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@


def upgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.add_column("users", sa.Column("_roles", sa.String(length=255), nullable=True))
op.execute("ALTER TABLE users DROP CONSTRAINT users_pkey CASCADE")
op.alter_column(
Expand Down Expand Up @@ -47,7 +46,6 @@ def upgrade() -> None:


def downgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.execute("ALTER TABLE users DROP CONSTRAINT user_primary CASCADE")
op.add_column(
"users",
Expand Down
2 changes: 1 addition & 1 deletion lib/pbench/server/database/models/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __str__(self) -> str:


class UserNullKey(UserError):
"""Attempt to commit an User row with an empty required column."""
"""Attempt to commit a User row with an empty required column."""

def __init__(self, user: "User", cause: str):
self.user = user
Expand Down

0 comments on commit 6c49612

Please sign in to comment.