X Tutup
Skip to content

emit correct legacy hook#39844

Merged
phil-davis merged 2 commits intomasterfrom
add-vs-update
Jun 15, 2022
Merged

emit correct legacy hook#39844
phil-davis merged 2 commits intomasterfrom
add-vs-update

Conversation

@butonic
Copy link
Contributor

@butonic butonic commented Mar 1, 2022

shouldn't this be update instead of add?

just asking...

@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 1, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@phil-davis
Copy link
Contributor

Someone needs to review this, and if the change is correct:

  • write something about what possible bug(s) this might fix
  • write a changelog

butonic and others added 2 commits June 15, 2022 09:11
shouldn't this be add instead of update?
@jvillafanez
Copy link
Member

Rebased and changelog added.

I don't think it will fix anything. The code is used in

$scanner->listen('\OC\Files\Cache\Scanner', 'removeFromCache', function ($path) use ($storage) {
$this->triggerPropagator($storage, $path);
});
$scanner->listen('\OC\Files\Cache\Scanner', 'updateCache', function ($path) use ($storage) {
$this->triggerPropagator($storage, $path);
});
$scanner->listen('\OC\Files\Cache\Scanner', 'addToCache', function ($path) use ($storage) {
$this->triggerPropagator($storage, $path);
});
and
$scanner->listen('\OC\Files\Cache\Scanner', 'removeFromCache', function ($path) use ($storage) {
$this->postProcessEntry($storage, $path);
});
$scanner->listen('\OC\Files\Cache\Scanner', 'updateCache', function ($path) use ($storage) {
$this->postProcessEntry($storage, $path);
});
$scanner->listen('\OC\Files\Cache\Scanner', 'addToCache', function ($path) use ($storage) {
$this->postProcessEntry($storage, $path);
});
, and the code path is the same with and without the PR.

I'm not sure if there is any 3rd-party app listening to those events, but it should be more consistent now.

@phil-davis phil-davis self-assigned this Jun 15, 2022
@phil-davis
Copy link
Contributor

Assigned myself so that I notice this and merge it when CI passes.

@owncloud owncloud deleted a comment from update-docs bot Jun 15, 2022
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@phil-davis phil-davis merged commit 3542266 into master Jun 15, 2022
@delete-merged-branch delete-merged-branch bot deleted the add-vs-update branch June 15, 2022 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

X Tutup