Skip to content

Commit

Permalink
Merge branch 'main' into more-oli
Browse files Browse the repository at this point in the history
  • Loading branch information
tisonkun authored Dec 21, 2024
2 parents d5218b0 + 7f0c9a1 commit 5a5fb96
Show file tree
Hide file tree
Showing 14 changed files with 31 additions and 20 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
* feat(core): Add `content_encoding` to `MetaData` by @Frank-III in https://github.com/apache/opendal/pull/5400
* feat:(core): add `content encoding` to `Opwrite` by @Frank-III in https://github.com/apache/opendal/pull/5390
* feat(services/obs): support user defined metadata by @Frank-III in https://github.com/apache/opendal/pull/5405
* feat: impl configurable OperatorOutputStream maxBytes by @tisonkun in https://github.com/apache/opendal/pull/5422
### Changed
* refactor (bindings/zig): Improvements by @kassane in https://github.com/apache/opendal/pull/5247
* refactor: Remove metakey concept by @Xuanwo in https://github.com/apache/opendal/pull/5319
Expand All @@ -52,12 +53,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
* fix: oli clippy and CI file by @waynexia in https://github.com/apache/opendal/pull/5389
* fix(services/obs): support huawei.com by @FayeSpica in https://github.com/apache/opendal/pull/5399
* fix(integrations/cloud_filter): use explicit `stat` instead of `Entry::metadata` in `fetch_placeholders` by @ho-229 in https://github.com/apache/opendal/pull/5416
* fix(core): S3 multipart uploads does not set file metadata by @catcatmu in https://github.com/apache/opendal/pull/5430
* fix: always contains path label if configured by @waynexia in https://github.com/apache/opendal/pull/5433
### Docs
* docs: Enable force_orphan to reduce clone size by @Xuanwo in https://github.com/apache/opendal/pull/5289
* docs: Establish VISION for "One Layer, All Storage" by @Xuanwo in https://github.com/apache/opendal/pull/5309
* docs: Polish docs for write with if not exists by @Xuanwo in https://github.com/apache/opendal/pull/5320
* docs(core): add the description of version parameter for operator by @meteorgan in https://github.com/apache/opendal/pull/5144
* docs(core): Add upgrade to v0.51 by @Xuanwo in https://github.com/apache/opendal/pull/5406
* docs: Update release.md by @tisonkun in https://github.com/apache/opendal/pull/5431
### CI
* ci: Remove the token of codspeed by @Xuanwo in https://github.com/apache/opendal/pull/5283
* ci: Allow force push for `gh-pages` by @Xuanwo in https://github.com/apache/opendal/pull/5290
Expand Down
2 changes: 1 addition & 1 deletion bindings/haskell/opendal.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ cabal-version: 3.0
-- under the License.

name: opendal
version: 0.44.11.0
version: 0.44.14.0
license: Apache-2.0
synopsis: Apache OpenDAL™ Haskell Binding
description:
Expand Down
2 changes: 1 addition & 1 deletion bindings/java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

<groupId>org.apache.opendal</groupId>
<artifactId>opendal</artifactId>
<version>0.47.4</version>
<version>0.47.6</version>

<name>Apache OpenDAL™</name>
<description>
Expand Down
2 changes: 1 addition & 1 deletion bindings/nodejs/npm/darwin-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@opendal/lib-darwin-arm64",
"repository": "[email protected]/apache/opendal.git",
"version": "0.47.7",
"version": "0.47.8",
"os": [
"darwin"
],
Expand Down
2 changes: 1 addition & 1 deletion bindings/nodejs/npm/darwin-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opendal/lib-darwin-x64",
"version": "0.47.7",
"version": "0.47.8",
"repository": "[email protected]/apache/opendal.git",
"os": [
"darwin"
Expand Down
2 changes: 1 addition & 1 deletion bindings/nodejs/npm/linux-arm64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opendal/lib-linux-arm64-gnu",
"version": "0.47.7",
"version": "0.47.8",
"repository": "[email protected]/apache/opendal.git",
"os": [
"linux"
Expand Down
2 changes: 1 addition & 1 deletion bindings/nodejs/npm/linux-arm64-musl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opendal/lib-linux-arm64-musl",
"version": "0.47.7",
"version": "0.47.8",
"repository": "[email protected]/apache/opendal.git",
"os": [
"linux"
Expand Down
2 changes: 1 addition & 1 deletion bindings/nodejs/npm/linux-x64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opendal/lib-linux-x64-gnu",
"version": "0.47.7",
"version": "0.47.8",
"repository": "[email protected]/apache/opendal.git",
"os": [
"linux"
Expand Down
2 changes: 1 addition & 1 deletion bindings/nodejs/npm/win32-arm64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opendal/lib-win32-arm64-msvc",
"version": "0.47.7",
"version": "0.47.8",
"repository": "[email protected]/apache/opendal.git",
"os": [
"win32"
Expand Down
2 changes: 1 addition & 1 deletion bindings/nodejs/npm/win32-x64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opendal/lib-win32-x64-msvc",
"version": "0.47.7",
"version": "0.47.8",
"repository": "[email protected]/apache/opendal.git",
"os": [
"win32"
Expand Down
2 changes: 1 addition & 1 deletion bindings/nodejs/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "opendal",
"author": "Apache OpenDAL <[email protected]>",
"version": "0.47.7",
"version": "0.47.8",
"license": "Apache-2.0",
"main": "index.js",
"types": "index.d.ts",
Expand Down
11 changes: 6 additions & 5 deletions core/src/layers/observe/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ pub use metrics::METRIC_OPERATION_ERRORS_TOTAL;
/// - level > 0: the path label will be the path split by "/" and get the last n level,
/// if n=1 and input path is "abc/def/ghi", and then we'll use "abc/" as the path label.
pub fn path_label_value(path: &str, level: usize) -> Option<&str> {
if path.is_empty() {
return None;
}

if level > 0 {
if path.is_empty() {
return Some("");
}

let label_value = path
.char_indices()
.filter(|&(_, c)| c == '/')
Expand All @@ -80,6 +80,7 @@ mod tests {
assert_eq!(path_label_value(path, 3), Some("abc/def/ghi"));
assert_eq!(path_label_value(path, usize::MAX), Some("abc/def/ghi"));

assert_eq!(path_label_value("", 1), None);
assert_eq!(path_label_value("", 0), None);
assert_eq!(path_label_value("", 1), Some(""));
}
}
7 changes: 7 additions & 0 deletions core/src/services/s3/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,13 @@ impl S3Core {
req = req.header(HeaderName::from_static(constants::X_AMZ_STORAGE_CLASS), v);
}

// Set user metadata headers.
if let Some(user_metadata) = args.user_metadata() {
for (key, value) in user_metadata {
req = req.header(format!("{X_AMZ_META_PREFIX}{key}"), value)
}
}

// Set SSE headers.
let req = self.insert_sse_headers(req, true);

Expand Down
9 changes: 4 additions & 5 deletions website/community/release/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,10 @@ For example:
Bump all components' version in the project to the new opendal version.
Please note that this version is the exact version of the release, not the release candidate version.

- rust core: bump version in `Cargo.toml`
- cpp binding: bump version in `bindings/cpp/CMakeLists.txt`
- haskell binding: bump version and update the `tag` field of `source-repository this` in `bindings/haskell/opendal.cabal`
- java binding: bump version in `bindings/java/pom.xml`
- node.js binding: bump version in `bindings/nodejs/package.json` and `bindings/nodejs/npm/*/package.json`
- Rust core: Bump version in `Cargo.toml`
- Haskell binding: Bump version and update the `tag` field of `source-repository this` in `bindings/haskell/opendal.cabal`
- Java binding: Bump version in `bindings/java/pom.xml`
- Node.js binding: Bump version in `bindings/nodejs/package.json` and `bindings/nodejs/npm/*/package.json`

### Update docs

Expand Down

0 comments on commit 5a5fb96

Please sign in to comment.