2747 Commits

Author SHA1 Message Date
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
eikek
edb344314f Use an enum instead of a boolean to differentiate search
It's not very likely to have more modes of search besides normal and
trashed, but got surprised in that way quite often and it's nicer this
way anyways.
2021-08-14 15:11:48 +02:00
eikek
a7b74bd5ae Allow to search in soft-deleted items
A new query/request parameter can be used to apply a search to only
soft-deleted items.

The query expression `Trashed` has been introduced which selects only
items with state `Deleted`. This is another option an analog to
`ValidItemStates` (both cannot be used together as they would select
no items). This new query node is not added to the parser, because
users may not use it in their own queries - it must be part of the
"fixed" query so the application can control in which subset to search
(it would otherwise be possible to select any items).
2021-08-14 14:53:05 +02:00
eikek
cb777e30c0 Delete items by introducing a deleted state
When deleting items via the http api, they are not deleted anymore but
a new status "Deleted" is set. The collective insights contains now a
count separately for deleted items.
2021-08-14 14:18:03 +02:00
eikek
48d13a35fc Fix search summary to restrict on valid items 2021-08-14 14:09:07 +02:00
mergify[bot]
1d90095707
Merge pull request #1005 from eikek/fix/973-jpn-ocr
Use different japanese train files for tesseract
2021-08-13 14:59:04 +00:00
eikek
326cf1c087 Use different japanese train files for tesseract
They seem to work better as suggested here:
https://github.com/tesseract-ocr/tessdata/issues/119

Refs: #973
2021-08-13 16:46:37 +02:00
eikek
f79aa447b5
Merge pull request #1004 from eikek/dependabot/npm_and_yarn/modules/webapp/path-parse-1.0.7
Bump path-parse from 1.0.6 to 1.0.7 in /modules/webapp
2021-08-13 09:03:54 +02:00