ucsb-cs156-f24 / proj-courses-f24-01

https://ucsb-cs156-f24.github.io/proj-courses-f24-01/
1 stars 0 forks source link

EPIC: Better job logs #3

Open github-actions[bot] opened 2 weeks ago

github-actions[bot] commented 2 weeks ago

See also: #141 which is related!

User Story

Discussion

Currently, for long running jobs, the job log can get very, very long.

This makes the current UI not very effective, since a job with a long log takes over the screen.

In addition, the job log is not currently paged as it is for other apps that use jobs (e.g. HappyCows)

In this epic, we implement these changes:

  1. Jobs will be paged as in HappyCows, though perhaps with a better user interface design, using the React Bootstrap Pagination Components instead of the current design.

  2. On the main jobs table, the log output column will show the entire log output if and only if it is <= 10 lines. Otherwise, it will show the first 10 lines, and then there will be an additional line showing ... and a button or hyperlink marked [See entrire log] that takes the user to a new page: /admin/jobs/logs/:id where :id is the name of that job. On that page, the entire job log is shown. Probably the top row of the page can be the same view as the current job log, but then there is just a giant text area showing the first four columns of the jobs log like this:

image

But then there is just a giant text area showing the rest of the log.

There should also be a Back button to return the user to wherever they were before.

Acceptance Criteria

raychen179 commented 4 days ago

https://github.com/ucsb-cs156-f24/proj-courses-f24-01/pull/29