Please take another look, thanks! https://codereview.appspot.com/329530043/diff/1/webconsole/frontend/src/app/jobs/job-tasks/failures-table/failures-table.component.html File webconsole/frontend/src/app/jobs/job-tasks/failures-table/failures-table.component.html (right): https://codereview.appspot.com/329530043/diff/1/webconsole/frontend/src/app/jobs/job-tasks/failures-table/failures-table.component.html#newcode7 webconsole/frontend/src/app/jobs/job-tasks/failures-table/failures-table.component.html:7: <ng-container *ngIf="tasks != null ...
6 years, 6 months ago
(2017-10-20 20:38:43 UTC)
#3
Please take another look, thanks!
https://codereview.appspot.com/329530043/diff/1/webconsole/frontend/src/app/j...
File
webconsole/frontend/src/app/jobs/job-tasks/failures-table/failures-table.component.html
(right):
https://codereview.appspot.com/329530043/diff/1/webconsole/frontend/src/app/j...
webconsole/frontend/src/app/jobs/job-tasks/failures-table/failures-table.component.html:7:
<ng-container *ngIf="tasks != null && tasks.length !== 0">
On 2017/10/20 14:53:45, mbassiouny wrote:
> Can you show a message that describes that there are no failed messages or
> something?
Thanks, I hadn't considered this case. It shouldn't go here because this
component shows it for a specific failure type. Instead, I am making the failure
component fire an event so that the parent knows if no failure type has no
failed tasks. Take a look at the screenshot and unit test.
https://screenshot.googleplex.com/NOqzM16Caxnhttps://codereview.appspot.com/329530043/diff/1/webconsole/frontend/src/app/j...
File
webconsole/frontend/src/app/jobs/job-tasks/failures-table/failures-table.component.ts
(right):
https://codereview.appspot.com/329530043/diff/1/webconsole/frontend/src/app/j...
webconsole/frontend/src/app/jobs/job-tasks/failures-table/failures-table.component.ts:32:
displayedColumns = ['taskType', 'creationTime', 'lastModificationTime',
'taskId', 'failureMessage'];
On 2017/10/20 14:53:45, mbassiouny wrote:
> Is that the order in which the failed task is displayed. If so, failure
message
> and taskId probably more important and should come first before the creation
and
> last modified time.
Thank you so much, this is very true. Moved failure message and task id to the
front.
https://codereview.appspot.com/329530043/diff/1/webconsole/frontend/src/app/j...
File webconsole/frontend/src/app/jobs/job-tasks/job-tasks.component.ts (right):
https://codereview.appspot.com/329530043/diff/1/webconsole/frontend/src/app/j...
webconsole/frontend/src/app/jobs/job-tasks/job-tasks.component.ts:30: if
(this.numFailureTypesLoaded >= Object.keys(TaskType.Type).length) {
On 2017/10/20 14:53:45, mbassiouny wrote:
> Is that TaskFailureType.Type?
yes, sorry! thank you so much
https://codereview.appspot.com/329530043/diff/1/webconsole/frontend/src/app/j...
File webconsole/frontend/src/app/jobs/job-tasks/job-tasks.resources.ts (right):
https://codereview.appspot.com/329530043/diff/1/webconsole/frontend/src/app/j...
webconsole/frontend/src/app/jobs/job-tasks/job-tasks.resources.ts:24:
disconnect() {}
On 2017/10/20 14:53:45, mbassiouny wrote:
> What's disconnect do?
From the original source:
"Disconnects a collection viewer (such as a data-table) from this data source.
Can be used to perform any clean-up or tear-down operations when a view is being
destroyed."
It looks like it cleans up when the user navigates away from the page. I
implemented it here because it's part of the class but it doesn't do anything
right now.
https://codereview.appspot.com/329530043/diff/1/webconsole/frontend/src/app/j...
File webconsole/frontend/src/app/jobs/jobs.resources.ts (right):
https://codereview.appspot.com/329530043/diff/1/webconsole/frontend/src/app/j...
webconsole/frontend/src/app/jobs/jobs.resources.ts:78: export const
FAILURE_TYPE_TO_STRING_MAP = {
On 2017/10/20 14:53:45, mbassiouny wrote:
> Is that means any change in the proto should be reflected here?
Yes. Any new fields in the proto would also have to be added here with a
human-readable representation. This will be good for example, when we need to
i18n our app, we can get appropriate string representations for each type. Also
we can change what text the user sees without changing anything else in the
stack.
https://codereview.appspot.com/329530043/diff/1/webconsole/frontend/src/app/j...
webconsole/frontend/src/app/jobs/jobs.resources.ts:79: 0: 'Uknown failure',
On 2017/10/20 14:53:45, mbassiouny wrote:
> Unknown
Thanks!
Issue 329530043: Adds support to the angular webconsole to show tasks by category.
(Closed)
Created 6 years, 6 months ago by alanmorales
Modified 6 years, 5 months ago
Reviewers: mbassiouny, thobrla
Base URL:
Comments: 13