-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add support for neuro job list --name #633
Conversation
a2cfde9
to
5916c5e
Compare
Note: maybe the server should return sorted list of jobs with specified name, and the client should choose the last chronologically sorted one. Not doing GET /jobs?name=n&status=failed&status=pending. |
fe982f1
to
8c496ac
Compare
3abd598
to
b460ba7
Compare
The Codecov is broken: it does not show exact lines where we have lost coverage. The coverage decreased because of |
@@ -203,6 +204,7 @@ def from_job( | |||
when_humanized = humanize.naturaldate(when_datetime) | |||
return cls( | |||
id=job.id, | |||
name=job.name if job.name else "", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name: str
is not optional, thus it is never None
. should be passed as is, or the type should be changed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually, the class of JobDescription
has name: Optional[str] = None
. When working on the field name
I mostly followed the pattern of how the field JobDescription.description
is implemented: Optional[str]
for JobDescription
and str
for formatters (TabularJobRow
and others).
So left this unchanged.
f932f22
to
a7dfc39
Compare
4507162
to
a5c226e
Compare
a5c226e
to
0b88e2e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: please add change note
we update note only on the last PR that implements job names so that no one will start using job-names until they are fully supported |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. Please add chengenotes to #648 than
already 😉 |
dismiss because don't see the re-request button
Support
neuro ps --name {job-name}