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

core/commands!: remove deprecated object APIs #10375

Merged
merged 2 commits into from
Mar 22, 2024
Merged

core/commands!: remove deprecated object APIs #10375

merged 2 commits into from
Mar 22, 2024

Conversation

hacdias
Copy link
Member

@hacdias hacdias commented Mar 19, 2024

The idea is to remove all deprecated Object API commands (deprecated since 2021, #7936), except for object diff, which does not have an alternative.

Closes #8887
Closes #3359
Closes #7384
Closes #5058
Closes #1724

@hacdias hacdias self-assigned this Mar 19, 2024
@hacdias hacdias closed this Mar 19, 2024
@hacdias hacdias reopened this Mar 19, 2024
@hacdias hacdias force-pushed the remove-object branch 2 times, most recently from a3c68bf to c552d08 Compare March 19, 2024 16:09
@hacdias hacdias requested a review from lidel March 19, 2024 16:17
@hacdias hacdias marked this pull request as ready for review March 19, 2024 16:17
@hacdias hacdias requested a review from a team as a code owner March 19, 2024 16:17
@hacdias hacdias mentioned this pull request Mar 19, 2024
11 tasks
test/sharness/t0090-get.sh Outdated Show resolved Hide resolved
Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

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

Lgtm, but it may be safer if we also keep commands for patching directories.

core/commands/commands_test.go Outdated Show resolved Hide resolved
This allows us to return meaningful error to end users who were not
aware of deprecation, and also produce useful removal notice at
https://docs.ipfs.tech/reference/kubo/rpc/ for people who
try to execute commands or RPC from old tutorials.
Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

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

@hacdias thanks! lgtm, added some graceful errors – details inline.
if no concerns, feel free to merge

core/commands/object/object.go Show resolved Hide resolved
core/commands/dht.go Show resolved Hide resolved
@hacdias hacdias merged commit 9047fed into master Mar 22, 2024
19 checks passed
@hacdias hacdias deleted the remove-object branch March 22, 2024 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: 🎉 Done
3 participants