Skip to content

Use insertIfNotExist of the new interface - #8786

Merged
MorrisJobke merged 1 commit into
masterfrom
remove-insert-if-not-exists
Mar 12, 2018
Merged

Use insertIfNotExist of the new interface#8786
MorrisJobke merged 1 commit into
masterfrom
remove-insert-if-not-exists

Conversation

@MorrisJobke

Copy link
Copy Markdown
Member

Ref #8375

$this->assertGreaterThan($id1, $id2);
}

public function testinsertIfNotExist() {

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.

are there tests for the connection version of it?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

What do you mean by this?

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.

I wondered if IDBConnection::insertIfNotExist() has tests

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

I couldn't find one ... let me then migrate those tests over to the IDBConnection.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Migrated them to the new class.

@nickvergessen

Copy link
Copy Markdown
Member

Conflicting files
lib/public/DB.php

@MorrisJobke
MorrisJobkeforce-pushed the remove-insert-if-not-exists branch from aa8cc6f to 2b849ebCompareMarch 12, 2018 15:36
@codecov

codecovBot commented Mar 12, 2018

Copy link
Copy Markdown

Codecov Report

Merging #8786 into master will decrease coverage by 20.47%.
The diff coverage is 0%.

@@ Coverage Diff @@## master #8786 +/- ##
============================================
- Coverage 51.87% 31.4% -20.48% + Complexity 25358 25357 -1 
============================================
Files 1607 1607 Lines 95101 95100 -1 Branches 1377 1377 ============================================
- Hits 49336 29863 -19473 - Misses 45765 65237 +19472
Impacted FilesCoverage ΔComplexity Δ
lib/public/DB.php0% <ø> (-40%)4 <0> (-1)
lib/private/Tags.php0% <0%> (-52.98%)107 <0> (ø)
apps/files_trashbin/lib/Command/Expire.php0% <0%> (-100%)3% <0%> (ø)
lib/private/Repair/NC11/FixMountStorages.php0% <0%> (-100%)5% <0%> (ø)
...ib/private/Files/Config/UserMountCacheListener.php0% <0%> (-100%)2% <0%> (ø)
...public/AppFramework/OCS/OCSBadRequestException.php0% <0%> (-100%)1% <0%> (ø)
lib/private/Files/Mount/CacheMountProvider.php0% <0%> (-100%)4% <0%> (ø)
lib/private/Share20/Hooks.php0% <0%> (-100%)3% <0%> (ø)
apps/user_ldap/lib/LDAPUtility.php0% <0%> (-100%)1% <0%> (ø)
apps/user_ldap/lib/LDAPProviderFactory.php0% <0%> (-100%)2% <0%> (ø)
... and 373 more

@MorrisJobke

Copy link
Copy Markdown
MemberAuthor

Conflicting files
lib/public/DB.php

Already fixed :P

@MorrisJobke
MorrisJobkeforce-pushed the remove-insert-if-not-exists branch 2 times, most recently from e7de9c0 to a49d8a7CompareMarch 12, 2018 16:03
@MorrisJobke
MorrisJobkeforce-pushed the remove-insert-if-not-exists branch from a49d8a7 to 8d3104aCompareMarch 12, 2018 16:30

@ChristophWurstChristophWurst left a comment

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.

👍

@ChristophWurstChristophWurst added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Mar 12, 2018
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
@MorrisJobke
MorrisJobkeforce-pushed the remove-insert-if-not-exists branch from 8d3104a to 2b335fdCompareMarch 12, 2018 16:45
@MorrisJobke
MorrisJobke merged commit fac0a11 into masterMar 12, 2018
@MorrisJobke
MorrisJobke deleted the remove-insert-if-not-exists branch March 12, 2018 17:44
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to releaseReady to be released and/or waiting for tests to finishtechnical debt🧱 🤔🚀

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@MorrisJobke@nickvergessen@rullzer@ChristophWurst@skjnldsv