Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve date handling #12

Merged
merged 4 commits into from
May 7, 2024
Merged

Improve date handling #12

merged 4 commits into from
May 7, 2024

Conversation

ekacnet
Copy link
Owner

@ekacnet ekacnet commented May 7, 2024

Previous to this change the plugin assumed that the date should be
displayed in the timezone of the browser no matter what was the setting.

Also it wouldn't deal with the timerange that was specified (sic).

This is fixed in this change now, we leverage serverDelay to send the
metrics back in time by providing a positive delay and forward in time
(in case the selected timezone is ahead of time) by providing a negative
delay.

Remove references to relative cubism-es use the one in the 3rd party
folder instead.

Ensure that the version is bumped.

Signed-off-by: Matthieu Patou <mat@matws.net>
Let's have a prometheus datasource and csv one.
For the CSV we will also add CSV file inside the container
With devtools set to `source-map` and mode to `production` it's
impossible as of April 2024 to add breakpoints in both firefox and
chrome.

It does lead to a somewhat small file but at the cost of debugability.
When using `eval-source-map` for devtools no matter what is the mode you
can properly debug but the resulting file is fairly large (800K).

Finally using mode `development` allows to debug and the resulting file
is "only" twice as large so we will settle on that.

Signed-off-by: Matthieu Patou <mat@matws.net>
Previous to this change the plugin assumed that the date should be
displayed in the timezone of the browser no matter what was the setting.

Also it wouldn't deal with the timerange that was specified (sic).

This is fixed in this change now, we leverage `serverDelay` to send the
metrics back in time by providing a positive delay and forward in time
(in case the selected timezone is ahead of time) by providing a negative
delay.
Base automatically changed from improve_debugging to main May 7, 2024 15:00
@ekacnet ekacnet merged commit bbb02b4 into main May 7, 2024
3 checks passed
@ekacnet ekacnet deleted the improve_date_handling branch May 7, 2024 15:02
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.

1 participant