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

New routes for v3.10 compatibility #297

Merged
merged 1 commit into from
Mar 20, 2024
Merged

Conversation

nemunaire
Copy link
Collaborator

@nemunaire nemunaire commented Mar 20, 2024

In order to see the archive function to work, we need to implement the /sync/v3/check-files route.

Here is the input:

{
    "filename": "a7be6e0ea961-453b-5d54-b76e-b939beb9",
    "files": [
        "a7be6e0ea9618b3421b3131f1453b3f6e8453b5b01453bdccc7bf123b4bebeb9",
        "84eae55a21242bc1b8da64209161ed97ea2927a24ec434732d363453ab3ad9d4",
        "3d4b122055d556f2cd0e936e4dd264817e17196cb828e886cc7ae6d298268b45",
        "ebaef2a30e1d43068726d14c31b4ce763585c1f942be7cd2f8843d55f99fe6f8",
        "ba023d47bd42294fd3f64869507a96cea932b8157d14f1c315c84bba87d6e9a4"
    ],
    "reason": "Archive"
}

I also see a reason "Logout" when we try to unpair the device from cloud.

The current implementation doesn't return anything and it works. (As we didn't delete any file, the archived file can be retrieved as always.)

@nemunaire nemunaire force-pushed the f/v3.10 branch 3 times, most recently from 5b0e83e to d344fb4 Compare March 20, 2024 17:39
@nemunaire
Copy link
Collaborator Author

There is another route GET /sync/v3/missing returning {"hashes":[]}.

The route POST /sync/v3/check-files returns {"missingFiles":[]} filled with eventual missing blob id.

@nemunaire nemunaire merged commit 783da33 into ddvk:master Mar 20, 2024
4 checks passed
@nemunaire nemunaire deleted the f/v3.10 branch November 17, 2024 10:26
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.

1 participant