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

Feat: move folders/files metadata out of Folders entries #1283

Merged
merged 1 commit into from Feb 20, 2024

Conversation

bochaco
Copy link
Member

@bochaco bochaco commented Feb 8, 2024

This also makes it possible to sync/compare local changes with remote version of folders/files.

Requires PR #1304 .
Requires PR #1311 .

Description

reviewpad:summary

sn_client/src/folders.rs Fixed Show fixed Hide fixed
sn_client/src/folders.rs Fixed Show fixed Hide fixed
@bochaco bochaco force-pushed the feat-folders-metadata-into-chunks branch from 16d73ad to 5c3bbb2 Compare February 12, 2024 19:48
sn_cli/src/subcommands/acc_packet.rs Fixed Show fixed Hide fixed
sn_client/src/folders.rs Fixed Show fixed Hide fixed
@bochaco bochaco force-pushed the feat-folders-metadata-into-chunks branch from 5c3bbb2 to b7f2036 Compare February 13, 2024 17:50
sn_cli/src/subcommands/acc_packet.rs Fixed Show fixed Hide fixed
sn_client/src/folders.rs Fixed Show fixed Hide fixed
@bochaco bochaco force-pushed the feat-folders-metadata-into-chunks branch from b7f2036 to 3648f53 Compare February 13, 2024 18:29
@bochaco bochaco force-pushed the feat-folders-metadata-into-chunks branch from 3648f53 to 37999d3 Compare February 14, 2024 15:45
@bochaco bochaco force-pushed the feat-folders-metadata-into-chunks branch 2 times, most recently from 9829fbb to a60e10c Compare February 15, 2024 20:28
sn_cli/src/subcommands/files.rs Fixed Show fixed Hide fixed
sn_cli/src/subcommands/files/chunk_manager.rs Fixed Show fixed Hide fixed
sn_cli/src/subcommands/acc_packet.rs Fixed Show fixed Hide fixed
sn_cli/src/subcommands/acc_packet.rs Fixed Show fixed Hide fixed
sn_cli/src/subcommands/acc_packet.rs Fixed Show fixed Hide fixed
@bochaco bochaco force-pushed the feat-folders-metadata-into-chunks branch 4 times, most recently from b22d42e to cbe3156 Compare February 19, 2024 13:02
@bochaco bochaco marked this pull request as ready for review February 19, 2024 14:13
@bochaco bochaco force-pushed the feat-folders-metadata-into-chunks branch 3 times, most recently from 92ce84f to 1ce392f Compare February 19, 2024 16:53
@bochaco bochaco force-pushed the feat-folders-metadata-into-chunks branch from 1ce392f to 5c34bd3 Compare February 19, 2024 17:30
@joshuef joshuef added this pull request to the merge queue Feb 20, 2024
fn add_entry(&mut self, name: OsString, content: FolderEntry) -> Result<(Metadata, XorName)> {
// create metadata Chunk for this entry
let metadata = Metadata {
name: name.to_str().unwrap_or("unknown").to_string(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be just the OsString? The previous todo said the following
// TODO: conversion to String will be removed when metadata is moved out of the Register

Copy link
Member Author

@bochaco bochaco Feb 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is a problem with wasm build and unsafe api from OsString, it needs more investigation

Merged via the queue into maidsafe:main with commit 90990b7 Feb 20, 2024
55 checks passed
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

3 participants