Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JobRecord: remove username from __init__() of JobRecord object #489

Merged
merged 2 commits into from
Sep 16, 2024

Conversation

cmoussa1
Copy link
Member

Problem

The username field is automatically populated when userid is passed into the construction of a JobRecord object, but it is listed as an attribute during initialization.


This PR removes username from the list of attributes in __init__(). It also explicitly labels which fields are being assigned to which member of the JobRecord object instead of labeling them via comments.

I've also snuck in a spelling correction commit at the end of this PR.

Problem: The "username" field is automatically populated when userid is
passed into the construction of a JobRecord object, but it is listed as
an attribute during initialization.

Remove "username" from the list of attributes needed to be passed in.

Explicitly state which fields are being assigned to which member of a
JobRecord object instead of labeling them via comments.
The function description for get_jobs() has a spelling mistake.

Fix it.
@cmoussa1 cmoussa1 added the improvement Upgrades to an already existing feature label Sep 16, 2024
@cmoussa1 cmoussa1 requested a review from wihobbs September 16, 2024 19:49
Copy link
Member

@wihobbs wihobbs left a comment

Choose a reason for hiding this comment

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

Much clearer, thanks!

@cmoussa1
Copy link
Member Author

Thank you! Setting MWP here

@mergify mergify bot merged commit a3a9038 into flux-framework:master Sep 16, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Upgrades to an already existing feature merge-when-passing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants