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

Fix sending multiple triple store and blockchain implementation info to telemetry #2425

Open
wants to merge 5 commits into
base: v6/develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 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
4 changes: 3 additions & 1 deletion src/commands/common/send-telemetry-command.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class SendTelemetryCommand extends Command {
this.telemetryInjectionService = ctx.telemetryInjectionService;
this.networkModuleManager = ctx.networkModuleManager;
this.blockchainModuleManager = ctx.blockchainModuleManager;
this.tripleStoreService = ctx.tripleStoreService;
}

/**
Expand All @@ -33,7 +34,8 @@ class SendTelemetryCommand extends Command {
hostname: this.config.hostname,
operational_wallet: this.blockchainModuleManager.getPublicKey(),
management_wallet: this.blockchainModuleManager.getManagementKey(),
triple_store: this.config.modules.tripleStore.defaultImplementation,
triple_store: this.tripleStoreService.getRepositoryImplementations(),
zeroxbt marked this conversation as resolved.
Show resolved Hide resolved
blockchain: this.blockchainModuleManager.getImplementationNames(),
auto_update_enabled: this.config.modules.autoUpdater.enabled,
multiaddresses: this.networkModuleManager.getMultiaddrs(),
},
Expand Down
4 changes: 4 additions & 0 deletions src/service/triple-store-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ class TripleStoreService {
}
}

getRepositoryImplementations() {
return this.repositoryImplementations;
}

async localStoreAsset(
repository,
assertionId,
Expand Down