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

Binsync Server Implementation #348

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft

Conversation

Exiled1
Copy link

@Exiled1 Exiled1 commented Jan 8, 2024

This draft PR is aimed towards solving #346.

TODO:

  • Implement Git Server
    • Set up Object Mode
    • Set up Server mode
  • Update client to use Git Server for git operations.

Renamed item in atomic git action to GitServer. Probably easier to just copy over stuff from the client and delete whatever I don't need.

Also, one small type change for iterable repos.
Temporarily commented out a property for has_remote. Added some logic to create and shut down the server.

Currently doesn't handle calling of any atomic git actions. I still need to handle the scheduler stuff.
Currently, just added a flag to use the server versions of functions if a client flag is on. My echo function works, but nothing with the atomic decorator works for now. However, basic communication works. And the client is able to shut the server down. There's some TODOs that need to be taken care of. Mainly the fact that if the server address is in use then attempt to create a proxy instead of create a full server.
Basically just hijacked the code to test the client, and I'm using that to quickly test, since making a binja connection every time would be a pain to debug.
@Exiled1
Copy link
Author

Exiled1 commented Jan 17, 2024

Okay, I copied over the client code to the git server, since I figured it'd be easier to delete stuff I wasn't using later. Currently able to spin up an XMLRPC server, tested it with 1 client and non atomic calls work. There's a line I forgot to change that's making it accept only 1 client. Will change that next commit.

For the time being I just tacked on the atomic git action decorator to the server, that's probably wrong, so the commits are heavily WIP.

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.

None yet

2 participants