Skip to content

Conversation

@rullzer
Copy link
Member

@rullzer rullzer commented May 24, 2018

This allows apps to listen to this event in order to also update
indecies there.

Signed-off-by: Roeland Jago Douma roeland@famdouma.nl

@rullzer rullzer added enhancement 3. to review Waiting for reviews labels May 24, 2018
@rullzer rullzer added this to the Nextcloud 14 milestone May 24, 2018
* @param IDBConnection $connection
*/
public function __construct(IDBConnection $connection) {
public function __construct(IDBConnection $connection, EventDispatcherInterface $dispatcher) {
Copy link
Member

Choose a reason for hiding this comment

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

You're missing the assignment of $dispatcher to the private field.

Copy link
Member Author

Choose a reason for hiding this comment

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

look again

@rullzer rullzer force-pushed the feature/noid/missing_index_event branch from 0830a8f to 91ec554 Compare May 24, 2018 09:16
@codecov
Copy link

codecov bot commented May 24, 2018

Codecov Report

Merging #9576 into master will increase coverage by 22.04%.
The diff coverage is 0%.

@@              Coverage Diff              @@
##             master    #9576       +/-   ##
=============================================
+ Coverage     29.13%   51.18%   +22.04%     
  Complexity    25673    25673               
=============================================
  Files          1568     1568               
  Lines         87950    87953        +3     
=============================================
+ Hits          25623    45015    +19392     
+ Misses        62327    42938    -19389
Impacted Files Coverage Δ Complexity Δ
core/register_command.php 0% <0%> (ø) 0 <0> (ø) ⬇️
core/Command/Db/AddMissingIndices.php 0% <0%> (ø) 7 <1> (ø) ⬇️
lib/private/Files/Stream/Encryption.php 75.22% <0%> (+0.45%) 54% <0%> (ø) ⬇️
apps/theming/lib/ThemingDefaults.php 89.79% <0%> (+0.68%) 51% <0%> (ø) ⬇️
lib/private/Setup.php 12.55% <0%> (+0.83%) 52% <0%> (ø) ⬇️
lib/public/AppFramework/Db/Mapper.php 94.95% <0%> (+0.84%) 30% <0%> (ø) ⬇️
lib/private/Group/Group.php 88.88% <0%> (+0.92%) 52% <0%> (ø) ⬇️
...vate/Authentication/Token/DefaultTokenProvider.php 98.03% <0%> (+0.98%) 32% <0%> (ø) ⬇️
lib/private/Preview/Generator.php 78.03% <0%> (+1.15%) 52% <0%> (ø) ⬇️
lib/private/App/DependencyAnalyzer.php 95.62% <0%> (+1.25%) 64% <0%> (ø) ⬇️
... and 378 more

Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

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

Works 👍

@MorrisJobke MorrisJobke added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels May 24, 2018
@MorrisJobke
Copy link
Member

Retriggered CI job

*/
interface IDBConnection {

const ADD_MISSING_INDEXES_EVENT = this::class . '::ADD_MISSING_INDEXES';
Copy link
Member

Choose a reason for hiding this comment

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

lib/public/IDBConnection.php:49 PhanUndeclaredClassConstant Reference to constant class from undeclared class \OCP\this

Copy link
Member

Choose a reason for hiding this comment

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

I fixed it by replacing the this with self 😉

This allows apps to listen to this event in order to also update
indecies there.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
@MorrisJobke MorrisJobke force-pushed the feature/noid/missing_index_event branch from 91ec554 to 80cc8d0 Compare May 24, 2018 16:03
@rullzer rullzer merged commit eefe256 into master May 24, 2018
@rullzer rullzer deleted the feature/noid/missing_index_event branch May 24, 2018 18:33
@rullzer
Copy link
Member Author

rullzer commented May 24, 2018

Would a backport make sense? it is a small change but then apps can already add indexes for 13 apps.

@MorrisJobke
Copy link
Member

Would a backport make sense? it is a small change but then apps can already add indexes for 13 apps.

I would say so.

@rullzer
Copy link
Member Author

rullzer commented May 26, 2018

backport in #9620

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants