cats:lib: removed comma formatting from jobId attribute in list jobs output.#1126
Conversation
3cc50fb to
a200d50
Compare
9797b07 to
b5014c6
Compare
|
Just a question, but in our backlog, from what I read : the initial idea was to be able to copy and paste jobids so I don't see a point to replace comma by space ? |
yes it was suggested to remove the commas: they make it hard to copy and paste jobIds to use them in other commands (will require to manually remove the commas, I think ) |
851337e to
6ffe825
Compare
cf60f21 to
408be75
Compare
|
@arogge By the way didn't need the trim method. |
arogge
left a comment
There was a problem hiding this comment.
I noticed a formatting issue with the table. It looks like the calculation for the width of the column still calculates it as if the commas were still these.
Note the excess spaces in this example:
+------------+------------------+-----------+---------------------+----------+------+-------+----------+----------+-----------+
| jobid | name | client | starttime | duration | type | level | jobfiles | jobbytes | jobstatus |
+------------+------------------+-----------+---------------------+----------+------+-------+----------+----------+-----------+
| 10000000 | backup-bareos-fd | bareos-fd | 2022-03-28 11:46:48 | 00:00:01 | B | F | 73 | 144,145 | T |
Other than that we may want to not add commas to priorjobid as that will also contain a jobid value. (AFAIR only llist job displays that field)
CHANGELOG.md
Outdated
There was a problem hiding this comment.
that doesn't describe the change correctly anymore
| if (row[i] == NULL) { | ||
| value.bsprintf(" %-*s |", max_len, "NULL"); | ||
| } else if (SqlFieldIsNumeric(field->type) && !jcr->gui | ||
| && IsAnInteger(row[i])) { |
There was a problem hiding this comment.
the file's header doesn't have the right copyright years set.
core/src/lib/edit.h
Outdated
There was a problem hiding this comment.
as there's no other change in this file, we should also not change the header.
68674a1 to
b31efe3
Compare
ac4888a to
bc480d8
Compare
bc480d8 to
15f04f2
Compare
15f04f2 to
1d16dd1
Compare
1d16dd1 to
1239b63
Compare
Description
List jobsshowsjobIdwith comma formatting.This PR fixes the issue by removing the commas from
jobidattribute in the command output".Please check
If you have any questions or problems, please give a comment in the PR.
Helpful documentation and best practices
Checklist for the reviewer of the PR (will be processed by the Bareos team)
General
Source code quality
bareos-check-sources --since-mergedoes not report any problemsgit statusshould not report modifications in the source tree after building and testingTests