-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Use apps versions to generate suffix when possible #7244
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #7244 +/- ##
============================================
- Coverage 50.97% 50.96% -0.01%
- Complexity 24735 24745 +10
============================================
Files 1586 1586
Lines 94257 94275 +18
Branches 1365 1365
============================================
+ Hits 48049 48050 +1
- Misses 46208 46225 +17
|
|
What I did:
@skjnldsv What did I wrong? |
|
@MorrisJobke It's the hash after the |
lib/private/TemplateLayout.php
Outdated
| } | ||
| if ($app !== false && $app !== '') { | ||
| $v = \OC_App::getAppVersions(); | ||
| $appName = end(explode('/', $app)); |
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.
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.
Also the explode looks like it wont work for apps/ next to server/ so where your $web is not straight forward?
lib/private/TemplateLayout.php
Outdated
|
|
||
| protected function getVersionHashSuffix() { | ||
| if(\OC::$server->getConfig()->getSystemValue('debug', false)) { | ||
| protected function getVersionHashSuffix($app=false) { |
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.
Missing spaces around =
|
All clear! Now we have nice and beautiful version suffixes! :) |
| } | ||
| return end($pathParts); | ||
| } | ||
|
|
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.
Don't lie in your phpdoc 😉 If you say you returning a string do so :P
lib/private/TemplateLayout.php
Outdated
| * @param string $path | ||
| * @return string | ||
| */ | ||
| static public function getAppNamefromPath($path) { |
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.
Is there a reason why this is a static method? I guess the static can be dropped here.
|
@skjnldsv Could you address the comments? And then this can get in. |
4acc3f0 to
5958034
Compare
|
@MorrisJobke @rullzer all clear :) |
lib/private/TemplateLayout.php
Outdated
| } | ||
| return end($pathParts); | ||
| } | ||
| return false |
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.
Syntax error: Missing ; 😉 Let me push a fix for this
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.
I was sure I pushed a fix for this! :O
MorrisJobke
left a comment
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.
Works with my syntax fix 👍
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
Signed-off-by: Morris Jobke <[email protected]>
759bff6 to
52e7d05
Compare
|
Rebased to fix the failing integration test, that was fixed on master. |
I was wrong - it was not yet merged to master -> CI looks good so far -> merging. |
|
Of course I have overlooked one issue in the setup integration tests because of the other one. Let me fix this. |
#7449 <- that then also should be backported together with this PR. |
|
@skjnldsv please prepare the backport |
|
@skjnldsv I guess this backport didn't made it yet, right? |
|
Oups, my bad! |
|
I would like to wait for 12.0.6 for this, is this okay? |
|
Okay for me |

This will force css cache update on the user's browser side on app update. And avoid many errors like calendar or contacts had in the past.