technologiestiftung/giessdenkiez-de

Bug: Stacked Barchart shows different labels when using the production API than when using the test API

vogelino opened this issue · 0 comments

Background: Why this issue?

As noticed by @julizet, the newly created stacked bar chart is displaying different labels when using the test API than when using the production one. While using the local API, the labels start from "Gestern" (yesterday) and move on from there. Using the production API however, the labels start from "Vor 4 Tage" (4 days ago).

Local API Production API
image image

Deliverables: How to fix the issue?

It seems to be an error related to the way we calculate the 30 days prior to today. My speculation is that this calculation is inconsistent. We need to do a little more debugging. We should write test also to make sure the labels are always the same no matter what data is received from the API and no matter which date represents "today" (eg. end of February / start of march).

Output: Gain of fixing the issue?

It is easier to relate to time data when we understand data relative to today. If the labels are wrongly selected though, we cannot see that so easily. FIxing this issue would make the chart easier to understand.

Issue creation checklist

  • I have attached one of the priority labels HIGH, MIDDLE, LOW
  • I have attached other labels with regard to the issues purpose (i.e.enhancement, bug, community feedback)