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
Query the cache when checking if a node exists #22506
Conversation
By analyzing the blame information on this pull request, we identified @MorrisJobke, @PVince81 and @nickvergessen to be potential reviewers |
Failing unit tests |
0f3fda1
to
d1e747b
Compare
All fixed |
@@ -129,7 +129,12 @@ public static function initPaths() { | |||
} else { | |||
self::$configDir = OC::$SERVERROOT . '/config/'; | |||
} | |||
self::$config = new \OC\Config(self::$configDir); | |||
|
|||
if (defined('PHPUNIT_RUN') and PHPUNIT_RUN) { |
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.
no way!
👎 for the hack in base.php |
d1e747b
to
9d38091
Compare
Switched to mocking the config I would still like to add a system to automatically handle it for all tests in the future |
9d38091
to
6e4cc60
Compare
@nickvergessen @rullzer @PVince81 please review |
👍 |
So this should really go into 9.0? cc @karlitschek @cmonteroluque |
Hmmm. relatively risky after feature freeze and 3 days before the freeze. What do you think @cmonteroluque ? |
This did not help fixing the original issue anyway, so I'd say 9.0.1 |
Moving to 9.0.1 as this doesn't fix any critical known issue CC @cmonteroluque |
agreed |
@@ -100,9 +100,9 @@ protected function createNode($path, $info = array()) { | |||
$isDir = $info['mimetype'] === 'httpd/unix-directory'; | |||
} | |||
if ($isDir) { | |||
return new Folder($this->root, $this->view, $path); | |||
return new Folder($this->root, $this->view, $path, $info); |
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.
$info seems to be an array as per PHPDoc. Folder
seems however to expect \OCP\Files\FileInfo
. Could you adjust this so that static code analysers are happy?
@icewind1991 Could you checkout the above comments? |
6e4cc60
to
0b0b325
Compare
switched everything to FileInfo objects |
@LukasReschke @MorrisJobke @PVince81 please review |
👍 |
@nickvergessen @rullzer rereview after the changes ? |
Is the 9.0.1 milestone indented? I would rather not backport this and only merge it to master. |
PR is against mater so goes into 9.1 anyway... |
Tested and works 👍 |
#22463 is set for 9.0.1 which this is supposed to fix, should this be backported ( @karlitschek ) |
@icewind1991 this PR doesn't fix the underlying problem, so for now I'd rather say no backport. |
There are 2 parts of #22463
|
Ok fair enough. @karlitschek backport to 9.0.1 ? |
great. please backport |
stable9: #23520 |
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. |
Improves performance when working with slow storage backends
cc @PVince81 @rullzer