-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
make client testable + first sync test #82
Conversation
@@ -9,7 +9,7 @@ | |||
class SyftBaseModel(BaseModel): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
@@ -40,6 +40,7 @@ build-backend = "setuptools.build_meta" | |||
# this will be completely ignored in the built wheel | |||
dev-dependencies = [ | |||
"bump2version>=1.0.1", | |||
"faker>=30.3.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added this coz it was missing
stop_event = Event() | ||
|
||
|
||
def register(client_config): | ||
response = requests.post( | ||
f"{client_config.server_url}/register", | ||
response = client_config.server_client.post( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
love it
@@ -244,7 +243,7 @@ def push_changes(client_config: ClientConfig, changes: list[FileChange]): | |||
try: | |||
data = { | |||
"email": client_config.email, | |||
"change": change.model_dump(), | |||
"change": change.model_dump(mode="json"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
id like to move to yaml when we can its much easier to edit in text editors and already enforces line spacing so its much easier to read
@@ -336,15 +335,15 @@ def list_datasites(client_config): | |||
return datasites | |||
|
|||
|
|||
def get_remote_state(client_config, sub_path: str): | |||
def get_remote_state(client_config: ClientConfig, sub_path: str): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can rename ClientConfig to just Client
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent work! 🙌
I think you made all the right decisions to get something in as a first step. ❤️
Description
includes changes from #79
Affected Dependencies
List any dependencies that are required for this change.
How has this been tested?
Checklist