35 Commits

Author SHA1 Message Date
b72b3e8694 refactor(QueryBuilder): Port away from deprecated execute method
Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
2025-10-13 16:36:43 +02:00
bd9eca8fbc Update Dependencies and Nextcloud Requirement
Signed-off-by: Alexander Ratajczak <a4blue@hotmail.de>
2025-04-23 16:38:34 +02:00
c1247247f0 lib: refactor query builder handling
Rather than having to remember to reset the query builder in each method
that uses it, these are now created on-demand from the db connection.

Signed-off-by: Maximilian Bosch <maximilian@mbosch.me>
2024-10-16 18:40:49 +02:00
03cc1dbf05 Bump app to Nextcloud 30
Closes #1333

I decided to not cross-check the availability of all all deprecated
things with older majors, so both min and max version are v30 for now.

A list of all things that I've fixed:

* Deprecated SCSS variables updated as documented in the upgrade notes[1].
* Fixed a bunch of query builder deprecations:
  * $qb->resetQueryParts() is deprecated, one should just create a new
    query-builder object. Done that.
  * Calling `$qb->expr()->andX()` (and `orX()`) with no arguments is
    deprecated. Instead, one should list all arguments in an array and
    pass that to the method. Reworked queries where necessary to do so.
* The PHPUnit version I got by running `make test` downloaded a version
  that prohibits non-static data providers. Made all affected data
  providers static.

With that, everything from `make test` passes in a local dev
installation of Nextcloud 30 except for two tests:

    1) OCA\Maps\Controller\PhotosControllerTest::testAddGetPhotos
    Failed asserting that actual size 0 matches expected size 1.

    /home/ma27/Projects/nextcloud/apps/maps/tests/Unit/Controller/PhotosControllerTest.php:206

    2) OCA\Maps\Controller\TracksControllerTest::testAddGetTracks
    Failed asserting that false matches expected true.

    /home/ma27/Projects/nextcloud/apps/maps/tests/Unit/Controller/TracksControllerTest.php:205

Both tests failed on the previous commit already, so I decided to leave
those for now.

[1] https://docs.nextcloud.com/server/latest/developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_30.html#front-end-changes

Signed-off-by: Maximilian Bosch <maximilian@mbosch.me>
2024-10-07 17:26:12 +02:00
e75ec7c20a fix: Add psalm configuration, fix some of the errors, add stubs, add baseline
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-09-16 15:24:19 +02:00
b059d12c92 chore: composer run cs:fix
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-09-14 20:21:41 +02:00
31fc004f1d First frontend parts
Signed-off-by: Arne Hamann <git@arne.email>
2023-09-26 12:45:16 +02:00
60f4c03f26 Backend for devices on custom maps
Signed-off-by: Arne Hamann <git@arne.email>
2023-09-26 12:45:16 +02:00
fb81b91adc Update photosuggestion marker on timezone change
Signed-off-by: Arne Hamann <git@arne.email>
2023-02-22 15:14:48 +01:00
e5075ae8be Merge pull request #970 from nextcloud/devices-heatmap
Devices heatmap
2023-02-13 22:30:00 +01:00
a53b1d93d9 Make shure int is int
Signed-off-by: Arne Hamann <git@arne.email>
2023-02-13 19:39:51 +01:00
901bc2e011 Chunck load device point
Signed-off-by: Arne Hamann <git@arne.email>
2023-02-13 19:06:22 +01:00
64a0a0df89 Navigation respects permissions
Signed-off-by: Arne Hamann <git@arne.email>
2022-04-28 00:36:30 +02:00
54bbf63498 Bring permissions to frontend
Signed-off-by: Arne Hamann <git@arne.email>
2022-04-27 22:25:50 +02:00
9289bdcf2e Merge pull request #390 from nextcloud/remove-array_key_exists
Replaced array_key_exists with isset
2022-03-14 15:04:11 +01:00
c0d818df6c fix dbconnection named service injection
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2020-07-06 17:09:03 +02:00
c69e1251b0 Replaced array_key_exists with isset
Signed-off-by: Arne Hamann <kontakt+github@arne.email>
2020-05-23 00:04:34 +02:00
e2cfca7afc fix bad insert request when giving null for acc, batt or alt
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2019-10-20 17:33:40 +02:00
7a78eaa7b4 refs #73 multiple 'endswith' definition quick fix
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2019-08-26 14:57:10 +02:00
048c997a90 add tests for devices
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2019-08-18 18:31:41 +02:00
0ab6a72538 fix problems with count(*) and PostgreSQL. tests are passing
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2019-08-17 19:17:18 +02:00
e88ce739fa start to write tracksController test
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2019-08-16 13:24:41 +02:00
fa0bbfb954 beginning to implement photosController tests
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2019-08-11 15:52:43 +02:00
39560ca76b rename device (change user agent for the moment)
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2019-05-04 02:15:14 +02:00
5fb199c54b import devices from google timeline kml/kmz
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2019-04-30 00:25:15 +02:00
2f5028fb40 safer device import
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2019-04-29 19:17:54 +02:00
c984c84450 safer favorite import
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2019-04-29 19:13:48 +02:00
a501994b15 make multi device point insert more efficient
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2019-04-29 18:24:49 +02:00
e130443b28 import devices from gpx
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2019-04-29 17:14:16 +02:00
c888a8311a export devices to gpx
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2019-04-29 15:22:42 +02:00
91c1ed19f3 add fields to tooltip 2019-04-17 19:15:35 +02:00
7ee6a12fd8 change device color 2019-04-17 17:24:04 +02:00
fc2eac072b devices in progress, UI half done... 2019-04-17 02:44:08 +02:00
b90f8ff5bb devices server side almost ready 2019-04-17 01:06:07 +02:00
0d5124df7a beginning to implement devicesService 2019-04-16 19:29:54 +02:00