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

Fix charts by syncing with the latest tx_volume stats API changes #812

Merged
merged 2 commits into from
Aug 24, 2023

Conversation

buberdds
Copy link
Contributor

@buberdds buberdds commented Aug 22, 2023

  • sync with new props
  • follow new BE naming convention

Relates to oasisprotocol/nexus#477

Charts on prod are broken due to API change. There's draft PR, but Kristof is out this week. I don't think we need to switch date-fns functions from start* to end*. Output of FE grouping will be the same. We need to sync prop names and use both query params (window_size_seconds, window_step_seconds) for tx_volume.

@github-actions
Copy link

github-actions bot commented Aug 22, 2023

Deployed to Cloudflare Pages

Latest commit: 66f4dd02d9e6a61c16c7d8a690cd185f908e6d2d
Status:✅ Deploy successful!
Preview URL: https://f4cc5142.oasis-explorer.pages.dev

@buberdds buberdds requested review from lubej and lukaw3d August 22, 2023 09:48
Comment on lines +21 to +28
window_size_seconds: fiveMinutesWindowSize,
window_step_seconds: fiveMinutesWindowSize,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add comment about the difference

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh oops, hovering on them already explains the difference. It shows field docs because of satisfies { [duration in ChartDuration]: GetLayerStatsTxVolumeParams }

@buberdds buberdds merged commit c3fc6b7 into master Aug 24, 2023
@buberdds buberdds deleted the mz/charts branch August 24, 2023 08:14
@csillag csillag mentioned this pull request Sep 1, 2023
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.

2 participants