Scille / parsec-cloud

Open source Dropbox-like file sharing with full client encryption !
https://parsec.cloud
Other
269 stars 40 forks source link

Support confinement point in workspace ops #6489

Closed touilleMan closed 4 weeks ago

touilleMan commented 6 months ago

Confinement point (to skip synchronization of a subset of a workspace depending on it path) is not implemented now

Reference PR in parsec v2: https://github.com/Scille/parsec-cloud/pull/1359

TODO list, taken for the v2 PR:

Already done: - [x] Add confined entry set to local manifest https://github.com/Scille/parsec-cloud/blob/fc76ec52b7ac92370d3ed24cce3cbd14c50b5e9b/libparsec/crates/types/schema/local_manifest/local_folder_manifest.json5#L26-L33 - [x] Add filtered entry set to local manifest (filtering entries from other clients) https://github.com/Scille/parsec-cloud/blob/fc76ec52b7ac92370d3ed24cce3cbd14c50b5e9b/libparsec/crates/types/schema/local_manifest/local_folder_manifest.json5#L34-L41 - [x] Define a confinement pattern list https://github.com/Scille/parsec-cloud/blob/fc76ec52b7ac92370d3ed24cce3cbd14c50b5e9b/libparsec/crates/client/src/workspace/default_pattern.ignore#L1-L94

To be done:

The simplest way would be to include the libparsec/crates/client/src/workspace/default_pattern.ignore using include_str and use that value as fallback in case no file is set to read the pattern from

To be done later:

vxgmichel commented 1 month ago

Reference PR in parsec v2: https://github.com/Scille/parsec-cloud/pull/1359

TODO list, taken for the v2 PR:

Already done - [x] Add confined entry set to local manifest https://github.com/Scille/parsec-cloud/blob/fc76ec52b7ac92370d3ed24cce3cbd14c50b5e9b/libparsec/crates/types/schema/local_manifest/local_folder_manifest.json5#L26-L33 - [x] Add filtered entry set to local manifest (filtering entries from other clients) https://github.com/Scille/parsec-cloud/blob/fc76ec52b7ac92370d3ed24cce3cbd14c50b5e9b/libparsec/crates/types/schema/local_manifest/local_folder_manifest.json5#L34-L41 - [x] Define a confinement pattern list https://github.com/Scille/parsec-cloud/blob/fc76ec52b7ac92370d3ed24cce3cbd14c50b5e9b/libparsec/crates/client/src/workspace/default_pattern.ignore#L1-L94
FirelightFlagboy commented 4 weeks ago

All tasks are done, closing