sapling/eden
Liubov Dmitrieva 3bc7f9e3cc Fix compatibility issue with Mononoke for fetching tree's metadata.
Summary:
Fix compatibility issue with Mononoke for fetching tree's metadata (S412931).

We would like to resume returning the sha256 hash and content id hash for some period of time due to incompatibility issue client side.

The old logic contained a problematic unti-pattern with "unwrap()" calls on option types while converting FileMetadata to FileAuxData, causing a need to support "assumptions" compatibility on top of backwards compatibility within binary edenapi transport/protocol that we already have.

The diff will accommodate this remaining layer of compatibility by adding the
fields back.

server side was:

```
size: Some(metadata.total_size),
content_sha1: Some(metadata.sha1.into()),
content_blake3: Some(metadata.seeded_blake3.into()),
content_id: Some(metadata.content_id.into()),
content_sha256: Some(metadata.sha256.into()),
```

client side was:
```
size.unwrap()
content_sha1.unwrap()
content_blake3.unwrap()
content_id.unwrap()
content_sha256.unwrap()
```

Reviewed By: gustavoavena

Differential Revision: D56567319

fbshipit-source-id: c0260c6dfeb95f5175715a9c411c5f503c5123c6
2024-04-25 10:04:04 -07:00
..
contrib Update links for reviewstack github repo (#867) 2024-04-04 09:53:17 -07:00
facebook eden 2023-10-23 09:12:58 -07:00
fs change params to const& 2024-04-25 08:21:31 -07:00
integration add tests for Rust rollout config 2024-04-24 14:06:53 -07:00
locale add a copyright header to glibc_en.po 2019-04-26 14:38:27 -07:00
mononoke Fix compatibility issue with Mononoke for fetching tree's metadata. 2024-04-25 10:04:04 -07:00
scm Fix compatibility issue with Mononoke for fetching tree's metadata. 2024-04-25 10:04:04 -07:00
test_support Pyre Configurationless migration for] [batch:13/244] 2024-03-04 08:24:00 -08:00
test-data Re-sync with internal repository 2023-10-11 22:09:00 -07:00
.clang-tidy clang-tidy: disable facebook-hte-ContextDependentStaticInit 2022-11-04 15:33:50 -07:00
.gitignore
.mononoke_test_file
BUILD_MODE.bzl Enable warnings for shadow definitions for clang/gcc 2023-10-27 16:29:22 -07:00
defs.bzl integration: use universal Mac binary 2023-10-27 14:45:05 -07:00
Eden.project.toml
TARGETS Re-sync with internal repository 2023-10-11 22:09:00 -07:00