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

Merged
merged 9 commits into from
Nov 18, 2024
Merged

Charts generation improvments #310

merged 9 commits into from
Nov 18, 2024

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 18, 2024 2:39pm
platform-explorer-testnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 18, 2024 2:39pm

# Conflicts:
#	packages/api/src/utils.js
#	packages/frontend/src/app/api/content.md
@owl352 owl352 merged commit 6c19f6f into master Nov 18, 2024
9 checks passed
@owl352 owl352 deleted the feat/graphs-graph-inprovments branch November 23, 2024 00:54
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.

2 participants