Maxence Lange
519e434573
fix(updatenotification): spread the use of new appconfig
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
преди 3 месеца
Ferdinand Thiessen
2c87fbf207
fix(updatenotification): Adjust tests for changed IAppConfig
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
преди 3 месеца
Ferdinand Thiessen
9c1a87aec4
fix(updatenotification): Update tests to match with changed constructors
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
преди 4 месеца
Joas Schilling
aa5f037af7
chore: apply changes from Nextcloud coding standards 1.1.1
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
преди 7 месеца
Christopher Ng
de4bc44f95
test(updatenotification): No internet
Signed-off-by: Christopher Ng <chrng8@gmail.com>
преди 10 месеца
Benjamin Gaussorgues
31f1354777
Add instance category while checking new updates
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
преди 1 година
Côme Chilliet
72c7fad1c4
Fix job tests in updatenotification and user_ldap applications
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
преди 1 година
Carl Schwan
954f4940cf
Fix test update notification
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
преди 1 година
Carl Schwan
49334e4d9c
Fix many tests and warnings
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
преди 1 година
Thomas Citharel
956d895920
Update tests after ResetTokenBackgroundJob changes
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
преди 2 години
szaimen
e8122f21c5
show warning in update admin overview
Signed-off-by: szaimen <szaimen@e.mail.de>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
преди 2 години
Joas Schilling
9b128d823b
Jitter the requests to the appstore and updater server over 3 minutes
Signed-off-by: Joas Schilling <coding@schilljs.com>
преди 3 години
John Molakvoæ (skjnldsv)
215aef3cbd
Update php licenses
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
преди 3 години
Joas Schilling
42140ab53f
Fix update notification tests
18) OCA\UpdateNotification\Tests\Notification\BackgroundJobTest::testCreateNotifications with data set #1 ('app2', '1.0.1', '1.0.0', '1.0.0', true, array('user1'), array(array('user1')))
Method notify may not return value of type Mock_INotification_2134ee38, its return declaration is ": void"
19) OCA\UpdateNotification\Tests\Notification\BackgroundJobTest::testCreateNotifications with data set #2 ('app3', '1.0.1', false, false, true, array('user2', 'user3'), array(array('user2'), array('user3')))
Method notify may not return value of type Mock_INotification_2134ee38, its return declaration is ": void"
Signed-off-by: Joas Schilling <coding@schilljs.com>
преди 3 години
Vincent Petry
6ce469132c
Hide updater button when web updater is disabled
Whenever the web updater is disabled, the updater button and its
matching token requesting endpoints are disabled.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
преди 3 години
Christoph Wurst
d89a75be0b
Update all license headers for Nextcloud 21
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
преди 3 години
Christoph Wurst
d9015a8c94
Format code to a single space around binary operators
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
преди 3 години
Christoph Wurst
2a054e6c04
Update the license headers for Nextcloud 20
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
преди 3 години
Morris Jobke
234b510652
Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to \PHPUnit\Framework\MockObject\MockObject
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
преди 3 години
Christoph Wurst
cb057829f7
Update license headers for 19
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
преди 4 години
Morris Jobke
773e9d0554
Add tests for update notification controller for non-default updater server URL
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
преди 4 години
Christoph Wurst
caff1023ea
Format control structures, classes, methods and function
To continue this formatting madness, here's a tiny patch that adds
unified formatting for control structures like if and loops as well as
classes, their methods and anonymous functions. This basically forces
the constructs to start on the same line. This is not exactly what PSR2
wants, but I think we can have a few exceptions with "our" style. The
starting of braces on the same line is pracrically standard for our
code.
This also removes and empty lines from method/function bodies at the
beginning and end.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
преди 4 години
Christoph Wurst
14c996d982
Use elseif instead of else if
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
преди 4 години
Christoph Wurst
41b5e5923a
Use exactly one empty line after the namespace declaration
For PSR2
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
преди 4 години
Christoph Wurst
74936c49ea
Remove unused imports
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
преди 4 години
Christoph Wurst
5bf3d1bb38
Update license headers
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
преди 4 години
Roeland Jago Douma
3a7cf40aaa
Mode to modern phpunit
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
преди 4 години
Roeland Jago Douma
c007ca624f
Make phpunit8 compatible
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
преди 4 години
Roeland Jago Douma
68748d4f85
Some php-cs fixes
* Order the imports
* No leading slash on imports
* Empty line before namespace
* One line per import
* Empty after imports
* Emmpty line at bottom of file
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
преди 4 години
Joas Schilling
565838da9c
Update unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
преди 5 години
Morris Jobke
39c28bd05b
Enterprise update channel
Allows to select the enterprise update channel for instances that have a valid subscription.
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
преди 5 години
Joas Schilling
942281a48e
Remove unused IUserSession
Signed-off-by: Joas Schilling <coding@schilljs.com>
преди 5 години
Joas Schilling
eff7a9c904
Adjust unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
преди 5 години
Arthur Schiwon
6645c014e9
fix wrong return value of filtered whats new info
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
преди 5 години
Arthur Schiwon
241b59f458
adjust tests
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
преди 6 години
Arthur Schiwon
25d9c3e529
adjust backend and gui to update and changelog server
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
преди 6 години
Arthur Schiwon
1e0761c6b8
adjust tests
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
преди 6 години
Julius Härtl
ea8e80c20b
Adjust updatenotification app settings section/priority
Signed-off-by: Julius Härtl <jus@bitgrid.net>
преди 6 години
Joas Schilling
ec1e039790
Show EOL warning in the update section
Signed-off-by: Joas Schilling <coding@schilljs.com>
преди 6 години
Joas Schilling
69c88ad075
Fix unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
преди 6 години
Joas Schilling
b12b391d7c
Migrate the app to Vue.js
Signed-off-by: Joas Schilling <coding@schilljs.com>
преди 6 години
Morris Jobke
4739076474
Use correct update server
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
преди 6 години
Joas Schilling
19f7cc9e92
Make Update notficiations strict and fix all inspections
Signed-off-by: Joas Schilling <coding@schilljs.com>
преди 6 години
Joas Schilling
7deb76e405
Split controller and settings
Signed-off-by: Joas Schilling <coding@schilljs.com>
преди 6 години
Joas Schilling
50e1cee5c7
Automatic DI for Controllers also works
Signed-off-by: Joas Schilling <coding@schilljs.com>
преди 6 години
Joas Schilling
ffb3a3e33a
Improve ResetTokenBackgroundJob and unit test
* Automatic DI is implemented since 11
* Correctly type hint parameters
* Optimise the tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
преди 6 години
Morris Jobke
df61d43529
Make isUpdateAvailable non-static
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
преди 6 години
Morris Jobke
0eebff152a
Update license headers
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
преди 6 години
Morris Jobke
9391d8fc60
Improve update notification layout and show non-default update server
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
преди 7 години
Morris Jobke
7f2e9d10a3
Show correct status in update notification
Sometimes it could be the case that after a channel change the last updated
timestamp is reset, but the check for updates is not yet completed. In this
case the update notification showed "You are up to date" and the date was
"1970-01-01 00:00:00". With this fix the state is properly shown.
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
преди 7 години