Skip to content

Fix for when account not found during sync#30367

Merged
DeepDiver1975 merged 1 commit into
masterfrom
fix-sync
Feb 7, 2018
Merged

Fix for when account not found during sync#30367
DeepDiver1975 merged 1 commit into
masterfrom
fix-sync

Conversation

@tomneedham

Copy link
Copy Markdown
Contributor

@tomneedham tomneedham added this to the development milestone Feb 5, 2018
@tomneedham tomneedham self-assigned this Feb 5, 2018
@tomneedham tomneedham requested a review from butonic February 5, 2018 12:38
Comment thread lib/private/User/SyncService.php Outdated
$this->mapper->update($a);
} catch(DoesNotExistException $ex) {
$this->createNewAccount($backendClass, $uid);
$a = $this->createNewAccount($backendClass, $uid);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since this was not detected by the regular CI process - I assume this is missing unit tests

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep - looking at tests for this

@codecov

codecov Bot commented Feb 5, 2018

Copy link
Copy Markdown

Codecov Report

Merging #30367 into master will decrease coverage by 0.16%.
The diff coverage is 50%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #30367      +/-   ##
============================================
- Coverage     60.84%   60.67%   -0.17%     
  Complexity    18549    18549              
============================================
  Files          1092     1092              
  Lines         61280    61280              
============================================
- Hits          37286    37182     -104     
- Misses        23994    24098     +104
Impacted Files Coverage Δ Complexity Δ
lib/private/User/SyncService.php 70.8% <50%> (+12.94%) 55 <0> (ø) ⬇️
lib/private/Repair/Collation.php 0% <0%> (-82.5%) 12% <0%> (ø)
lib/private/Repair/InnoDB.php 0% <0%> (-78.95%) 6% <0%> (ø)
...ilder/ExpressionBuilder/MySqlExpressionBuilder.php 0% <0%> (-62.5%) 3% <0%> (ø)
lib/private/DB/MySQLMigrator.php 0% <0%> (-57.7%) 7% <0%> (ø)
lib/private/DB/AdapterMySQL.php 0% <0%> (-50%) 4% <0%> (ø)
lib/private/DB/Adapter.php 61.72% <0%> (-20.99%) 25% <0%> (ø)
lib/private/DB/ConnectionFactory.php 60.52% <0%> (-14.48%) 21% <0%> (ø)
lib/private/DB/MDB2SchemaWriter.php 86.45% <0%> (-6.25%) 34% <0%> (ø)
...private/DB/MySqlSchemaColumnDefinitionListener.php 0% <0%> (-5.41%) 46% <0%> (ø)
... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2f1a4e1...41e72e0. Read the comment docs.

@tomneedham

Copy link
Copy Markdown
Contributor Author

Added a test to run through the sync service at least once.

@individual-it

Copy link
Copy Markdown
Member

restarted drone, now passed

@lock

lock Bot commented Aug 1, 2019

Copy link
Copy Markdown

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants