Skip to content

node: remove graphman drop command #5974

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 0 additions & 46 deletions node/src/bin/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,29 +309,6 @@ pub enum Command {
#[clap(subcommand)]
Database(DatabaseCommand),

/// Delete a deployment and all it's indexed data
///
/// The deployment can be specified as either a subgraph name, an IPFS
/// hash `Qm..`, or the database namespace `sgdNNN`. Since the same IPFS
/// hash can be deployed in multiple shards, it is possible to specify
/// the shard by adding `:shard` to the IPFS hash.
Drop {
/// The deployment identifier
deployment: DeploymentSearch,
/// Search only for current version
#[clap(long, short)]
current: bool,
/// Search only for pending versions
#[clap(long, short)]
pending: bool,
/// Search only for used (current and pending) versions
#[clap(long, short)]
used: bool,
/// Skip confirmation prompt
#[clap(long, short)]
force: bool,
},

/// Deploy a subgraph
Deploy {
name: DeploymentSearch,
Expand Down Expand Up @@ -1699,29 +1676,6 @@ async fn main() -> anyhow::Result<()> {
}
}
}
Drop {
deployment,
current,
pending,
used,
force,
} => {
let sender = ctx.notification_sender();
let (store, primary_pool) = ctx.store_and_primary();
let subgraph_store = store.subgraph_store();

commands::drop::run(
primary_pool,
subgraph_store,
sender,
deployment,
current,
pending,
used,
force,
)
.await
}

Deploy {
deployment,
Expand Down
68 changes: 0 additions & 68 deletions node/src/manager/commands/drop.rs

This file was deleted.

1 change: 0 additions & 1 deletion node/src/manager/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ pub mod create;
pub mod database;
pub mod deploy;
pub mod deployment;
pub mod drop;
pub mod index;
pub mod listen;
pub mod provider_checks;
Expand Down