Skip to content

[FIX] Food & Fluid not organised by effective date#111

Merged
DaeronAlagos merged 1 commit intoremove-custom-frequencyfrom
16631
Jul 31, 2020
Merged

[FIX] Food & Fluid not organised by effective date#111
DaeronAlagos merged 1 commit intoremove-custom-frequencyfrom
16631

Conversation

@DaeronAlagos
Copy link
Copy Markdown
Contributor

  • F&F should be grouped by effective date to calculate for a 24 hour period
  • Some records not showing in chart
  • Display not sorted by effective date

Fixes #16631

* F&F should be grouped by effective date to calculate for a 24 hour period
* Some records not showing in chart
* Display not sorted by effective date
Copy link
Copy Markdown
Contributor

@PeterAlabaster PeterAlabaster left a comment

Choose a reason for hiding this comment

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

Approving but see comment, not sure if it's an issue or not.

});
for ( var idx = 0; idx < serverData.length; idx++ ) {
var data = serverData[idx];
data.observations.sort( function (a, b) {
Copy link
Copy Markdown
Contributor

@PeterAlabaster PeterAlabaster Jul 30, 2020

Choose a reason for hiding this comment

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

Does this not require re-assigning (data.observations = data.observations.sort(....) ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not this time. sort() changes inline rather than assigns to a new array.

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