mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Update (disabled) telemetry settings.
This commit is contained in:
@@ -82,6 +82,7 @@ class CorrectDatabase extends Command
|
||||
$result = Artisan::output();
|
||||
echo $result;
|
||||
}
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@@ -76,6 +76,8 @@ class CorrectOpeningBalanceCurrencies extends Command
|
||||
$this->info('There was nothing to fix in the opening balance transactions.');
|
||||
}
|
||||
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@@ -77,6 +77,7 @@ class CreateAccessTokens extends Command
|
||||
}
|
||||
$end = round(microtime(true) - $start, 2);
|
||||
$this->info(sprintf('Verify access tokens in %s seconds.', $end));
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@@ -78,6 +78,7 @@ class CreateLinkTypes extends Command
|
||||
}
|
||||
$end = round(microtime(true) - $start, 2);
|
||||
$this->info(sprintf('Verified link types in %s seconds', $end));
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@@ -74,6 +74,7 @@ class DeleteEmptyGroups extends Command
|
||||
}
|
||||
$end = round(microtime(true) - $start, 2);
|
||||
$this->info(sprintf('Verified empty groups in %s seconds', $end));
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@@ -57,7 +57,7 @@ class DeleteEmptyJournals extends Command
|
||||
{
|
||||
$this->deleteUnevenJournals();
|
||||
$this->deleteEmptyJournals();
|
||||
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@@ -61,7 +61,7 @@ class DeleteOrphanedTransactions extends Command
|
||||
$this->deleteFromOrphanedAccounts();
|
||||
$end = round(microtime(true) - $start, 2);
|
||||
$this->info(sprintf('Verified orphans in %s seconds', $end));
|
||||
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@@ -77,6 +77,7 @@ class DeleteZeroAmount extends Command
|
||||
|
||||
$end = round(microtime(true) - $start, 2);
|
||||
$this->info(sprintf('Verified zero-amount integrity in %s seconds', $end));
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@@ -100,6 +100,7 @@ class EnableCurrencies extends Command
|
||||
|
||||
$end = round(microtime(true) - $start, 2);
|
||||
$this->info(sprintf('Verified currencies in %s seconds.', $end));
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@@ -105,7 +105,7 @@ class FixAccountTypes extends Command
|
||||
|
||||
$end = round(microtime(true) - $start, 2);
|
||||
$this->info(sprintf('Verifying account types took %s seconds', $end));
|
||||
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@@ -73,7 +73,7 @@ class FixLongDescriptions extends Command
|
||||
}
|
||||
$end = round(microtime(true) - $start, 2);
|
||||
$this->info(sprintf('Verified all transaction group and journal title lengths in %s seconds.', $end));
|
||||
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
@@ -97,7 +97,7 @@ class FixPiggies extends Command
|
||||
|
||||
$end = round(microtime(true) - $start, 2);
|
||||
$this->line(sprintf('Verified the content of %d piggy bank events in %s seconds.', $set->count(), $end));
|
||||
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
@@ -65,7 +65,7 @@ class FixRecurringTransactions extends Command
|
||||
|
||||
$end = round(microtime(true) - $start, 2);
|
||||
$this->info(sprintf('Corrected recurring transactions %s seconds.', $end));
|
||||
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@@ -74,7 +74,7 @@ class FixUnevenAmount extends Command
|
||||
|
||||
$end = round(microtime(true) - $start, 2);
|
||||
$this->info(sprintf('Verified amount integrity in %s seconds', $end));
|
||||
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@@ -70,7 +70,7 @@ class RemoveBills extends Command
|
||||
}
|
||||
$end = round(microtime(true) - $start, 2);
|
||||
$this->info(sprintf('Verified bills / journals in %s seconds', $end));
|
||||
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
@@ -82,7 +82,7 @@ class RenameMetaFields extends Command
|
||||
|
||||
$end = round(microtime(true) - $start, 2);
|
||||
$this->info(sprintf('Renamed meta fields in %s seconds', $end));
|
||||
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@@ -73,7 +73,7 @@ class TransferBudgets extends Command
|
||||
}
|
||||
$end = round(microtime(true) - $start, 2);
|
||||
$this->info(sprintf('Verified budget/journals in %s seconds.', $end));
|
||||
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
@@ -55,7 +55,6 @@ class CreateDatabase extends Command
|
||||
{
|
||||
if ('mysql' !== env('DB_CONNECTION')) {
|
||||
$this->info(sprintf('CreateDB does not apply to "%s", skipped.', env('DB_CONNECTION')));
|
||||
|
||||
return 0;
|
||||
}
|
||||
// try to set up a raw connection:
|
||||
@@ -69,7 +68,6 @@ class CreateDatabase extends Command
|
||||
$pdo = new PDO($dsn, env('DB_USERNAME'), env('DB_PASSWORD'), $options);
|
||||
} catch (PDOException $e) {
|
||||
$this->error(sprintf('Error when connecting to DB: %s', $e->getMessage()));
|
||||
|
||||
return 1;
|
||||
}
|
||||
// with PDO, try to list DB's (
|
||||
|
@@ -117,7 +117,7 @@ class DecryptDatabase extends Command
|
||||
|
||||
}
|
||||
$this->info('Done!');
|
||||
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@@ -135,8 +135,10 @@ class ExportData extends Command
|
||||
$this->exportData($options, $data);
|
||||
} catch (FireflyException $e) {
|
||||
$this->error(sprintf('Could not store data: %s', $e->getMessage()));
|
||||
// app('telemetry')->feature('executed-command-with-error', $this->signature);
|
||||
return 1;
|
||||
}
|
||||
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@@ -127,7 +127,7 @@ class CreateCSVImport extends Command
|
||||
$this->processFile();
|
||||
} catch (FireflyException $e) {
|
||||
$this->errorLine($e->getMessage());
|
||||
|
||||
// app('telemetry')->feature('executed-command-with-error', $this->signature);
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -136,7 +136,7 @@ class CreateCSVImport extends Command
|
||||
$this->storeData();
|
||||
} catch (FireflyException $e) {
|
||||
$this->errorLine($e->getMessage());
|
||||
|
||||
// app('telemetry')->feature('executed-command-with-error', $this->signature);
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -145,7 +145,7 @@ class CreateCSVImport extends Command
|
||||
|
||||
// clear cache for user:
|
||||
app('preferences')->setForUser($user, 'lastActivity', microtime());
|
||||
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@@ -63,7 +63,7 @@ class ReportEmptyObjects extends Command
|
||||
$this->reportBudgetLimits();
|
||||
$end = round(microtime(true) - $start, 2);
|
||||
$this->info(sprintf('Report on empty objects finished in %s seconds', $end));
|
||||
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@@ -68,7 +68,7 @@ class ReportIntegrity extends Command
|
||||
$result = Artisan::output();
|
||||
echo $result;
|
||||
}
|
||||
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
@@ -53,7 +53,7 @@ class ReportSum extends Command
|
||||
public function handle(): int
|
||||
{
|
||||
$this->reportSum();
|
||||
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@@ -50,7 +50,7 @@ class RestoreOAuthKeys extends Command
|
||||
public function handle(): int
|
||||
{
|
||||
$this->restoreOAuthKeys();
|
||||
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@@ -85,7 +85,7 @@ class ScanAttachments extends Command
|
||||
$attachment->save();
|
||||
$this->line(sprintf('Fixed attachment #%d', $attachment->id));
|
||||
}
|
||||
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SetLatestVersion.php
|
||||
@@ -59,8 +59,7 @@ class SetLatestVersion extends Command
|
||||
app('fireflyconfig')->set('ff3_version', config('firefly.version'));
|
||||
$this->line('Updated version.');
|
||||
|
||||
//Telemetry::string('db_version', config('firefly.db_version'));
|
||||
//Telemetry::string('ff3_version', config('firefly.version'));
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@@ -112,6 +112,7 @@ class ApplyRules extends Command
|
||||
|
||||
$result = $this->verifyInput();
|
||||
if (false === $result) {
|
||||
// app('telemetry')->feature('executed-command-with-error', $this->signature);
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -129,6 +130,8 @@ class ApplyRules extends Command
|
||||
$this->warn(' --rules=1,2,...');
|
||||
$this->warn(' --rule_groups=1,2,...');
|
||||
$this->warn(' --all_rules');
|
||||
// app('telemetry')->feature('executed-command-with-error', $this->signature);
|
||||
return 1;
|
||||
}
|
||||
|
||||
/** @var GroupCollectorInterface $collector */
|
||||
@@ -162,7 +165,7 @@ class ApplyRules extends Command
|
||||
}
|
||||
$this->line('');
|
||||
$this->line('Done!');
|
||||
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@@ -93,7 +93,7 @@ class Cron extends Command
|
||||
}
|
||||
|
||||
$this->info('More feedback on the cron jobs can be found in the log files.');
|
||||
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@@ -86,6 +86,7 @@ class AccountCurrencies extends Command
|
||||
$end = round(microtime(true) - $start, 2);
|
||||
$this->info(sprintf('Verified and fixed account currencies in %s seconds.', $end));
|
||||
$this->markAsExecuted();
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@@ -77,6 +77,7 @@ class BackToJournals extends Command
|
||||
$end = round(microtime(true) - $start, 2);
|
||||
$this->info(sprintf('Updated category and budget info for all transaction journals in %s seconds.', $end));
|
||||
$this->markAsExecuted();
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@@ -91,6 +91,7 @@ class BudgetLimitCurrency extends Command
|
||||
$this->info(sprintf('Verified budget limits in %s seconds.', $end));
|
||||
|
||||
$this->markAsExecuted();
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@@ -90,6 +90,7 @@ class CCLiabilities extends Command
|
||||
$end = round(microtime(true) - $start, 2);
|
||||
$this->info(sprintf('Verified credit card liabilities in %s seconds', $end));
|
||||
$this->markAsExecuted();
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@@ -100,6 +100,7 @@ class MigrateAttachments extends Command
|
||||
$end = round(microtime(true) - $start, 2);
|
||||
$this->info(sprintf('Migrated attachment notes in %s seconds.', $end));
|
||||
$this->markAsExecuted();
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@@ -99,6 +99,7 @@ class MigrateJournalNotes extends Command
|
||||
$end = round(microtime(true) - $start, 2);
|
||||
$this->info(sprintf('Migrated notes in %s seconds.', $end));
|
||||
$this->markAsExecuted();
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@@ -70,6 +70,7 @@ class MigrateRecurrenceMeta extends Command
|
||||
|
||||
$end = round(microtime(true) - $start, 2);
|
||||
$this->info(sprintf('Migrated recurrence meta data in %s seconds.', $end));
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@@ -63,7 +63,7 @@ class MigrateTagLocations extends Command
|
||||
|
||||
$end = round(microtime(true) - $start, 2);
|
||||
$this->info(sprintf('Migrated tag locations in %s seconds.', $end));
|
||||
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@@ -111,7 +111,7 @@ class MigrateToGroups extends Command
|
||||
|
||||
|
||||
$this->markAsMigrated();
|
||||
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@@ -98,7 +98,7 @@ class MigrateToRules extends Command
|
||||
$end = round(microtime(true) - $start, 2);
|
||||
$this->info(sprintf('Verified and fixed bills in %s seconds.', $end));
|
||||
$this->markAsExecuted();
|
||||
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@@ -89,7 +89,7 @@ class OtherCurrenciesCorrections extends Command
|
||||
$this->line(sprintf('Verified %d transaction(s) and journal(s).', $this->count));
|
||||
$end = round(microtime(true) - $start, 2);
|
||||
$this->info(sprintf('Verified and fixed transaction currencies in %s seconds.', $end));
|
||||
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@@ -90,7 +90,7 @@ class RenameAccountMeta extends Command
|
||||
|
||||
$end = round(microtime(true) - $start, 2);
|
||||
$this->info(sprintf('Fixed account meta data in %s seconds.', $end));
|
||||
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@@ -100,7 +100,7 @@ class TransactionIdentifier extends Command
|
||||
$end = round(microtime(true) - $start, 2);
|
||||
$this->info(sprintf('Verified and fixed transaction identifiers in %s seconds.', $end));
|
||||
$this->markAsExecuted();
|
||||
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@@ -110,7 +110,7 @@ class TransferCurrenciesCorrections extends Command
|
||||
}
|
||||
$end = round(microtime(true) - $start, 2);
|
||||
$this->info(sprintf('Verified and fixed currency information for transfers in %s seconds.', $end));
|
||||
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@@ -116,7 +116,7 @@ class UpgradeDatabase extends Command
|
||||
app('fireflyconfig')->set('db_version', (int) config('firefly.db_version'));
|
||||
// index will set FF3 version.
|
||||
app('fireflyconfig')->set('ff3_version', (string) config('firefly.version'));
|
||||
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@@ -56,7 +56,7 @@ class UpgradeFireflyInstructions extends Command
|
||||
if ('install' === (string) $this->argument('task')) {
|
||||
$this->installInstructions();
|
||||
}
|
||||
|
||||
// app('telemetry')->feature('executed-command', $this->signature);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -102,7 +102,6 @@ class UpgradeFireflyInstructions extends Command
|
||||
}
|
||||
}
|
||||
|
||||
// app('telemetry')->string('show-install-instructions', $version);
|
||||
|
||||
$this->showLine();
|
||||
$this->boxed('');
|
||||
@@ -151,8 +150,6 @@ class UpgradeFireflyInstructions extends Command
|
||||
}
|
||||
}
|
||||
|
||||
//app('telemetry')->string('show-update-instructions', $version);
|
||||
|
||||
$this->showLine();
|
||||
$this->boxed('');
|
||||
if (null === $text) {
|
||||
|
Reference in New Issue
Block a user