Skip to content

Fixed JobDetails joblog messages order#509

Merged
frb121 merged 3 commits intobareos:masterfrom
tikoflano:patch-3
May 12, 2020
Merged

Fixed JobDetails joblog messages order#509
frb121 merged 3 commits intobareos:masterfrom
tikoflano:patch-3

Conversation

@tikoflano
Copy link
Contributor

When you have multiple log messages with the same time the display order is weird. For example, lets say we have this joblogs in this order returned from bconsole:

  • A 13:11
  • B 13:11
  • C 13:11
  • D 13:12
  • E 13:12

If we order them by desc time, we expect to have:

  • E
  • D
  • C
  • B
  • A

But we are getting:

  • D
  • E
  • A
  • B
  • C

By adding an Id to each message we can solve this problem.

tikoflano added 2 commits May 8, 2020 01:24
Add an id to each joblog entry to fix the sorting problem on the details page.
This fixes the problem that occurs when multiple joblog messages have the same time. It uses the id field added in eda19fc
@tikoflano tikoflano changed the title Patch 3 Fixed JobDetails joblog messages order May 8, 2020
It makes more sense to call the column just "#"
@frb121
Copy link
Contributor

frb121 commented May 11, 2020

Thanks for the PR, Alvaro.

@frb121 frb121 self-requested a review May 11, 2020 16:05
Copy link
Contributor

@frb121 frb121 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. Thanks for the contribution.

@frb121 frb121 merged commit 5435ab9 into bareos:master May 12, 2020
@tikoflano tikoflano deleted the patch-3 branch June 15, 2020 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments