mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-25 14:58:40 +00:00
Update some (disabled) commands.
This commit is contained in:
@@ -83,7 +83,7 @@ class CorrectDatabase extends Command
|
|||||||
echo $result;
|
echo $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
// app('telemetry')->feature('executed-command', $this->signature);
|
// app('telemetry')->feature('system.command.executed', $this->signature);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -77,7 +77,7 @@ class CorrectOpeningBalanceCurrencies extends Command
|
|||||||
$this->info('There was nothing to fix in the opening balance transactions.');
|
$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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -78,7 +78,7 @@ class CreateAccessTokens extends Command
|
|||||||
$end = round(microtime(true) - $start, 2);
|
$end = round(microtime(true) - $start, 2);
|
||||||
$this->info(sprintf('Verify access tokens in %s seconds.', $end));
|
$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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -79,7 +79,7 @@ class CreateLinkTypes extends Command
|
|||||||
$end = round(microtime(true) - $start, 2);
|
$end = round(microtime(true) - $start, 2);
|
||||||
$this->info(sprintf('Verified link types in %s seconds', $end));
|
$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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -76,7 +76,7 @@ class DeleteEmptyGroups extends Command
|
|||||||
$end = round(microtime(true) - $start, 2);
|
$end = round(microtime(true) - $start, 2);
|
||||||
$this->info(sprintf('Verified empty groups in %s seconds', $end));
|
$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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -58,7 +58,7 @@ class DeleteEmptyJournals extends Command
|
|||||||
$this->deleteUnevenJournals();
|
$this->deleteUnevenJournals();
|
||||||
$this->deleteEmptyJournals();
|
$this->deleteEmptyJournals();
|
||||||
|
|
||||||
// app('telemetry')->feature('executed-command', $this->signature);
|
// app('telemetry')->feature('system.command.executed', $this->signature);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -62,7 +62,7 @@ class DeleteOrphanedTransactions extends Command
|
|||||||
$end = round(microtime(true) - $start, 2);
|
$end = round(microtime(true) - $start, 2);
|
||||||
$this->info(sprintf('Verified orphans in %s seconds', $end));
|
$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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -78,7 +78,7 @@ class DeleteZeroAmount extends Command
|
|||||||
$end = round(microtime(true) - $start, 2);
|
$end = round(microtime(true) - $start, 2);
|
||||||
$this->info(sprintf('Verified zero-amount integrity in %s seconds', $end));
|
$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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -101,7 +101,7 @@ class EnableCurrencies extends Command
|
|||||||
$end = round(microtime(true) - $start, 2);
|
$end = round(microtime(true) - $start, 2);
|
||||||
$this->info(sprintf('Verified currencies in %s seconds.', $end));
|
$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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -106,7 +106,7 @@ class FixAccountTypes extends Command
|
|||||||
$end = round(microtime(true) - $start, 2);
|
$end = round(microtime(true) - $start, 2);
|
||||||
$this->info(sprintf('Verifying account types took %s seconds', $end));
|
$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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -75,7 +75,7 @@ class FixLongDescriptions extends Command
|
|||||||
$end = round(microtime(true) - $start, 2);
|
$end = round(microtime(true) - $start, 2);
|
||||||
$this->info(sprintf('Verified all transaction group and journal title lengths in %s seconds.', $end));
|
$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;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -98,7 +98,7 @@ class FixPiggies extends Command
|
|||||||
$end = round(microtime(true) - $start, 2);
|
$end = round(microtime(true) - $start, 2);
|
||||||
$this->line(sprintf('Verified the content of %d piggy bank events in %s seconds.', $set->count(), $end));
|
$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;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -67,7 +67,7 @@ class FixRecurringTransactions extends Command
|
|||||||
$end = round(microtime(true) - $start, 2);
|
$end = round(microtime(true) - $start, 2);
|
||||||
$this->info(sprintf('Corrected recurring transactions %s seconds.', $end));
|
$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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -75,7 +75,7 @@ class FixUnevenAmount extends Command
|
|||||||
$end = round(microtime(true) - $start, 2);
|
$end = round(microtime(true) - $start, 2);
|
||||||
$this->info(sprintf('Verified amount integrity in %s seconds', $end));
|
$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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -71,7 +71,7 @@ class RemoveBills extends Command
|
|||||||
$end = round(microtime(true) - $start, 2);
|
$end = round(microtime(true) - $start, 2);
|
||||||
$this->info(sprintf('Verified bills / journals in %s seconds', $end));
|
$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;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -83,7 +83,7 @@ class RenameMetaFields extends Command
|
|||||||
$end = round(microtime(true) - $start, 2);
|
$end = round(microtime(true) - $start, 2);
|
||||||
$this->info(sprintf('Renamed meta fields in %s seconds', $end));
|
$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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -74,7 +74,7 @@ class TransferBudgets extends Command
|
|||||||
$end = round(microtime(true) - $start, 2);
|
$end = round(microtime(true) - $start, 2);
|
||||||
$this->info(sprintf('Verified budget/journals in %s seconds.', $end));
|
$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;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -123,7 +123,7 @@ class DecryptDatabase extends Command
|
|||||||
}
|
}
|
||||||
$this->info('Done!');
|
$this->info('Done!');
|
||||||
|
|
||||||
// app('telemetry')->feature('executed-command', $this->signature);
|
// app('telemetry')->feature('system.command.executed', $this->signature);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -141,7 +141,7 @@ class ExportData extends Command
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// app('telemetry')->feature('executed-command', $this->signature);
|
// app('telemetry')->feature('system.command.executed', $this->signature);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -148,7 +148,7 @@ class CreateCSVImport extends Command
|
|||||||
// clear cache for user:
|
// clear cache for user:
|
||||||
app('preferences')->setForUser($user, 'lastActivity', microtime());
|
app('preferences')->setForUser($user, 'lastActivity', microtime());
|
||||||
|
|
||||||
// app('telemetry')->feature('executed-command', $this->signature);
|
// app('telemetry')->feature('system.command.executed', $this->signature);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -64,7 +64,7 @@ class ReportEmptyObjects extends Command
|
|||||||
$end = round(microtime(true) - $start, 2);
|
$end = round(microtime(true) - $start, 2);
|
||||||
$this->info(sprintf('Report on empty objects finished in %s seconds', $end));
|
$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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -69,7 +69,7 @@ class ReportIntegrity extends Command
|
|||||||
echo $result;
|
echo $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
// app('telemetry')->feature('executed-command', $this->signature);
|
// app('telemetry')->feature('system.command.executed', $this->signature);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -54,7 +54,7 @@ class ReportSum extends Command
|
|||||||
{
|
{
|
||||||
$this->reportSum();
|
$this->reportSum();
|
||||||
|
|
||||||
// app('telemetry')->feature('executed-command', $this->signature);
|
// app('telemetry')->feature('system.command.executed', $this->signature);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -53,7 +53,7 @@ class RestoreOAuthKeys extends Command
|
|||||||
{
|
{
|
||||||
$this->restoreOAuthKeys();
|
$this->restoreOAuthKeys();
|
||||||
|
|
||||||
// app('telemetry')->feature('executed-command', $this->signature);
|
// app('telemetry')->feature('system.command.executed', $this->signature);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -86,7 +86,7 @@ class ScanAttachments extends Command
|
|||||||
$this->line(sprintf('Fixed attachment #%d', $attachment->id));
|
$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;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -59,7 +59,7 @@ class SetLatestVersion extends Command
|
|||||||
app('fireflyconfig')->set('ff3_version', config('firefly.version'));
|
app('fireflyconfig')->set('ff3_version', config('firefly.version'));
|
||||||
$this->line('Updated version.');
|
$this->line('Updated version.');
|
||||||
|
|
||||||
// app('telemetry')->feature('executed-command', $this->signature);
|
// app('telemetry')->feature('system.command.executed', $this->signature);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -167,7 +167,7 @@ class ApplyRules extends Command
|
|||||||
$this->line('');
|
$this->line('');
|
||||||
$this->line('Done!');
|
$this->line('Done!');
|
||||||
|
|
||||||
// app('telemetry')->feature('executed-command', $this->signature);
|
// app('telemetry')->feature('system.command.executed', $this->signature);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -106,7 +106,7 @@ class Cron extends Command
|
|||||||
|
|
||||||
$this->info('More feedback on the cron jobs can be found in the log files.');
|
$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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -87,7 +87,7 @@ class AccountCurrencies extends Command
|
|||||||
$this->info(sprintf('Verified and fixed account currencies in %s seconds.', $end));
|
$this->info(sprintf('Verified and fixed account currencies in %s seconds.', $end));
|
||||||
$this->markAsExecuted();
|
$this->markAsExecuted();
|
||||||
|
|
||||||
// app('telemetry')->feature('executed-command', $this->signature);
|
// app('telemetry')->feature('system.command.executed', $this->signature);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -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->info(sprintf('Updated category and budget info for all transaction journals in %s seconds.', $end));
|
||||||
$this->markAsExecuted();
|
$this->markAsExecuted();
|
||||||
|
|
||||||
// app('telemetry')->feature('executed-command', $this->signature);
|
// app('telemetry')->feature('system.command.executed', $this->signature);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -92,7 +92,7 @@ class BudgetLimitCurrency extends Command
|
|||||||
|
|
||||||
$this->markAsExecuted();
|
$this->markAsExecuted();
|
||||||
|
|
||||||
// app('telemetry')->feature('executed-command', $this->signature);
|
// app('telemetry')->feature('system.command.executed', $this->signature);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -91,7 +91,7 @@ class CCLiabilities extends Command
|
|||||||
$this->info(sprintf('Verified credit card liabilities in %s seconds', $end));
|
$this->info(sprintf('Verified credit card liabilities in %s seconds', $end));
|
||||||
$this->markAsExecuted();
|
$this->markAsExecuted();
|
||||||
|
|
||||||
// app('telemetry')->feature('executed-command', $this->signature);
|
// app('telemetry')->feature('system.command.executed', $this->signature);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -101,7 +101,7 @@ class MigrateAttachments extends Command
|
|||||||
$this->info(sprintf('Migrated attachment notes in %s seconds.', $end));
|
$this->info(sprintf('Migrated attachment notes in %s seconds.', $end));
|
||||||
$this->markAsExecuted();
|
$this->markAsExecuted();
|
||||||
|
|
||||||
// app('telemetry')->feature('executed-command', $this->signature);
|
// app('telemetry')->feature('system.command.executed', $this->signature);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -100,7 +100,7 @@ class MigrateJournalNotes extends Command
|
|||||||
$this->info(sprintf('Migrated notes in %s seconds.', $end));
|
$this->info(sprintf('Migrated notes in %s seconds.', $end));
|
||||||
$this->markAsExecuted();
|
$this->markAsExecuted();
|
||||||
|
|
||||||
// app('telemetry')->feature('executed-command', $this->signature);
|
// app('telemetry')->feature('system.command.executed', $this->signature);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -72,7 +72,7 @@ class MigrateRecurrenceMeta extends Command
|
|||||||
$end = round(microtime(true) - $start, 2);
|
$end = round(microtime(true) - $start, 2);
|
||||||
$this->info(sprintf('Migrated recurrence meta data in %s seconds.', $end));
|
$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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -65,7 +65,7 @@ class MigrateTagLocations extends Command
|
|||||||
$end = round(microtime(true) - $start, 2);
|
$end = round(microtime(true) - $start, 2);
|
||||||
$this->info(sprintf('Migrated tag locations in %s seconds.', $end));
|
$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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -112,7 +112,7 @@ class MigrateToGroups extends Command
|
|||||||
|
|
||||||
$this->markAsMigrated();
|
$this->markAsMigrated();
|
||||||
|
|
||||||
// app('telemetry')->feature('executed-command', $this->signature);
|
// app('telemetry')->feature('system.command.executed', $this->signature);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -99,7 +99,7 @@ class MigrateToRules extends Command
|
|||||||
$this->info(sprintf('Verified and fixed bills in %s seconds.', $end));
|
$this->info(sprintf('Verified and fixed bills in %s seconds.', $end));
|
||||||
$this->markAsExecuted();
|
$this->markAsExecuted();
|
||||||
|
|
||||||
// app('telemetry')->feature('executed-command', $this->signature);
|
// app('telemetry')->feature('system.command.executed', $this->signature);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -90,7 +90,7 @@ class OtherCurrenciesCorrections extends Command
|
|||||||
$end = round(microtime(true) - $start, 2);
|
$end = round(microtime(true) - $start, 2);
|
||||||
$this->info(sprintf('Verified and fixed transaction currencies in %s seconds.', $end));
|
$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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -91,7 +91,7 @@ class RenameAccountMeta extends Command
|
|||||||
$end = round(microtime(true) - $start, 2);
|
$end = round(microtime(true) - $start, 2);
|
||||||
$this->info(sprintf('Fixed account meta data in %s seconds.', $end));
|
$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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -101,7 +101,7 @@ class TransactionIdentifier extends Command
|
|||||||
$this->info(sprintf('Verified and fixed transaction identifiers in %s seconds.', $end));
|
$this->info(sprintf('Verified and fixed transaction identifiers in %s seconds.', $end));
|
||||||
$this->markAsExecuted();
|
$this->markAsExecuted();
|
||||||
|
|
||||||
// app('telemetry')->feature('executed-command', $this->signature);
|
// app('telemetry')->feature('system.command.executed', $this->signature);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -111,7 +111,7 @@ class TransferCurrenciesCorrections extends Command
|
|||||||
$end = round(microtime(true) - $start, 2);
|
$end = round(microtime(true) - $start, 2);
|
||||||
$this->info(sprintf('Verified and fixed currency information for transfers in %s seconds.', $end));
|
$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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -117,7 +117,7 @@ class UpgradeDatabase extends Command
|
|||||||
// index will set FF3 version.
|
// index will set FF3 version.
|
||||||
app('fireflyconfig')->set('ff3_version', (string) config('firefly.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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -57,7 +57,10 @@ class UpgradeFireflyInstructions extends Command
|
|||||||
$this->installInstructions();
|
$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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -104,6 +104,9 @@ class RegisterController extends Controller
|
|||||||
|
|
||||||
$this->registered($request, $user);
|
$this->registered($request, $user);
|
||||||
|
|
||||||
|
// telemetry
|
||||||
|
\Telemetry::feature('system.users.count', User::count());
|
||||||
|
|
||||||
return redirect($this->redirectPath());
|
return redirect($this->redirectPath());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -124,6 +124,11 @@ class NewUserController extends Controller
|
|||||||
'invoice_date' => false, 'internal_reference' => false, 'notes' => true, 'attachments' => true,];
|
'invoice_date' => false, 'internal_reference' => false, 'notes' => true, 'attachments' => true,];
|
||||||
app('preferences')->set('transaction_journal_optional_fields', $visibleFields);
|
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'));
|
session()->flash('success', (string) trans('firefly.stored_new_accounts_new_user'));
|
||||||
app('preferences')->mark();
|
app('preferences')->mark();
|
||||||
|
|
||||||
|
@@ -210,6 +210,11 @@ class PreferencesController extends Controller
|
|||||||
session()->flash('success', (string) trans('firefly.saved_preferences'));
|
session()->flash('success', (string) trans('firefly.saved_preferences'));
|
||||||
app('preferences')->mark();
|
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'));
|
return redirect(route('preferences.index'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user