Code Monkey home page Code Monkey logo

Comments (8)

gre avatar gre commented on August 17, 2024

can no longer repro the bug this morning

from ledger-live-desktop.

gre avatar gre commented on August 17, 2024

ok the issue is that the 2 last point are pointing to the same date.

for countervalues we use "close" date value so basically Jul 09 at 00:00 should be a lookup in Jul 08 (Jul 08 whole day countervalue is stored on 2018-07-08 but in reality is at time Jul 09 00.00). if we do - 1 ms as a hack somewhere it would fix the problem but need to think this a bit more. cc @meriadec

capture d ecran 2018-07-09 a 07 35 36

from ledger-live-desktop.

gre avatar gre commented on August 17, 2024

capture d ecran 2018-07-09 a 07 41 13

like this hack literally work but meh.

from ledger-live-desktop.

gre avatar gre commented on August 17, 2024

I think something more fundamental wrong is going on btw

look at this graph, it's saying 2018-07-08 but on the axis it's Jul 9

capture d ecran 2018-07-09 a 07 42 29

from ledger-live-desktop.

gre avatar gre commented on August 17, 2024

this can wait after the release. focus on other things ;)

from ledger-live-desktop.

meriadec avatar meriadec commented on August 17, 2024

2 things:

  • "can't repro bug this morning" : not really, the "bug" (which is not really a bug) is present this morning, but we don't see it because...it's the morning and the 2 points for today are too close
  • the date problem comes from the fact the date is just an ISOString cutted at 0-10 indexes. With the format fix commit, the dates are correct (and in the right format)

If you launch the tests in live-common, you will see there is two items for the same date at the end of the array. It's not a regression, always been like that.

from ledger-live-desktop.

gre avatar gre commented on August 17, 2024

@meriadec no actually i can repro xD but yeah. mmh no the problem is that we build date with the start of the day and not at the "end of the previous day" (it needs to be like this to reflect what we actually do on countervalue api) and it's my fault, it's a regression in live-common. i just locally fixed it from live-common and i think that's all we need to do

helpers/account.js, getBalanceHistory

  t = new Date(startOfDay(t) - 1) // midnight yesterday

don't worry about the bug for now, we need to focus on the release

from ledger-live-desktop.

meriadec avatar meriadec commented on August 17, 2024

will do PR for the date format though

from ledger-live-desktop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.