-
Notifications
You must be signed in to change notification settings - Fork 13
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
Migrate to GraphQL #140
Draft
codecakes
wants to merge
11
commits into
main
Choose a base branch
from
feature/rewrite-web-app
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Migrate to GraphQL #140
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Reviewer's Guide by SourceryThis pull request migrates the project to use GraphQL for its API. It includes the initial setup of the GraphQL schema, resolvers with mocked data, and necessary configurations. The changes also include updates to the project's documentation and dependencies. Sequence diagram for GraphQL query flowsequenceDiagram
participant Client
participant GraphQL
participant Resolver
participant MockData
Client->>GraphQL: Query (patients/diagnosis/facilities)
GraphQL->>Resolver: Forward Query
Resolver->>MockData: Get Mock Data
MockData-->>Resolver: Return Mocked Response
Resolver-->>GraphQL: Resolved Data
GraphQL-->>Client: Query Response
Class diagram for GraphQL types and modelsclassDiagram
class Patient {
+str cust_id
+str query
+GeoLocation geo_location
}
class Provider {
+str id
+str name
}
class Query {
+patients(): List[PatientType]
+diagnosis(): DiagnosisQueryType
+facilities(): FacilitiesResultType
}
class FacilitiesResultType {
+str name
+AddressType address
+GeoLocationType geolocation
+str contact
+str facility_type
+str ownership
+List[str] specialties
+int stars
+int reviews
+int rank
+float estimated_time
}
Query ..> Patient: returns
Query ..> Provider: returns
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
… services to run on startup
…tead use drop-in replacement asyncio.Queue
…tead use drop-in replacement asyncio.Queue
…as a separate service
…nning a graphql api server and an independent running task scheduling grpc server
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes are as per: https://github.com/myhealthconnectsociety/project-healthcare/blob/715df4a91a4a6b0ff09c4c7915c5e4ff40843919/docs/roadmap.md
Summary by Sourcery
Introduce a GraphQL API with initial mocked data for patients, diagnosis queries, and facilities.
New Features:
Tests: