-
Notifications
You must be signed in to change notification settings - Fork 817
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
Bugfix/account deployment via cmd fix initial setup #5320
base: master
Are you sure you want to change the base?
Bugfix/account deployment via cmd fix initial setup #5320
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #5320 +/- ##
==========================================
- Coverage 57.98% 57.97% -0.01%
==========================================
Files 141 141
Lines 18113 18116 +3
==========================================
Hits 10503 10503
- Misses 7610 7613 +3
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a single minor comment
22fad82
to
0305762
Compare
AppImage file: nextcloud-PR-5320-030576215904fca1bb91cef52de9c54bdb1c813c-x86_64.AppImage |
Signed-off-by: alex-z <[email protected]>
…setup command-line. Signed-off-by: alex-z <[email protected]>
Signed-off-by: alex-z <[email protected]>
…nd-line. Signed-off-by: alex-z <[email protected]>
…t setup. Signed-off-by: alex-z <[email protected]>
Signed-off-by: alex-z <[email protected]>
Signed-off-by: alex-z <[email protected]>
Signed-off-by: alex-z <[email protected]>
…s are passed. Signed-off-by: alex-z <[email protected]>
0305762
to
ac1abb2
Compare
SonarCloud Quality Gate failed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly nitpicks
|
||
/// Sets account id if not set (call only before adding it to the AccountManager) | ||
void setIdForAccount(OCC::Account *a); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
void setIdForAccount(OCC::Account *a); | |
void setIdForAccount(OCC::Account *account); |
|
||
const auto userIdParsed = QStringLiteral("%1@%2").arg(userIdSplit.first()).arg(_serverUrl.host()); | ||
|
||
if (AccountManager::instance()->accountFromUserId(QStringLiteral("%1@%2").arg(_userId).arg(_serverUrl.host())) || AccountManager::instance()->accountFromUserId(userIdParsed)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: a little more readable (and safe, not that it's likely to matter)
if (AccountManager::instance()->accountFromUserId(QStringLiteral("%1@%2").arg(_userId).arg(_serverUrl.host())) || AccountManager::instance()->accountFromUserId(userIdParsed)) { | |
if (const auto accManager = AccountManager::instance(); | |
accManager->accountFromUserId(QStringLiteral("%1@%2").arg(_userId).arg(_serverUrl.host())) || | |
accManager->accountFromUserId(userIdParsed)) { |
} | ||
} | ||
|
||
void AccountSetupFromCommandLineJob::accountCredentialsWriteJoobDone() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
void AccountSetupFromCommandLineJob::accountCredentialsWriteJoobDone() | |
void AccountSetupFromCommandLineJob::accountCredentialsWriteJobDone() |
@@ -203,7 +203,7 @@ bool CredentialsStub::stillValid(QNetworkReply * /*reply*/) | |||
return false; | |||
} | |||
|
|||
void CredentialsStub::persist() { } | |||
void CredentialsStub::persist(bool saveAccount) { Q_UNUSED(saveAccount) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
void CredentialsStub::persist(bool saveAccount) { Q_UNUSED(saveAccount) } | |
void CredentialsStub::persist(const bool saveAccount) { Q_UNUSED(saveAccount) } |
Why we never merged this? |
No description provided.