openhab / openhab-webui

Web UIs of openHAB
Eclipse Public License 2.0
212 stars 232 forks source link

Charts: Fix initial period wrongly calculated for future charts #2548

Closed florian-h05 closed 3 weeks ago

florian-h05 commented 3 weeks ago

Follow-up fix for #2545.

When the initial period was different from D, the period initial endTime calculation was wrong. This lead to the initial period being calculated wrong: One day was always into the future, the rest of the period to the past.

relativeci[bot] commented 3 weeks ago

Job #1914: Bundle Size — 10.57MiB (~+0.01%).

8c94879(current) vs e9c5ad5 main#1913(baseline)

[!WARNING] Bundle contains 2 duplicate packages – View duplicate packages

Bundle metrics  Change 1 change
                 Current
Job #1914
     Baseline
Job #1913
No change  Initial JS 1.86MiB 1.86MiB
No change  Initial CSS 607.87KiB 607.87KiB
Change  Cache Invalidation 17.65% 19.9%
No change  Chunks 222 222
No change  Assets 245 245
No change  Modules 2866 2866
No change  Duplicate Modules 143 143
No change  Duplicate Code 1.83% 1.83%
No change  Packages 95 95
No change  Duplicate Packages 2 2

Bundle size by type  Change 1 change Regression 1 regression
|            |       Current
[Job #1914](https://app.relative-ci.com/projects/ZNG5hy4VeSJQVQcq1Kvu/jobs/1914-ceGmXcFNDT0YmEWEGqV1?utm_source=github&utm_medium=pr-report "View job report") |      Baseline
[Job #1913](https://app.relative-ci.com/projects/ZNG5hy4VeSJQVQcq1Kvu/jobs/1913-OUQYGgGRREoriJ5xP9zV?utm_source=github&utm_medium=pr-report "View baseline job report") | |:--|--:|--:| | Regression  [JS](https://app.relative-ci.com/projects/ZNG5hy4VeSJQVQcq1Kvu/jobs/1914-ceGmXcFNDT0YmEWEGqV1/assets?ba=%7B%22filters%22%3A%22ft.CSS-0_ft.JS-1_ft.IMG-0_ft.MEDIA-0_ft.FONT-0_ft.HTML-0_ft.OTHER-0%22%7D "View JS assets") | `8.76MiB` (`~+0.01%`) | `8.76MiB` | | Not changed  [CSS](https://app.relative-ci.com/projects/ZNG5hy4VeSJQVQcq1Kvu/jobs/1914-ceGmXcFNDT0YmEWEGqV1/assets?ba=%7B%22filters%22%3A%22ft.CSS-1_ft.JS-0_ft.IMG-0_ft.MEDIA-0_ft.FONT-0_ft.HTML-0_ft.OTHER-0%22%7D "View CSS assets") | `890.07KiB` | `890.07KiB` | | Not changed  [Fonts](https://app.relative-ci.com/projects/ZNG5hy4VeSJQVQcq1Kvu/jobs/1914-ceGmXcFNDT0YmEWEGqV1/assets?ba=%7B%22filters%22%3A%22ft.CSS-0_ft.JS-0_ft.IMG-0_ft.MEDIA-0_ft.FONT-1_ft.HTML-0_ft.OTHER-0%22%7D "View Fonts assets") | `526.1KiB` | `526.1KiB` | | Not changed  [Media](https://app.relative-ci.com/projects/ZNG5hy4VeSJQVQcq1Kvu/jobs/1914-ceGmXcFNDT0YmEWEGqV1/assets?ba=%7B%22filters%22%3A%22ft.CSS-0_ft.JS-0_ft.IMG-0_ft.MEDIA-1_ft.FONT-0_ft.HTML-0_ft.OTHER-0%22%7D "View Media assets") | `295.6KiB` | `295.6KiB` | | Not changed  [IMG](https://app.relative-ci.com/projects/ZNG5hy4VeSJQVQcq1Kvu/jobs/1914-ceGmXcFNDT0YmEWEGqV1/assets?ba=%7B%22filters%22%3A%22ft.CSS-0_ft.JS-0_ft.IMG-1_ft.MEDIA-0_ft.FONT-0_ft.HTML-0_ft.OTHER-0%22%7D "View IMG assets") | `140.74KiB` | `140.74KiB` | | Not changed  [HTML](https://app.relative-ci.com/projects/ZNG5hy4VeSJQVQcq1Kvu/jobs/1914-ceGmXcFNDT0YmEWEGqV1/assets?ba=%7B%22filters%22%3A%22ft.CSS-0_ft.JS-0_ft.IMG-0_ft.MEDIA-0_ft.FONT-0_ft.HTML-1_ft.OTHER-0%22%7D "View HTML assets") | `1.24KiB` | `1.24KiB` | | Not changed  [Other](https://app.relative-ci.com/projects/ZNG5hy4VeSJQVQcq1Kvu/jobs/1914-ceGmXcFNDT0YmEWEGqV1/assets?ba=%7B%22filters%22%3A%22ft.CSS-0_ft.JS-0_ft.IMG-0_ft.MEDIA-0_ft.FONT-0_ft.HTML-0_ft.OTHER-1%22%7D "View Other assets") | `871B` | `871B` |

View job #1914 reportView florian-h05:charts branch activityView project dashboard