40 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
c16bb363d0 chore: composer run cs:fix
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-09-16 19:39:17 +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
29a5f2becf Fixes #1109 deleteTrack
Signed-off-by: Arne Hamann <git@arne.email>
2023-08-29 12:03:55 +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
ce210ae78c Add source track to suggestions
Signed-off-by: Arne Hamann <git@arne.email>
2023-02-13 23:18:45 +01:00
f56f57d7b4 Clear cache button and fixed ignore mimetypes
Signed-off-by: Arne Hamann <git@arne.email>
2023-01-07 16:39:28 +01:00
7fa723cc88 Register Mimetypes and use them to find maps and .noindex .nomedia .notrack .noimage
Signed-off-by: Arne Hamann <git@arne.email>
2023-01-03 12:29:57 +01:00
80af080006 Improve get ignored path
Signed-off-by: Arne Hamann <git@arne.email>
2022-12-31 02:03:36 +01:00
57433b14d4 Further fixes
Signed-off-by: Arne Hamann <git@arne.email>
2022-04-29 15:03:07 +02:00
54bbf63498 Bring permissions to frontend
Signed-off-by: Arne Hamann <git@arne.email>
2022-04-27 22:25:50 +02:00
df171bbfe8 Respect .noindex etc for tracks
Signed-off-by: Arne Hamann <git@arne.email>
2022-04-26 11:28:14 +02:00
1ef646bf89 New Sidebar with shareing
Signed-off-by: Arne Hamann <git@arne.email>
2022-04-26 11:13:38 +02:00
867686f977 Fixed tracks in shares and sharing to group
Signed-off-by: Arne Hamann <git@arne.email>
2022-04-25 14:32:43 +02:00
f788becc5c bring tracks in my-maps
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-04-25 12:38:33 +02:00
969a7f3838 port GpxPod improvements about cumul elevation and max speed calculation
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2021-07-06 12:43:27 +02:00
903cc83c75 get tracks, parse metadata, parse gpx content
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2021-07-06 12:43:25 +02:00
9facdf4a2e Fixes #193
Signed-off-by: Scott A. Williams <vwbusguy@fedoraproject.org>
2020-08-11 15:40:58 -07:00
c0d818df6c fix dbconnection named service injection
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2020-07-06 17:09:03 +02:00
3e3b9e4e96 used array_shift and not [0] to get the first file
Signed-off-by: Arne Hamann <kontakt+github@arne.email>
2020-01-22 15:03:19 +01:00
a675162640 gitlab CI is now working, tests are finally operational
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2019-08-17 18:39:53 +02:00
e88ce739fa start to write tracksController test
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2019-08-16 13:24:41 +02:00
ec967a0f73 improve track max speed and pos/neg elevation gain calculation
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2019-08-09 17:40:07 +02:00
dfb07b37d0 new file hooks for tracks: restore files/folders (works with shared files)
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2019-06-30 16:59:21 +02:00
01dc2b9fee new file hooks for tracks: share/unshare files/folders
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2019-06-30 16:29:43 +02:00
58235d34b3 new file hooks for tracks
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2019-06-30 15:47:06 +02:00
aa911c677e two new file hooks operational for tracks: delete file/folder
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2019-06-30 14:51:54 +02:00
ebe97f4d09 one file hook operational for tracks: new file
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2019-06-30 14:32:14 +02:00
ebbc78b7eb optimize tracks: lazy metadata generation (getContent) if none or file changed
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2019-06-30 13:40:46 +02:00
5bfab67f4d add track scan command, todo : optimize and remove manual adding
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2019-06-30 12:05:03 +02:00
a52c52dc31 fix tracks metadata computing and display 2019-04-12 16:15:47 +02:00
21e90e9a56 generate track metadata and update when necessary (etag check) 2019-04-10 18:03:19 +02:00
b6acba6895 change track color line/wpt/icon/tooltip 2019-04-09 01:31:22 +02:00
2872439d7e only store track file id in DB 2019-04-09 01:31:22 +02:00
cf259c5829 partial frontend part for tracks 2019-04-09 01:31:22 +02:00
badd462b07 backend part for tracks 2019-04-09 01:31:22 +02:00