No description
Find a file
Nextcloud bot 412f9effad
fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-09-22 01:38:46 +00:00
.github chore(deps): bump shivammathur/setup-php from 2.35.4 to 2.35.5 2025-09-20 01:17:11 +00:00
.tx [tx-robot] Update transifex configuration 2022-10-01 02:55:26 +00:00
appinfo feat(deps): Add Nextcloud 33 support on master 2025-09-04 18:40:02 +02:00
build-js build: rename build to build-js 2024-10-18 15:39:06 +02:00
css chore: Add SPDX header 2024-07-31 10:32:45 +02:00
js chore(assets): Recompile assets 2025-09-04 17:47:44 +00:00
l10n fix(l10n): Update translations from Transifex 2025-09-22 01:38:46 +00:00
lib chore(codestyle): Apply new coding standard 2025-08-15 15:32:56 +02:00
LICENSES fix: Add missing licenses 2024-07-31 10:32:57 +02:00
src chore: Add SPDX header 2024-07-31 10:32:45 +02:00
tests Update OCP stub 2025-08-15 16:04:50 +02:00
.eslintrc.js chore: Add SPDX header 2024-07-31 10:32:45 +02:00
.gitattributes chore: Add SPDX header 2024-07-31 10:32:45 +02:00
.gitignore chore: Add SPDX header 2024-07-31 10:32:45 +02:00
.l10nignore chore: Add SPDX header 2024-07-31 10:32:45 +02:00
.nextcloudignore chore: Add SPDX header 2024-07-31 10:32:45 +02:00
.php-cs-fixer.dist.php chore: Add SPDX header 2024-07-31 10:32:45 +02:00
AUTHORS.md chore: Add SPDX header 2024-07-31 10:32:45 +02:00
babel.config.js chore: Add SPDX header 2024-07-31 10:32:45 +02:00
CHANGELOG.md chore: Add SPDX header 2024-07-31 10:32:45 +02:00
composer.json chore(dev-deps): Bump nextcloud/ocp package 2024-01-09 22:53:27 -01:00
composer.lock chore(dev-deps): Bump nextcloud/ocp package 2025-09-04 18:49:31 +02:00
krankerl.toml chore: Add SPDX header 2024-07-31 10:32:45 +02:00
LICENSE initial commit 2022-06-30 21:54:06 -01:00
Makefile chore: Add SPDX header 2024-07-31 10:32:45 +02:00
package-lock.json chore(deps-dev): bump @nextcloud/webpack-vue-config from 6.0.1 to 6.3.0 2025-09-04 17:46:45 +00:00
package.json chore(deps-dev): bump @nextcloud/webpack-vue-config from 6.0.1 to 6.3.0 2025-09-04 17:46:45 +00:00
psalm.xml ci(psalm): add missing phpVersion 2025-01-31 15:31:34 -08:00
psalm.xml.license chore: Add SPDX header 2024-07-31 10:32:45 +02:00
README.md docs: Add RESUE compliance status check 2024-07-31 10:32:53 +02:00
REUSE.toml chore: convert reuse to toml file 2024-07-31 10:32:51 +02:00
stylelint.config.js chore: Add SPDX header 2024-07-31 10:32:45 +02:00
webpack.js build: rename build to build-js 2024-10-18 15:39:06 +02:00

RelatedResources

REUSE status

Find all related resources linked to the current displayed item.
Related resources and displayed item can come from multiple providers:

  • Files,
  • Deck,
  • Talk,
  • Calendar.

Based on the currently displayed item from one of the available providers, the app:

  • gets all entities that specific item is shared to,
  • gets all resources from each provider shared to each entity,
  • filters results based on current user access rights,
  • weights each related resource using different rules:
    • in case of duplicated entry, only one will be kept and have its score improved,
    • compare keywords with the one from the displayed item to improve score,
    • improve score on shares generated in the same period of time,
    • compare the owner of the shares
    • apply a diminishing return on the score improvement for each entry in case of duplicate improvement
    • decrease score for not-related shares
    • decrease score for old shares

building the app

$ make

The app will be available in build/artifacts/

ocs

The front-end will use this endpoint to get related resources for an item:

  • providerId can be files, deck, talk, calendar
  • itemId will be the unique Id to the current displayed item
curl "https://cloud.example.net/ocs/v2.php/apps/related_resources/related/<providerId>/<itemId>?format=json" -u 'user:password' -H "OCS-ApiRequest: true" -H "Accept: application/json"

occ

A. OCC command is available to get related resources from the terminal. The command will returns 2 tables displaying:

  • all shares' recipients to an item
  • list of related resources to the item
$ ./occ related:test <userId> <providerId> <itemId>
+---------------------------------+-----------+----------+--------+
| Single Id                       | User Type | User Id  | Source |
+---------------------------------+-----------+----------+--------+
| D2k2QudMQcwRl6s6Jv5XOviWGGmPnhQ | 16        | Test 001 | 16     |
| PSAM2DI1GwmyDydJSKdQxsaGPaNlVDD | 1         | test4    | 1      |
| v3RpXpyExROScJAEZvJLyHRt7Jsfk9J | 1         | test5    | 1      |
| IJCtfbJgIIMP96spf77lHPvLbWu6MZu | 1         | test6    | 1      |
+---------------------------------+-----------+----------+--------+

+-------------+---------+----------------+-------------+-------+-------------------------------------------------+
| Provider Id | Item Id | Title          | Description | Score | Link                                            |
+-------------+---------+----------------+-------------+-------+-------------------------------------------------+
| files       | 207     | /Test 001      | Files       | 3.528 | /index.php/f/207                                |
| files       | 16      | /Templates     | Files       | 1.1   | /index.php/f/16                                 |
| deck        | 3       | ouila          | Deck board  | 1     | http://nc24.local/index.php/apps/deck/#/board/3 |
| talk        | ad3jjo1 | Test Convo 001 | Talk Room   | 1     | http://nc24.local/index.php/call/amn2iar4       |
+-------------+---------+----------------+-------------+-------+-------------------------------------------------+

configuration

  • set the maximum number of result to be returned by the ocs endpoint
./occ config:app:set related_resources result_max --value 7