powerhouse-inc / connect

https://document-model-electron.vercel.app
3 stars 3 forks source link

Add small illustration video about Slug in Connect / Switchboard #335

Open froid1911 opened 3 months ago

froid1911 commented 3 months ago

1) removeDrive(ID) and addDrive(ID, slug, reassignSlug=true) GraphQL mutations are used to remove an existing drive and readd it with the same slug

2) Connect settings need to be changed to define the default drive's slug instead of the ID (getDriveInfo by slug). However, once the slug is resolved to a drive ID, the ID is used for subsequent calls.

3) Whenever a request is made to the Switchboard drive endpoint, a 404 is returned if that drive is no longer present on Switchboard with message "Drive not found"

4) When Connect detects this specific error, it should 4.a) detach the remote URL for the drive, turning the drive into a local drive 4.b) if the slug == default drive slug, it should try to re-add the default drive by slug (calls Switchboard again to resolve the slug to ID)

5) The now local drive's label should be extended with " (old)". The user can now go to settings and clear the storage, which will remove this drive. Or the user can change the label or remove the drive manually if allowed by the permissions.

====

This issue is done when the possible unit tests against drive server and switchboard logic are written and passing. Later we will add Cypress (out of scope for now).

CallmeT-ty commented 1 month ago

Add small illustration video

froid1911 commented 1 month ago

Image