Skip to content

Conversation

@juliusknorr
Copy link
Member

Save some time and potential file system setup when obtaining capabilities (which is done on every template response) for gathering theming capabilities by not getting the background image file but just checking if one is configured.

Copy link
Member

@nickvergessen nickvergessen left a comment

Choose a reason for hiding this comment

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

I see why it was done the old way. But it basically means the cache (appconfig) is not trusted, so it's not helping.

Copy link
Member

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

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

👍

@PVince81
Copy link
Member

1) OCA\Theming\Tests\ImageManagerTest::testGetImageUrl
Expectation failed for method name is "getFolder" when invoked 1 time(s).
Method was expected to be called 1 times, actually called 0 times.

2) OCA\Theming\Tests\ImageManagerTest::testGetImageUrlDefault
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'logo/logo.png?v=0'
+'?v=0'

/drone/src/apps/theming/tests/ImageManagerTest.php:158

3) OCA\Theming\Tests\ImageManagerTest::testGetImageUrlAbsolute
Expectation failed for method name is "getFolder" when invoked 1 time(s).
Method was expected to be called 1 times, actually called 0 times.

@juliushaertl please adjust the tests

@skjnldsv skjnldsv added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Jan 20, 2022
@juliusknorr juliusknorr force-pushed the theming/background-image branch from 90376e2 to 3d0b5c1 Compare February 2, 2022 10:26
@juliusknorr
Copy link
Member Author

Tests adjusted, samba failure unrelated.

@juliusknorr juliusknorr merged commit 20f1971 into master Feb 3, 2022
@juliusknorr juliusknorr deleted the theming/background-image branch February 3, 2022 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants