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

Charts generation improvments #310

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

owl352
Copy link
Collaborator

@owl352 owl352 commented Nov 13, 2024

Issue

After last update for charts, we have tiny bugs with they generation. One of this - last point may be not equal of end of time range
Also we need new param for generation with setted intervals count

Things done

Fixed all bugs with generation
Added new method for convertation timespan duration to ISO-8601 duration
Updated README.md
Updated all test for validators and transactions charts data

####################
  REQUEST EXAMPLE
####################

http://localhost:3005/validator/85F15A31D3838293A9C1D72A1A0FA21E66110CE20878BD4C1024C4AE1D5BE824/stats?start=2024-11-07T21:00:00.000Z&end=2024-11-11T20:59:59.999Z&intervalsCount=4

[
  {
    "timestamp": "2024-11-07T21:00:00.000Z",
    "data": {
      "blocksCount": 21
    }
  },
  {
    "timestamp": "2024-11-08T21:00:00.000Z",
    "data": {
      "blocksCount": 18
    }
  },
  {
    "timestamp": "2024-11-09T21:00:00.000Z",
    "data": {
      "blocksCount": 20
    }
  }
]

@owl352 owl352 added the backend Related to backend (API) label Nov 13, 2024
@owl352 owl352 self-assigned this Nov 13, 2024
Copy link

vercel bot commented Nov 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
platform-explorer-mainnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 13, 2024 1:54am
platform-explorer-testnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 13, 2024 1:54am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Related to backend (API)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant