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

REST API streaming support #496

Merged
merged 22 commits into from
Nov 14, 2023
Merged

REST API streaming support #496

merged 22 commits into from
Nov 14, 2023

Conversation

bluesign
Copy link
Collaborator

@bluesign bluesign commented Nov 7, 2023

Closes #495

Description

Currently trie updates are not implemented but as-is it is enough to provide events, currently REST API does not allow state streaming AFAIK, so I marked as ready for review. ( as it is a blocker for FCL work )


For contributor use:

  • Targeted PR against master branch
  • Linked to GitHub issue with discussion and accepted design OR link to spec that describes this work
  • Code follows the standards mentioned here
  • Updated relevant documentation
  • Re-reviewed Files changed in the GitHub PR explorer
  • Added appropriate labels

@codecov-commenter
Copy link

codecov-commenter commented Nov 7, 2023

Codecov Report

Attention: 169 lines in your changes are missing coverage. Please review.

Comparison is base (121d5da) 54.12% compared to head (8a316b1) 51.83%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #496      +/-   ##
==========================================
- Coverage   54.12%   51.83%   -2.30%     
==========================================
  Files          29       30       +1     
  Lines        3706     3870     +164     
==========================================
  Hits         2006     2006              
- Misses       1539     1702     +163     
- Partials      161      162       +1     
Flag Coverage Δ
unittests 51.83% <2.31%> (-2.30%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
server/server.go 57.08% <100.00%> (-1.54%) ⬇️
emulator/blockchain.go 72.48% <60.00%> (-0.04%) ⬇️
server/access/rest.go 0.00% <0.00%> (ø)
server/access/streamBackend.go 0.00% <0.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bluesign
Copy link
Collaborator Author

bluesign commented Nov 8, 2023

@peterargue can you have a look at this? I am not sure if we need execution streaming here or just events are enough

@bluesign bluesign marked this pull request as ready for review November 11, 2023 12:02
@bluesign bluesign self-assigned this Nov 11, 2023
@bluesign bluesign added the Feature A new user feature or a new package API label Nov 11, 2023
server/access/streamBackend.go Outdated Show resolved Hide resolved
server/access/streamBackend.go Show resolved Hide resolved
server/access/streamBackend.go Outdated Show resolved Hide resolved
server/access/streamBackend.go Outdated Show resolved Hide resolved
server/access/streamBackend.go Outdated Show resolved Hide resolved
server/access/streamBackend.go Show resolved Hide resolved
ramtinms and others added 17 commits November 13, 2023 17:47
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Commits](spf13/cobra@v1.7.0...v1.8.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [github.com/onflow/flow-go/crypto](https://github.com/onflow/flow-go) from 0.24.9 to 0.24.10.
- [Release notes](https://github.com/onflow/flow-go/releases)
- [Commits](onflow/flow-go@v0.24.9...v0.24.10)

---
updated-dependencies:
- dependency-name: github.com/onflow/flow-go/crypto
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [github.com/gorilla/mux](https://github.com/gorilla/mux) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/gorilla/mux/releases)
- [Commits](gorilla/mux@v1.8.0...v1.8.1)

---
updated-dependencies:
- dependency-name: github.com/gorilla/mux
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
@sideninja sideninja self-requested a review November 13, 2023 17:31
@sideninja
Copy link
Contributor

@bluesign good to merge?

@bluesign
Copy link
Collaborator Author

@bluesign good to merge?

Should be good, just this ID I will investigate a bit later but we can merge

@sideninja
Copy link
Contributor

@bluesign good to merge?

Should be good, just this ID I will investigate a bit later but we can merge

yeah doesn't matter as much for now

@sideninja sideninja merged commit 25ebd74 into onflow:master Nov 14, 2023
3 checks passed
@m-Peter m-Peter mentioned this pull request Jan 4, 2024
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature A new user feature or a new package API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support state stream API
4 participants