Skip to content

Commit

Permalink
Removing id_graph_stats getter and related tests (#2600)
Browse files Browse the repository at this point in the history
  • Loading branch information
silva-fj committed Mar 20, 2024
1 parent c27495d commit a3c80ba
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 242 deletions.
11 changes: 0 additions & 11 deletions tee-worker/app-libs/stf/src/getter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,6 @@ pub enum TrustedGetter {
// litentry
#[codec(index = 5)]
id_graph(Identity),
#[codec(index = 6)]
id_graph_stats(Identity),
}

impl TrustedGetter {
Expand All @@ -141,7 +139,6 @@ impl TrustedGetter {
TrustedGetter::evm_account_storages(sender_identity, ..) => sender_identity,
// litentry
TrustedGetter::id_graph(sender_identity) => sender_identity,
TrustedGetter::id_graph_stats(sender_identity) => sender_identity,
}
}

Expand Down Expand Up @@ -253,14 +250,6 @@ impl ExecuteGetter for TrustedGetterSigned {
},
// litentry
TrustedGetter::id_graph(who) => Some(IdentityManagement::id_graph(&who).encode()),

// TODO: we need to re-think it
// currently, _who is ignored meaning it's actually not a "trusted" getter.
// In fact, in the production no one should have access to the concrete identities
// but maybe it makes sense to get some statistic information
// Disabled until it's resolved
// Disabled the test `lit-id-graph-stats` too
TrustedGetter::id_graph_stats(_who) => None,
}
}

Expand Down
110 changes: 0 additions & 110 deletions tee-worker/cli/lit_id_graph_stats.sh

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

pub mod get_storage;
pub mod id_graph;
pub mod id_graph_stats;
pub mod link_identity;
pub mod remove_identity;
pub mod request_batch_vc;
Expand Down
10 changes: 3 additions & 7 deletions tee-worker/cli/src/trusted_base_cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ use crate::{
get_shard::GetShardCommand,
get_shard_vault::GetShardVaultCommand,
litentry::{
get_storage::GetStorageCommand, id_graph_stats::IDGraphStats,
link_identity::LinkIdentityCommand, remove_identity::RemoveIdentityCommand,
request_batch_vc::RequestBatchVcCommand, request_vc::RequestVcCommand,
get_storage::GetStorageCommand, link_identity::LinkIdentityCommand,
remove_identity::RemoveIdentityCommand, request_batch_vc::RequestBatchVcCommand,
request_vc::RequestVcCommand,
send_erroneous_parentchain_call::SendErroneousParentchainCallCommand,
},
nonce::NonceCommand,
Expand Down Expand Up @@ -81,9 +81,6 @@ pub enum TrustedBaseCommand {
/// send an erroneous parentchain call intentionally, only used in tests
SendErroneousParentchainCall(SendErroneousParentchainCallCommand),

/// Disabled for now: get count of all keys account + identity in the IDGraphs
IDGraphStats(IDGraphStats),

/// Link the given identity to the prime identity, with specified networks
LinkIdentity(LinkIdentityCommand),

Expand Down Expand Up @@ -115,7 +112,6 @@ impl TrustedBaseCommand {
// Litentry's commands below
TrustedBaseCommand::GetStorage(cmd) => cmd.run(cli, trusted_cli),
TrustedBaseCommand::SendErroneousParentchainCall(cmd) => cmd.run(cli, trusted_cli),
TrustedBaseCommand::IDGraphStats(cmd) => cmd.run(cli, trusted_cli),
TrustedBaseCommand::LinkIdentity(cmd) => cmd.run(cli, trusted_cli),
TrustedBaseCommand::IDGraph(cmd) => cmd.run(cli, trusted_cli),
TrustedBaseCommand::RequestVc(cmd) => cmd.run(cli, trusted_cli),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export default {
__Unused_evm_account_codes: "Null",
__Unused_evm_account_storages: "Null",
id_graph: "(LitentryIdentity)",
id_graph_stats: "(LitentryIdentity)",
},
},
//important
Expand Down
28 changes: 0 additions & 28 deletions tee-worker/docker/lit-id-graph-stats-multiworker.yml

This file was deleted.

24 changes: 0 additions & 24 deletions tee-worker/docker/lit-id-graph-stats.yml

This file was deleted.

0 comments on commit a3c80ba

Please sign in to comment.