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

Implement Object Delete Command #1816

Merged
merged 12 commits into from
Dec 18, 2024

Conversation

Saartank
Copy link
Collaborator

@Saartank Saartank commented Dec 9, 2024

This PR closes #1685 by implementing an object delete command.

The object delete command is not openly supported and is marked hidden. It deletes data from the origin and does not clean data from caches the data might have propagated to.

The object delete command supports the recursive option to delete collections.

Copy link
Member

@jhiemstrawisc jhiemstrawisc left a comment

Choose a reason for hiding this comment

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

As always, feel free to disagree with me on any change request. If we come to different conclusions, the discussion will be useful for us to make sure we're doing things right.

@Saartank Saartank marked this pull request as draft December 13, 2024 14:25
@Saartank Saartank added enhancement New feature or request client Issue affecting the OSDF client director Issue relating to the director component labels Dec 13, 2024
@Saartank Saartank modified the milestones: v7.13.0, v7.12.0 Dec 13, 2024
@Saartank Saartank marked this pull request as ready for review December 17, 2024 21:56
@jhiemstrawisc jhiemstrawisc self-requested a review December 18, 2024 14:38

// Note: Even though os.Mkdir is called with permissions, it may create directories
// with 0755 permissions due to internal behavior. To ensure the directory has the desired
// permissions permissions, we explicitly call os.Chmod after creating the directory.
Copy link
Member

Choose a reason for hiding this comment

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

Still one extra "permissions" here

@jhiemstrawisc jhiemstrawisc merged commit bc3215e into PelicanPlatform:main Dec 18, 2024
20 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client Issue affecting the OSDF client director Issue relating to the director component enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

object delete
2 participants