Skip to content

webui: add timeline chart by jobs#1059

Merged
pstorz merged 17 commits intomasterfrom
dev/fbergkemper/master/s5048
Feb 4, 2022
Merged

webui: add timeline chart by jobs#1059
pstorz merged 17 commits intomasterfrom
dev/fbergkemper/master/s5048

Conversation

@frb121
Copy link
Contributor

@frb121 frb121 commented Jan 31, 2022

If multiple jobs are defined for one client, it makes sense to be able
to show the timeline based on jobs and not on clients.

Therefore, this PR introduces some changes to have a timeline chart
for clients in the clients module and a timeline chart for jobs in the
job module available.

Thank you for contributing to the Bareos Project!

Please check

  • Short description and the purpose of this PR is present above this paragraph
  • Your name is present in the AUTHORS file (optional)

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
  • PR name is meaningful
  • Purpose of the PR is understood
  • Separate commit for this PR in the CHANGELOG.md, PR number referenced is same
  • Commit descriptions are understandable and well formatted
Source code quality
  • Source code changes are understandable
  • Variable and function names are meaningful
  • Code comments are correct (logically and spelling)
  • Required documentation changes are present and part of the PR
  • bareos-check-sources --since-merge does not report any problems
  • git status should not report modifications in the source tree after building and testing

@frb121 frb121 added the nobuild label Jan 31, 2022
@frb121 frb121 self-assigned this Jan 31, 2022
@frb121 frb121 force-pushed the dev/fbergkemper/master/s5048 branch 3 times, most recently from 9539e13 to df2b9bb Compare February 2, 2022 13:59
@frb121 frb121 removed the nobuild label Feb 2, 2022
@frb121 frb121 marked this pull request as ready for review February 2, 2022 14:08
@frb121 frb121 requested a review from pstorz February 2, 2022 14:08
@pstorz pstorz changed the title webui: allow to display a timeline chart by a selected set of jobs or clients webui: add timeline chart by jobs Feb 3, 2022
Copy link
Member

@pstorz pstorz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks very good and works as expected. I shortened the PR name a bit (and updated the CHANGELOG accordingly).

It would make sense to move the "client" based timeline on the right, and put the job based timeline on the left of the menu. I.e. the jobs based one is the default.

Good work"

@frb121 frb121 force-pushed the dev/fbergkemper/master/s5048 branch from 4644f50 to 2699196 Compare February 4, 2022 11:51
@frb121
Copy link
Contributor Author

frb121 commented Feb 4, 2022

Looks very good and works as expected. I shortened the PR name a bit (and updated the CHANGELOG accordingly).

It would make sense to move the "client" based timeline on the right, and put the job based timeline on the left of the menu. I.e. the jobs based one is the default.

Good work"

Thanks for the review.

@frb121
Copy link
Contributor Author

frb121 commented Feb 4, 2022

I've made the changes we discussed elsewhere yesterday, please have another look at the PR. Thank you.

@frb121 frb121 requested a review from pstorz February 4, 2022 12:03
@frb121 frb121 force-pushed the dev/fbergkemper/master/s5048 branch 2 times, most recently from 0855eeb to f5a3580 Compare February 4, 2022 12:29
frb121 added 13 commits February 4, 2022 14:10
- introduce timelinejobs controller action
- introduce endpoint all-job-resources
- introduce endpoint job-timeline
- rename endpoint timeline to client-timeline
- introduce getJobsForPeriodByJobname method
- introduce nav-tabs clients and jobs
- introduce changeNoDataText function
- change wording in some places
- fix css indentation
- change modal-004 size
- adjust customized chart tooltip
- move redundant JS from views to timeline.js
- move redundant CSS from views to timeline.css
@frb121 frb121 force-pushed the dev/fbergkemper/master/s5048 branch from f5a3580 to 62f9d45 Compare February 4, 2022 13:10
Copy link
Member

@pstorz pstorz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Good work!

@pstorz pstorz merged commit ceac8c9 into master Feb 4, 2022
@pstorz pstorz deleted the dev/fbergkemper/master/s5048 branch February 4, 2022 13:37
@frb121 frb121 mentioned this pull request Feb 4, 2022
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants