Skip to content

Firefly III: a personal finances manager

Update some (disabled) commands.

James Cole15e772d9dc97
diff --git a/app/Console/Commands/Correction/CorrectDatabase.php b/app/Console/Commands/Correction/CorrectDatabase.php
index 0c87804883..e4aa86bb32 100644
--- a/app/Console/Commands/Correction/CorrectDatabase.php
+++ b/app/Console/Commands/Correction/CorrectDatabase.php
@@ -83,7 +83,7 @@ class CorrectDatabase extends Command
echo $result;
}
- // app('telemetry')->feature('executed-command', $this->signature);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
diff --git a/app/Console/Commands/Correction/CorrectOpeningBalanceCurrencies.php b/app/Console/Commands/Correction/CorrectOpeningBalanceCurrencies.php
index 063e40e230..bf404548c8 100644
--- a/app/Console/Commands/Correction/CorrectOpeningBalanceCurrencies.php
+++ b/app/Console/Commands/Correction/CorrectOpeningBalanceCurrencies.php
@@ -77,7 +77,7 @@ class CorrectOpeningBalanceCurrencies extends Command
$this->info('There was nothing to fix in the opening balance transactions.');
}
- // app('telemetry')->feature('executed-command', $this->signature);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
diff --git a/app/Console/Commands/Correction/CreateAccessTokens.php b/app/Console/Commands/Correction/CreateAccessTokens.php
index f541e626f3..25f7f56293 100644
--- a/app/Console/Commands/Correction/CreateAccessTokens.php
+++ b/app/Console/Commands/Correction/CreateAccessTokens.php
@@ -78,7 +78,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);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
diff --git a/app/Console/Commands/Correction/CreateLinkTypes.php b/app/Console/Commands/Correction/CreateLinkTypes.php
index 7d93025e2a..f1e9bd6c46 100644
--- a/app/Console/Commands/Correction/CreateLinkTypes.php
+++ b/app/Console/Commands/Correction/CreateLinkTypes.php
@@ -79,7 +79,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);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
diff --git a/app/Console/Commands/Correction/DeleteEmptyGroups.php b/app/Console/Commands/Correction/DeleteEmptyGroups.php
index 083266a65e..9f3f2b8caf 100644
--- a/app/Console/Commands/Correction/DeleteEmptyGroups.php
+++ b/app/Console/Commands/Correction/DeleteEmptyGroups.php
@@ -76,7 +76,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);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
diff --git a/app/Console/Commands/Correction/DeleteEmptyJournals.php b/app/Console/Commands/Correction/DeleteEmptyJournals.php
index 07c23d75c2..e62c30c1bd 100644
--- a/app/Console/Commands/Correction/DeleteEmptyJournals.php
+++ b/app/Console/Commands/Correction/DeleteEmptyJournals.php
@@ -58,7 +58,7 @@ class DeleteEmptyJournals extends Command
$this->deleteUnevenJournals();
$this->deleteEmptyJournals();
- // app('telemetry')->feature('executed-command', $this->signature);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
diff --git a/app/Console/Commands/Correction/DeleteOrphanedTransactions.php b/app/Console/Commands/Correction/DeleteOrphanedTransactions.php
index f35b35590f..c280f1a8c4 100644
--- a/app/Console/Commands/Correction/DeleteOrphanedTransactions.php
+++ b/app/Console/Commands/Correction/DeleteOrphanedTransactions.php
@@ -62,7 +62,7 @@ class DeleteOrphanedTransactions extends Command
$end = round(microtime(true) - $start, 2);
$this->info(sprintf('Verified orphans in %s seconds', $end));
- // app('telemetry')->feature('executed-command', $this->signature);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
diff --git a/app/Console/Commands/Correction/DeleteZeroAmount.php b/app/Console/Commands/Correction/DeleteZeroAmount.php
index 2e860610b9..cc546d3b3a 100644
--- a/app/Console/Commands/Correction/DeleteZeroAmount.php
+++ b/app/Console/Commands/Correction/DeleteZeroAmount.php
@@ -78,7 +78,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);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
diff --git a/app/Console/Commands/Correction/EnableCurrencies.php b/app/Console/Commands/Correction/EnableCurrencies.php
index 4b85bc8cb9..eefddcea9a 100644
--- a/app/Console/Commands/Correction/EnableCurrencies.php
+++ b/app/Console/Commands/Correction/EnableCurrencies.php
@@ -101,7 +101,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);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
diff --git a/app/Console/Commands/Correction/FixAccountTypes.php b/app/Console/Commands/Correction/FixAccountTypes.php
index 7f6dc372cf..2ed826ecb0 100644
--- a/app/Console/Commands/Correction/FixAccountTypes.php
+++ b/app/Console/Commands/Correction/FixAccountTypes.php
@@ -106,7 +106,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);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
diff --git a/app/Console/Commands/Correction/FixLongDescriptions.php b/app/Console/Commands/Correction/FixLongDescriptions.php
index ccc5fae5e4..58a40fb87f 100644
--- a/app/Console/Commands/Correction/FixLongDescriptions.php
+++ b/app/Console/Commands/Correction/FixLongDescriptions.php
@@ -75,7 +75,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);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
}
diff --git a/app/Console/Commands/Correction/FixPiggies.php b/app/Console/Commands/Correction/FixPiggies.php
index faf61a361a..c8f31a441d 100644
--- a/app/Console/Commands/Correction/FixPiggies.php
+++ b/app/Console/Commands/Correction/FixPiggies.php
@@ -98,7 +98,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);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
}
diff --git a/app/Console/Commands/Correction/FixRecurringTransactions.php b/app/Console/Commands/Correction/FixRecurringTransactions.php
index 6c83c63e45..1fad2d232f 100644
--- a/app/Console/Commands/Correction/FixRecurringTransactions.php
+++ b/app/Console/Commands/Correction/FixRecurringTransactions.php
@@ -67,7 +67,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);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
diff --git a/app/Console/Commands/Correction/FixUnevenAmount.php b/app/Console/Commands/Correction/FixUnevenAmount.php
index a8e29d540f..3361ff1789 100644
--- a/app/Console/Commands/Correction/FixUnevenAmount.php
+++ b/app/Console/Commands/Correction/FixUnevenAmount.php
@@ -75,7 +75,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);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
diff --git a/app/Console/Commands/Correction/RemoveBills.php b/app/Console/Commands/Correction/RemoveBills.php
index 862d4bd851..ad288248d6 100644
--- a/app/Console/Commands/Correction/RemoveBills.php
+++ b/app/Console/Commands/Correction/RemoveBills.php
@@ -71,7 +71,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);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
}
diff --git a/app/Console/Commands/Correction/RenameMetaFields.php b/app/Console/Commands/Correction/RenameMetaFields.php
index 7a32c509d0..1c4a941fb1 100644
--- a/app/Console/Commands/Correction/RenameMetaFields.php
+++ b/app/Console/Commands/Correction/RenameMetaFields.php
@@ -83,7 +83,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);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
diff --git a/app/Console/Commands/Correction/TransferBudgets.php b/app/Console/Commands/Correction/TransferBudgets.php
index 1f622aac9b..1199a15d9f 100644
--- a/app/Console/Commands/Correction/TransferBudgets.php
+++ b/app/Console/Commands/Correction/TransferBudgets.php
@@ -74,7 +74,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);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
}
diff --git a/app/Console/Commands/DecryptDatabase.php b/app/Console/Commands/DecryptDatabase.php
index d0f06bdf5e..85639c8ae4 100644
--- a/app/Console/Commands/DecryptDatabase.php
+++ b/app/Console/Commands/DecryptDatabase.php
@@ -123,7 +123,7 @@ class DecryptDatabase extends Command
}
$this->info('Done!');
- // app('telemetry')->feature('executed-command', $this->signature);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
diff --git a/app/Console/Commands/Export/ExportData.php b/app/Console/Commands/Export/ExportData.php
index 7a18f5ca7e..41ba516741 100644
--- a/app/Console/Commands/Export/ExportData.php
+++ b/app/Console/Commands/Export/ExportData.php
@@ -141,7 +141,7 @@ class ExportData extends Command
return 1;
}
- // app('telemetry')->feature('executed-command', $this->signature);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
diff --git a/app/Console/Commands/Import/CreateCSVImport.php b/app/Console/Commands/Import/CreateCSVImport.php
index 537d8bdc96..b4e5a4cd20 100644
--- a/app/Console/Commands/Import/CreateCSVImport.php
+++ b/app/Console/Commands/Import/CreateCSVImport.php
@@ -148,7 +148,7 @@ class CreateCSVImport extends Command
// clear cache for user:
app('preferences')->setForUser($user, 'lastActivity', microtime());
- // app('telemetry')->feature('executed-command', $this->signature);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
diff --git a/app/Console/Commands/Integrity/ReportEmptyObjects.php b/app/Console/Commands/Integrity/ReportEmptyObjects.php
index 2607a5ef8c..4be37459dd 100644
--- a/app/Console/Commands/Integrity/ReportEmptyObjects.php
+++ b/app/Console/Commands/Integrity/ReportEmptyObjects.php
@@ -64,7 +64,7 @@ class ReportEmptyObjects extends Command
$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);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
diff --git a/app/Console/Commands/Integrity/ReportIntegrity.php b/app/Console/Commands/Integrity/ReportIntegrity.php
index 5a5db4356e..9060d95f4b 100644
--- a/app/Console/Commands/Integrity/ReportIntegrity.php
+++ b/app/Console/Commands/Integrity/ReportIntegrity.php
@@ -69,7 +69,7 @@ class ReportIntegrity extends Command
echo $result;
}
- // app('telemetry')->feature('executed-command', $this->signature);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
}
diff --git a/app/Console/Commands/Integrity/ReportSum.php b/app/Console/Commands/Integrity/ReportSum.php
index 6485bddddd..f9182a0c23 100644
--- a/app/Console/Commands/Integrity/ReportSum.php
+++ b/app/Console/Commands/Integrity/ReportSum.php
@@ -54,7 +54,7 @@ class ReportSum extends Command
{
$this->reportSum();
- // app('telemetry')->feature('executed-command', $this->signature);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
diff --git a/app/Console/Commands/Integrity/RestoreOAuthKeys.php b/app/Console/Commands/Integrity/RestoreOAuthKeys.php
index 2c90bd9932..30e3e259ff 100644
--- a/app/Console/Commands/Integrity/RestoreOAuthKeys.php
+++ b/app/Console/Commands/Integrity/RestoreOAuthKeys.php
@@ -53,7 +53,7 @@ class RestoreOAuthKeys extends Command
{
$this->restoreOAuthKeys();
- // app('telemetry')->feature('executed-command', $this->signature);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
diff --git a/app/Console/Commands/ScanAttachments.php b/app/Console/Commands/ScanAttachments.php
index 9a2c4a4655..973671434e 100644
--- a/app/Console/Commands/ScanAttachments.php
+++ b/app/Console/Commands/ScanAttachments.php
@@ -86,7 +86,7 @@ class ScanAttachments extends Command
$this->line(sprintf('Fixed attachment #%d', $attachment->id));
}
- // app('telemetry')->feature('executed-command', $this->signature);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
}
diff --git a/app/Console/Commands/SetLatestVersion.php b/app/Console/Commands/SetLatestVersion.php
index 893b911941..7f9fbb84f4 100644
--- a/app/Console/Commands/SetLatestVersion.php
+++ b/app/Console/Commands/SetLatestVersion.php
@@ -59,7 +59,7 @@ class SetLatestVersion extends Command
app('fireflyconfig')->set('ff3_version', config('firefly.version'));
$this->line('Updated version.');
- // app('telemetry')->feature('executed-command', $this->signature);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
diff --git a/app/Console/Commands/Tools/ApplyRules.php b/app/Console/Commands/Tools/ApplyRules.php
index 9973a9a8dc..dccb7e1ee3 100644
--- a/app/Console/Commands/Tools/ApplyRules.php
+++ b/app/Console/Commands/Tools/ApplyRules.php
@@ -167,7 +167,7 @@ class ApplyRules extends Command
$this->line('');
$this->line('Done!');
- // app('telemetry')->feature('executed-command', $this->signature);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
diff --git a/app/Console/Commands/Tools/Cron.php b/app/Console/Commands/Tools/Cron.php
index 328b473b07..11c92eb1ef 100644
--- a/app/Console/Commands/Tools/Cron.php
+++ b/app/Console/Commands/Tools/Cron.php
@@ -106,7 +106,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);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
diff --git a/app/Console/Commands/Upgrade/AccountCurrencies.php b/app/Console/Commands/Upgrade/AccountCurrencies.php
index 018a219ebc..f12d9e57e2 100644
--- a/app/Console/Commands/Upgrade/AccountCurrencies.php
+++ b/app/Console/Commands/Upgrade/AccountCurrencies.php
@@ -87,7 +87,7 @@ class AccountCurrencies extends Command
$this->info(sprintf('Verified and fixed account currencies in %s seconds.', $end));
$this->markAsExecuted();
- // app('telemetry')->feature('executed-command', $this->signature);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
diff --git a/app/Console/Commands/Upgrade/BackToJournals.php b/app/Console/Commands/Upgrade/BackToJournals.php
index 283f0e0903..5e859faaa2 100644
--- a/app/Console/Commands/Upgrade/BackToJournals.php
+++ b/app/Console/Commands/Upgrade/BackToJournals.php
@@ -78,7 +78,7 @@ class BackToJournals extends Command
$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);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
diff --git a/app/Console/Commands/Upgrade/BudgetLimitCurrency.php b/app/Console/Commands/Upgrade/BudgetLimitCurrency.php
index 32e5955043..a33ebb31ea 100644
--- a/app/Console/Commands/Upgrade/BudgetLimitCurrency.php
+++ b/app/Console/Commands/Upgrade/BudgetLimitCurrency.php
@@ -92,7 +92,7 @@ class BudgetLimitCurrency extends Command
$this->markAsExecuted();
- // app('telemetry')->feature('executed-command', $this->signature);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
diff --git a/app/Console/Commands/Upgrade/CCLiabilities.php b/app/Console/Commands/Upgrade/CCLiabilities.php
index 0d411bf360..897653851e 100644
--- a/app/Console/Commands/Upgrade/CCLiabilities.php
+++ b/app/Console/Commands/Upgrade/CCLiabilities.php
@@ -91,7 +91,7 @@ class CCLiabilities extends Command
$this->info(sprintf('Verified credit card liabilities in %s seconds', $end));
$this->markAsExecuted();
- // app('telemetry')->feature('executed-command', $this->signature);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
diff --git a/app/Console/Commands/Upgrade/MigrateAttachments.php b/app/Console/Commands/Upgrade/MigrateAttachments.php
index 595e78aa55..bff79093e6 100644
--- a/app/Console/Commands/Upgrade/MigrateAttachments.php
+++ b/app/Console/Commands/Upgrade/MigrateAttachments.php
@@ -101,7 +101,7 @@ class MigrateAttachments extends Command
$this->info(sprintf('Migrated attachment notes in %s seconds.', $end));
$this->markAsExecuted();
- // app('telemetry')->feature('executed-command', $this->signature);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
diff --git a/app/Console/Commands/Upgrade/MigrateJournalNotes.php b/app/Console/Commands/Upgrade/MigrateJournalNotes.php
index 1a19560810..19346dc305 100644
--- a/app/Console/Commands/Upgrade/MigrateJournalNotes.php
+++ b/app/Console/Commands/Upgrade/MigrateJournalNotes.php
@@ -100,7 +100,7 @@ class MigrateJournalNotes extends Command
$this->info(sprintf('Migrated notes in %s seconds.', $end));
$this->markAsExecuted();
- // app('telemetry')->feature('executed-command', $this->signature);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
diff --git a/app/Console/Commands/Upgrade/MigrateRecurrenceMeta.php b/app/Console/Commands/Upgrade/MigrateRecurrenceMeta.php
index 5bccd92bec..677cb26774 100644
--- a/app/Console/Commands/Upgrade/MigrateRecurrenceMeta.php
+++ b/app/Console/Commands/Upgrade/MigrateRecurrenceMeta.php
@@ -72,7 +72,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);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
diff --git a/app/Console/Commands/Upgrade/MigrateTagLocations.php b/app/Console/Commands/Upgrade/MigrateTagLocations.php
index bbada0a41d..217d519f3a 100644
--- a/app/Console/Commands/Upgrade/MigrateTagLocations.php
+++ b/app/Console/Commands/Upgrade/MigrateTagLocations.php
@@ -65,7 +65,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);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
diff --git a/app/Console/Commands/Upgrade/MigrateToGroups.php b/app/Console/Commands/Upgrade/MigrateToGroups.php
index 7b85398825..b6a0e1522d 100644
--- a/app/Console/Commands/Upgrade/MigrateToGroups.php
+++ b/app/Console/Commands/Upgrade/MigrateToGroups.php
@@ -112,7 +112,7 @@ class MigrateToGroups extends Command
$this->markAsMigrated();
- // app('telemetry')->feature('executed-command', $this->signature);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
diff --git a/app/Console/Commands/Upgrade/MigrateToRules.php b/app/Console/Commands/Upgrade/MigrateToRules.php
index a29188433c..ca39719aec 100644
--- a/app/Console/Commands/Upgrade/MigrateToRules.php
+++ b/app/Console/Commands/Upgrade/MigrateToRules.php
@@ -99,7 +99,7 @@ class MigrateToRules extends Command
$this->info(sprintf('Verified and fixed bills in %s seconds.', $end));
$this->markAsExecuted();
- // app('telemetry')->feature('executed-command', $this->signature);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
diff --git a/app/Console/Commands/Upgrade/OtherCurrenciesCorrections.php b/app/Console/Commands/Upgrade/OtherCurrenciesCorrections.php
index 5c1f5d8187..7d0c144221 100644
--- a/app/Console/Commands/Upgrade/OtherCurrenciesCorrections.php
+++ b/app/Console/Commands/Upgrade/OtherCurrenciesCorrections.php
@@ -90,7 +90,7 @@ class OtherCurrenciesCorrections extends Command
$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);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
diff --git a/app/Console/Commands/Upgrade/RenameAccountMeta.php b/app/Console/Commands/Upgrade/RenameAccountMeta.php
index 355e403c41..129bf9372c 100644
--- a/app/Console/Commands/Upgrade/RenameAccountMeta.php
+++ b/app/Console/Commands/Upgrade/RenameAccountMeta.php
@@ -91,7 +91,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);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
diff --git a/app/Console/Commands/Upgrade/TransactionIdentifier.php b/app/Console/Commands/Upgrade/TransactionIdentifier.php
index c8f79c4b6c..bfb0de2ef2 100644
--- a/app/Console/Commands/Upgrade/TransactionIdentifier.php
+++ b/app/Console/Commands/Upgrade/TransactionIdentifier.php
@@ -101,7 +101,7 @@ class TransactionIdentifier extends Command
$this->info(sprintf('Verified and fixed transaction identifiers in %s seconds.', $end));
$this->markAsExecuted();
- // app('telemetry')->feature('executed-command', $this->signature);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
diff --git a/app/Console/Commands/Upgrade/TransferCurrenciesCorrections.php b/app/Console/Commands/Upgrade/TransferCurrenciesCorrections.php
index 64ccbeb9d7..bf316c7545 100644
--- a/app/Console/Commands/Upgrade/TransferCurrenciesCorrections.php
+++ b/app/Console/Commands/Upgrade/TransferCurrenciesCorrections.php
@@ -111,7 +111,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);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
diff --git a/app/Console/Commands/Upgrade/UpgradeDatabase.php b/app/Console/Commands/Upgrade/UpgradeDatabase.php
index 28dd57256b..5d961a2b3f 100644
--- a/app/Console/Commands/Upgrade/UpgradeDatabase.php
+++ b/app/Console/Commands/Upgrade/UpgradeDatabase.php
@@ -117,7 +117,7 @@ class UpgradeDatabase extends Command
// index will set FF3 version.
app('fireflyconfig')->set('ff3_version', (string) config('firefly.version'));
- // app('telemetry')->feature('executed-command', $this->signature);
+ // app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
diff --git a/app/Console/Commands/UpgradeFireflyInstructions.php b/app/Console/Commands/UpgradeFireflyInstructions.php
index a7ded8703e..6fe9f93148 100644
--- a/app/Console/Commands/UpgradeFireflyInstructions.php
+++ b/app/Console/Commands/UpgradeFireflyInstructions.php
@@ -57,7 +57,10 @@ class UpgradeFireflyInstructions extends Command
$this->installInstructions();
}
- // app('telemetry')->feature('executed-command', $this->signature);
+ // collect system telemetry
+// app('telemetry')->feature('system.php.version', PHP_VERSION);
+// app('telemetry')->feature('system.os.version', PHP_OS);
+// app('telemetry')->feature('system.command.executed', $this->signature);
return 0;
}
diff --git a/app/Http/Controllers/Auth/RegisterController.php b/app/Http/Controllers/Auth/RegisterController.php
index f6671ee5a2..a471c65156 100644
--- a/app/Http/Controllers/Auth/RegisterController.php
+++ b/app/Http/Controllers/Auth/RegisterController.php
@@ -104,6 +104,9 @@ class RegisterController extends Controller
$this->registered($request, $user);
+ // telemetry
+ \Telemetry::feature('system.users.count', User::count());
+
return redirect($this->redirectPath());
}
diff --git a/app/Http/Controllers/NewUserController.php b/app/Http/Controllers/NewUserController.php
index 579cb1d5ee..4d41d2abb3 100644
--- a/app/Http/Controllers/NewUserController.php
+++ b/app/Http/Controllers/NewUserController.php
@@ -124,6 +124,11 @@ class NewUserController extends Controller
'invoice_date' => false, 'internal_reference' => false, 'notes' => true, 'attachments' => true,];
app('preferences')->set('transaction_journal_optional_fields', $visibleFields);
+ // telemetry: user language preference + default language.
+ //app('telemetry')->feature('config.firefly.default_language', config('firefly.default_language', 'en_US'));
+ //app('telemetry')->feature('user.preferences.language', app('steam')->getLanguage());
+ //app('telemetry')->feature('user.preferences.locale', app('steam')->getLocale());
+
session()->flash('success', (string) trans('firefly.stored_new_accounts_new_user'));
app('preferences')->mark();
diff --git a/app/Http/Controllers/PreferencesController.php b/app/Http/Controllers/PreferencesController.php
index 04cecdac1e..391c06c6e7 100644
--- a/app/Http/Controllers/PreferencesController.php
+++ b/app/Http/Controllers/PreferencesController.php
@@ -210,6 +210,11 @@ class PreferencesController extends Controller
session()->flash('success', (string) trans('firefly.saved_preferences'));
app('preferences')->mark();
+ // telemetry: user language preference + default language.
+ //app('telemetry')->feature('config.firefly.default_language', config('firefly.default_language', 'en_US'));
+ //app('telemetry')->feature('user.preferences.language', app('steam')->getLanguage());
+ //app('telemetry')->feature('user.preferences.locale', app('steam')->getLocale());
+
return redirect(route('preferences.index'));
}
}