This repository was archived by the owner on May 29, 2026. It is now read-only.
feat(preferences): generic per-user preferences endpoint#299
Merged
Conversation
Add a generic per-user key/value preferences endpoint backed by Nextcloud IConfig user values. Used by shared @conduction/nextcloud-vue widgets (e.g. CnSupportDialog) to persist small per-user UI flags cross-device without a bespoke endpoint per feature. Keys are sanitised to a safe charset and namespaced under pref_ so callers cannot reach arbitrary IConfig user values.
Contributor
Quality Report — ConductionNL/softwarecatalog @
|
| Check | PHP | Vue | Security | License | Tests |
|---|---|---|---|---|---|
| lint | ❌ | ||||
| phpcs | ❌ | ||||
| phpmd | ❌ | ||||
| psalm | ❌ | ||||
| phpstan | ❌ | ||||
| phpmetrics | ❌ | ||||
| eslint | ✅ | ||||
| stylelint | ✅ | ||||
| composer | ❌ | ❌ | |||
| npm | ✅ | ❌ 2/774 denied | |||
| PHPUnit | ⏭️ | ||||
| Newman | ⏭️ | ||||
| Playwright | ⏭️ |
❌ Denied npm licenses
| Package | Version | License |
|---|---|---|
| pako | 1.0.11 | (MIT AND Zlib) |
| sha.js | 2.4.12 | (MIT AND BSD-3-Clause) |
Quality workflow — 2026-05-25 21:33 UTC
Download the full PDF report from the workflow artifacts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a generic per-user key/value preferences endpoint to softwarecatalog, mirroring the change already merged in pipelinq#553 and decidesk#266.
PreferencesControllerbacked by NextcloudIConfiguser values.GET /api/preferences/{key}andPUT /api/preferences/{key}.@conduction/nextcloud-vuewidgets (e.g.CnSupportDialog's seen flag) to persist small per-user UI flags cross-device.Security
Keys are sanitised to
[a-z0-9-](max 64 chars) and namespaced underpref_, so callers cannot reach arbitraryIConfiguser values. Endpoints require an authenticated user.Checks
php -l: cleanphpcs --standard=phpcs.xml: 0 errors (only advisory @SPEC warnings)