Skip to content

Commit

Permalink
New reports page with job history report
Browse files Browse the repository at this point in the history
  • Loading branch information
ganiuszka committed Feb 22, 2022
1 parent 316af6b commit 40a32ae
Show file tree
Hide file tree
Showing 13 changed files with 1,009 additions and 14 deletions.
19 changes: 19 additions & 0 deletions Web/JavaScript/misc.js
Original file line number Diff line number Diff line change
Expand Up @@ -1188,6 +1188,25 @@ var Weather = {
],
get_weather_icon(idx) {
return this.icons[idx];
},
get_job_weather: function(jobs, last_jobs) {
const job_weather = {};
const jobs_len = jobs.length;
for (let i = 0; i < jobs_len; i++) {
if (!job_weather.hasOwnProperty(jobs[i].name)) {
job_weather[jobs[i].name] = {count: 0, cancel: 0, error: 0};
}
if (typeof(last_jobs) == 'number' && job_weather[jobs[i].name].count >= last_jobs) {
continue;
}
job_weather[jobs[i].name].count++;
if (JobStatus.is_error(jobs[i].jobstatus)) {
job_weather[jobs[i].name].error++;
} else if (JobStatus.is_cancel(jobs[i].jobstatus)) {
job_weather[jobs[i].name].cancel++;
}
}
return job_weather;
}
};

Expand Down
Binary file modified Web/Lang/en/messages.mo
Binary file not shown.
47 changes: 47 additions & 0 deletions Web/Lang/en/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -4112,3 +4112,50 @@ msgstr "Set age for jobs to display the job summary pie graph on the dashboard p
msgid "last %time %unit"
msgstr "last %time %unit"

msgid "Job %jobname details"
msgstr "Job %jobname details"

msgid "Reports"
msgstr "Reports"

msgid "Job history report"
msgstr "Job history report"

msgid "Date:"
msgstr "Date:"

msgid "All jobs"
msgstr "All jobs"

msgid "All issues"
msgstr "All issues"

msgid "Only errors"
msgstr "Only errors"

msgid "%count job(s) finished successfully."
msgstr "%count job(s) finished successfully."

msgid "Job report with errors and warnings"
msgstr "Job report with errors and warnings"

msgid "Job report with errors but not warnings"
msgstr "Job report with errors but not warnings"

msgid "all X jobs finished successfully (no X means one job)"
msgstr "all X jobs finished successfully (no X means one job)"

msgid "X jobs with at least one job finished successfully"
msgstr "X jobs with at least one job finished successfully"

msgid "all X jobs finished with error or cancelled"
msgstr "all X jobs finished with error or cancelled"

msgid "All %count jobs finished with error or cancelled."
msgstr "All %count jobs finished with error or cancelled."

msgid "%errors/%count jobs finished with error or cancelled."
msgstr "%errors/%count jobs finished with error or cancelled."

msgid "No job"
msgstr "No job"
Binary file modified Web/Lang/ja/messages.mo
Binary file not shown.
47 changes: 47 additions & 0 deletions Web/Lang/ja/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -4198,3 +4198,50 @@ msgstr "Set age for jobs to display the job summary pie graph on the dashboard p
msgid "last %time %unit"
msgstr "last %time %unit"

msgid "Job %jobname details"
msgstr "Job %jobname details"

msgid "Reports"
msgstr "Reports"

msgid "Job history report"
msgstr "Job history report"

msgid "Date:"
msgstr "Date:"

msgid "All jobs"
msgstr "All jobs"

msgid "All issues"
msgstr "All issues"

msgid "Only errors"
msgstr "Only errors"

msgid "%count job(s) finished successfully."
msgstr "%count job(s) finished successfully."

msgid "Job report with errors and warnings"
msgstr "Job report with errors and warnings"

msgid "Job report with errors but not warnings"
msgstr "Job report with errors but not warnings"

msgid "all X jobs finished successfully (no X means one job)"
msgstr "all X jobs finished successfully (no X means one job)"

msgid "X jobs with at least one job finished successfully"
msgstr "X jobs with at least one job finished successfully"

msgid "all X jobs finished with error or cancelled"
msgstr "all X jobs finished with error or cancelled"

msgid "All %count jobs finished with error or cancelled."
msgstr "All %count jobs finished with error or cancelled."

msgid "%errors/%count jobs finished with error or cancelled."
msgstr "%errors/%count jobs finished with error or cancelled."

msgid "No job"
msgstr "No job"
Binary file modified Web/Lang/pl/messages.mo
Binary file not shown.
47 changes: 47 additions & 0 deletions Web/Lang/pl/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -4122,3 +4122,50 @@ msgstr "Ustaw maksymalny wiek dla zadań do wyświetlenia na wykresie statusu za
msgid "last %time %unit"
msgstr "ostatni %time %unit"

msgid "Job %jobname details"
msgstr "Job %jobname details"

msgid "Reports"
msgstr "Reports"

msgid "Job history report"
msgstr "Job history report"

msgid "Date:"
msgstr "Date:"

msgid "All jobs"
msgstr "All jobs"

msgid "All issues"
msgstr "All issues"

msgid "Only errors"
msgstr "Only errors"

msgid "%count job(s) finished successfully."
msgstr "%count job(s) finished successfully."

msgid "Job report with errors and warnings"
msgstr "Job report with errors and warnings"

msgid "Job report with errors but not warnings"
msgstr "Job report with errors but not warnings"

msgid "all X jobs finished successfully (no X means one job)"
msgstr "all X jobs finished successfully (no X means one job)"

msgid "X jobs with at least one job finished successfully"
msgstr "X jobs with at least one job finished successfully"

msgid "all X jobs finished with error or cancelled"
msgstr "all X jobs finished with error or cancelled"

msgid "All %count jobs finished with error or cancelled."
msgstr "All %count jobs finished with error or cancelled."

msgid "%errors/%count jobs finished with error or cancelled."
msgstr "%errors/%count jobs finished with error or cancelled."

msgid "No job"
msgstr "No job"
Binary file modified Web/Lang/pt/messages.mo
Binary file not shown.
47 changes: 47 additions & 0 deletions Web/Lang/pt/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -4123,3 +4123,50 @@ msgstr "Set age for jobs to display the job summary pie graph on the dashboard p
msgid "last %time %unit"
msgstr "last %time %unit"

msgid "Job %jobname details"
msgstr "Job %jobname details"

msgid "Reports"
msgstr "Reports"

msgid "Job history report"
msgstr "Job history report"

msgid "Date:"
msgstr "Date:"

msgid "All jobs"
msgstr "All jobs"

msgid "All issues"
msgstr "All issues"

msgid "Only errors"
msgstr "Only errors"

msgid "%count job(s) finished successfully."
msgstr "%count job(s) finished successfully."

msgid "Job report with errors and warnings"
msgstr "Job report with errors and warnings"

msgid "Job report with errors but not warnings"
msgstr "Job report with errors but not warnings"

msgid "all X jobs finished successfully (no X means one job)"
msgstr "all X jobs finished successfully (no X means one job)"

msgid "X jobs with at least one job finished successfully"
msgstr "X jobs with at least one job finished successfully"

msgid "all X jobs finished with error or cancelled"
msgstr "all X jobs finished with error or cancelled"

msgid "All %count jobs finished with error or cancelled."
msgstr "All %count jobs finished with error or cancelled."

msgid "%errors/%count jobs finished with error or cancelled."
msgstr "%errors/%count jobs finished with error or cancelled."

msgid "No job"
msgstr "No job"
Binary file modified Web/Lang/ru/messages.mo
Binary file not shown.
47 changes: 47 additions & 0 deletions Web/Lang/ru/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -4122,3 +4122,50 @@ msgstr "Set age for jobs to display the job summary pie graph on the dashboard p
msgid "last %time %unit"
msgstr "last %time %unit"

msgid "Job %jobname details"
msgstr "Job %jobname details"

msgid "Reports"
msgstr "Reports"

msgid "Job history report"
msgstr "Job history report"

msgid "Date:"
msgstr "Date:"

msgid "All jobs"
msgstr "All jobs"

msgid "All issues"
msgstr "All issues"

msgid "Only errors"
msgstr "Only errors"

msgid "%count job(s) finished successfully."
msgstr "%count job(s) finished successfully."

msgid "Job report with errors and warnings"
msgstr "Job report with errors and warnings"

msgid "Job report with errors but not warnings"
msgstr "Job report with errors but not warnings"

msgid "all X jobs finished successfully (no X means one job)"
msgstr "all X jobs finished successfully (no X means one job)"

msgid "X jobs with at least one job finished successfully"
msgstr "X jobs with at least one job finished successfully"

msgid "all X jobs finished with error or cancelled"
msgstr "all X jobs finished with error or cancelled"

msgid "All %count jobs finished with error or cancelled."
msgstr "All %count jobs finished with error or cancelled."

msgid "%errors/%count jobs finished with error or cancelled."
msgstr "%errors/%count jobs finished with error or cancelled."

msgid "No job"
msgstr "No job"
Loading

0 comments on commit 40a32ae

Please sign in to comment.