2604 Commits

Author SHA1 Message Date
eikek
d6af7dd659 Remove the "tools" docker image 2021-08-20 18:21:28 +02:00
eikek
461ae74c28 Remove obsolete shell scripts
The commandline interface now supersedes these scripts.
2021-08-20 18:19:51 +02:00
mergify[bot]
30dec30450
Merge pull request #1019 from eikek/feature/990-check-for-update
Feature/990 check for update
2021-08-19 22:41:46 +00:00
eikek
5d33b3841a Add a task to check for updates periodically
It must be enabled and configured by the admin.

Refs: #990
2021-08-20 00:25:27 +02:00
eikek
90421599ea Fix storing empty-trash task
It was wrongly stored using RPeriodicTask directly, but the higher
level `UserTask` must be used instead, because this ensures a
correctly scoped periodic task using the `updateOneTask` method. Since
this is a system task, it can be given a fixed ID which makes it now
safe even if stored using RPeriodicTask directly.

The bug resulted in multiple empty-trash tasks to be inserted (on each
restart).

Refs: #347
2021-08-20 00:25:25 +02:00
mergify[bot]
e85bd1267c
Merge pull request #1018 from scala-steward/update/scalafmt-core-3.0.0
Update scalafmt-core to 3.0.0
2021-08-19 07:01:27 +00:00
Scala Steward
e4fecefaea
Reformat with scalafmt 3.0.0 2021-08-19 08:50:30 +02:00
Scala Steward
5a2a0295ef
Update scalafmt-core to 3.0.0 2021-08-19 08:50:05 +02:00
mergify[bot]
6fbc9e58db
Merge pull request #1017 from eikek/feature/836-qr-code
Add a qr code to the link of an item or attachment
2021-08-17 22:33:04 +00:00
eikek
8f23b68587 Add a qr code to the link of an item or attachment 2021-08-18 00:20:27 +02:00
mergify[bot]
2d2f9e3e87
Merge pull request #1016 from scala-steward/update/flyway-core-7.14.0
Update flyway-core to 7.14.0
2021-08-17 12:27:26 +00:00
Scala Steward
45d4bbb8b7
Update flyway-core to 7.14.0 2021-08-17 14:16:53 +02:00
mergify[bot]
b145378c6a
Merge pull request #1014 from eikek/feature/966-active-filter
Highlight search menu tabs that contain data
2021-08-16 21:48:33 +00:00
eikek
f1445e797b Highlight search menu tabs that contain data
Refs: #966
2021-08-16 22:13:53 +02:00
mergify[bot]
9370168ac0
Merge pull request #1013 from scala-steward/update/sbt-scalafix-0.9.30
Update sbt-scalafix to 0.9.30
2021-08-16 16:37:25 +00:00
Scala Steward
c2074bdc62
Update sbt-scalafix to 0.9.30 2021-08-16 18:26:00 +02:00
mergify[bot]
7f6bb6994d
Merge pull request #1012 from eikek/fixup/414-merge-items
Fixup/414 merge items
2021-08-16 15:44:11 +00:00
eikek
cf10f63af4 Improve main view in home page 2021-08-16 17:00:57 +02:00
eikek
7070371cf7 Update merge documentation 2021-08-16 16:08:33 +02:00
eikek
ac0603335f Improve merge items list
Allow to reorder for mobile and remove elements.
2021-08-16 16:00:43 +02:00
eikek
c7c488f0cc Fix position of merged attachments 2021-08-16 15:05:26 +02:00
mergify[bot]
2252acff12
Merge pull request #1011 from eikek/feature/414-merge-items
Feature/414 merge items
2021-08-16 12:52:36 +00:00
eikek
21647e950d Add docs for merging items 2021-08-16 14:41:56 +02:00
eikek
9478152a94 Switch to search view after successful merge 2021-08-16 14:40:57 +02:00
eikek
a923351b09 Fix item merge when merging tags and text fields
Also hard delete the remaining items. They are empty (have no
attachments), because data is moved if possible. Doesn't make much
sense to keep them, because restoring them isn't much useful.
2021-08-16 14:40:52 +02:00
eikek
8099b78b0e Merge items in webui 2021-08-16 12:55:25 +02:00
eikek
85085ec173 Implement item merge 2021-08-16 12:32:54 +02:00
eikek
22d331f082 Integrate item merge dialog into home page 2021-08-16 12:32:54 +02:00
mergify[bot]
5782166273
Merge pull request #1010 from eikek/fixup/347-file-exists
Fixup for deleting items
2021-08-15 14:11:36 +00:00
eikek
14e4a8f792 Fixup for deleting items
First, when checking for existence of a file, deleted items are not
conisdered.

The working with fulltext search has been changed: deleted items are
removed from fulltext index and are re-added when they are restored.
The fulltext index currently doesn't hold the item state and it would
mean much more work to introduce it into the index (or, worse, to
reprocess the results from the index). Thus, deleted items can only be
searched using database queries. It is probably a very rare use case
when fulltext search should be applied to deleted items. They have
been deleted for a reason and the most likely case is that they are
simply removed.

Refs: #347
2021-08-15 16:00:30 +02:00
mergify[bot]
50387cd378
Merge pull request #1009 from eikek/fixup/347-delete-duration
Use a minimum age of items to remove
2021-08-15 10:50:30 +00:00
eikek
bc6924fd5d Show delete/restore buttons conditionally
When only trashed items are selected, the "delete" button doesn't make
sense and vice versa.
2021-08-15 12:41:10 +02:00
eikek
f4a2b86ea8 Use a minimum age of items to remove
In order to keep deleted items for a while, the periodic task can now
use a duration to only remove items with a certain age. This can be
used to ensure that a deleted item stays at least X days before it
will be removed from the database.

Refs: #347
2021-08-15 12:32:50 +02:00
mergify[bot]
cabc0dfa0d
Merge pull request #1008 from scala-steward/update/jsoup-1.14.2
Update jsoup to 1.14.2
2021-08-15 08:46:19 +00:00
Scala Steward
3cc5e56f8e
Update jsoup to 1.14.2 2021-08-15 10:35:49 +02:00
mergify[bot]
fd3642ba31
Merge pull request #1007 from scala-steward/update/sbt-sonatype-3.9.9
Update sbt-sonatype to 3.9.9
2021-08-15 05:14:04 +00:00
Scala Steward
fa6cbfba43
Update sbt-sonatype to 3.9.9 2021-08-15 07:02:00 +02:00
eikek
d136bb8166 Update docker url in README 2021-08-15 02:18:08 +02:00
mergify[bot]
fe7d64d989
Merge pull request #1006 from eikek/feature/347-delete-items
Feature/347 delete items
2021-08-14 20:16:17 +00:00
eikek
ef31c90e34 Fix submitter column of a collective-scoped periodic job 2021-08-14 22:07:56 +02:00
eikek
4562c77152 Fix migration changeset name for h2 2021-08-14 22:07:56 +02:00
eikek
31d885ed79 Refactor user tasks to support collective and user scopes
Before, there were periodic tasks run per collective and not user by
making sure that submitter + group are the same value. This is now
encoded in `UserTaskScope` so it is now obvious and errors can be
reduced when using this.
2021-08-14 22:07:56 +02:00
eikek
548dfb9a57 Fix openapi.yml where undefined query parameter 2021-08-14 20:40:04 +02:00
eikek
27fd7a5867 Make sure the empty-trash task is started for all collectives 2021-08-14 20:40:04 +02:00
eikek
50706c3d6d Add a task implementation to delete items 2021-08-14 19:33:18 +02:00
eikek
4901276c66 Change "empty trash" settings for a collective and submit the job 2021-08-14 19:33:15 +02:00
eikek
828e5cf703 Allow to restore deleted items in webui 2021-08-14 16:50:17 +02:00
eikek
f999662905 Add routes to restore deleted items 2021-08-14 16:48:03 +02:00
eikek
eede20b014 Display deleted items in the webui
The card renders a trash can in the top right corner and the detail
page shows a label and also this trash can.
2021-08-14 16:06:55 +02:00
eikek
3f1ff5c1ac Allow to search in deleted items 2021-08-14 15:35:17 +02:00