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

add graphql data provider for data query #1038

Merged
merged 85 commits into from
Dec 23, 2022
Merged

Conversation

BillyWooo
Copy link
Collaborator

add new data provider graphql interface.

resolves #1030
resolves #1029
resolves #1024

Kailai-Wang and others added 30 commits July 5, 2022 20:20
@BillyWooo BillyWooo changed the base branch from tee-dev to dev December 19, 2022 02:34
@BillyWooo BillyWooo self-assigned this Dec 19, 2022
@Kailai-Wang Kailai-Wang requested a review from a team December 19, 2022 14:24
@Kailai-Wang
Copy link
Collaborator

Maybe we need to close and reopen the PR to trigger CI

.map_err(|e| Error::RequestError(format!("{:?}", e)))?;

if let Some(value) = response.data.get("data") {
let is_hodler_out: IsHodlerOut = serde_json::from_value(value.clone()).unwrap();
Copy link
Contributor

Choose a reason for hiding this comment

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

need to make sure or add some comment that unwrap() is much safe to use here, or return an Invalid data error.

@BillyWooo BillyWooo marked this pull request as draft December 20, 2022 08:05
@BillyWooo BillyWooo marked this pull request as ready for review December 20, 2022 16:21
@codecov-commenter
Copy link

codecov-commenter commented Dec 20, 2022

Codecov Report

Merging #1038 (ec5aa92) into dev (f34f222) will decrease coverage by 0.03%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##              dev    #1038      +/-   ##
==========================================
- Coverage   20.62%   20.59%   -0.04%     
==========================================
  Files         217      217              
  Lines        9060     9074      +14     
==========================================
  Hits         1869     1869              
- Misses       7191     7205      +14     
Impacted Files Coverage Δ
...-worker/litentry/core/stf-task/receiver/src/lib.rs 0.00% <ø> (ø)
...ry/core/stf-task/receiver/src/stf_task_receiver.rs 0.00% <0.00%> (ø)
tee-worker/service/src/main.rs 0.00% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Collaborator

@Kailai-Wang Kailai-Wang left a comment

Choose a reason for hiding this comment

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

I have raised a few questions.

Are the older review comments resolved? If so, we should mark them as "resolved"

Copy link
Collaborator

@Kailai-Wang Kailai-Wang left a comment

Choose a reason for hiding this comment

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

Thanks!

Let's not forget we'd need multiple tests once the VC part is done

@jingleizhang jingleizhang merged commit 2548093 into dev Dec 23, 2022
@ziming-zung ziming-zung deleted the graphql_data_provider branch January 4, 2023 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants