apache / opendal

Apache OpenDAL: access data freely.
https://opendal.apache.org
Apache License 2.0
3.43k stars 479 forks source link

Tracking issue: refactor `versioning` tests after the `write` operation is updated to return the version ID #5139

Open meteorgan opened 1 month ago

meteorgan commented 1 month ago

Currently, the write operation does not return any metadata. As a result, in PR #5132, all versioning tests utilize the stat operation to retrieve the current object versions. Once the write operation is update to return the version ID, we can eliminate the need for these additional stat operations.

Xuanwo commented 1 month ago

Hi, I think this issue is part of a bigger scope that returning metadata after writing. This will require a major refactor of our write-related public API.

meteorgan commented 1 month ago

Hi, I think this issue is part of a bigger scope that returning metadata after writing. This will require a major refactor of our write-related public API.

Yes. as I mentioned in: https://github.com/apache/opendal/issues/2611#issuecomment-2363304110. I'll submit a RFC for this. This issue serves as a reminder to refactor the code in #5132.