JuliaDataCubes / JuliaDataCubes/YAXArrays.jl

check_overwrite does not work on S3

Open
#511 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
132
Forks
25
PR merge metrics
No merged PRs in 30d

Description

Trying to overwrite a cube on S3 fails, because the if clause in the check_overwrite function only works locally because it is based on isdir and isfile.
We should change everything to work on FilePathsBase so that it would also work with S3Paths.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the check_overwrite function and inspect its isdir and isfile checks, then read the FilePathsBase and S3Paths usage in the surrounding code. Verify the overwrite behavior for both local paths and S3 paths; done means overwriting a cube works on S3 as well as locally.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, julia
Domain
cloud, data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.