nextcloud / nextcloud/deck

API return List<dynamic> instead Settings object

Open
#6,379 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug feature: api
Dominant language
JavaScript
Stars
1.4k
Forks
354
Avg merge
1d 10h
Merged PRs (30d)
43

Description

Describe the bug
Using the API I expect the a settings object like this:

  "settings": {
            "notify-due": "off",
            "calendar": true
        }

but what I get is this:

  "settings": []

full response:

╔╣ Response ║ GET ║ Status: 200 OK  ║ Time: 1434 ms
║  https:/my-server/apps/deck/api/v1.1/boards
╚══════════════════════════════════════════════════════════════════════════════════════════╝
╔ Body
║
║    [
║        {
║             "id": 14,
║             "title": "Packages",
║             "owner": {primaryKey: admin, uid: admin, displayname: admin, type: 0},
║             "color": "b9c8c",
║             "archived": false,
║             "labels": []
║             "acl": []
║             "permissions": {
║                 "PERMISSION_READ": true,
║                 "PERMISSION_EDIT": true,
║                 "PERMISSION_MANAGE": true,
║                 "PERMISSION_SHARE": true
║            }
║             "users": []
║             "shared": 0,
║             "stacks": []
║             "activeSessions": []
║             "deletedAt": 1727950189,
║             "lastModified": 1727950189,
║             "settings": []
║             "ETag": "8cc6b3682d5244a558339f31429fcf52"
║        },
║        {
║             "id": 19,
║             "title": "Toni's Tasks",
║             "owner": {primaryKey: admin, uid: admin, displayname: admin, type: 0},
║             "color": "f44b97",
║             "archived": false,
║             "labels": []
║             "acl": [
║                {
║                     "id": 7,
║                     "participant": {primaryKey: Toni, uid: Toni, displayname: Toni, type: 1},
║                     "type": 1,
║                     "boardId": 19,
║                     "permissionEdit": true,
║                     "permissionShare": false,
║                     "permissionManage": false,
║                     "owner": false
║                }
║             ],
║             "permissions": {
║                 "PERMISSION_READ": true,
║                 "PERMISSION_EDIT": true,
║                 "PERMISSION_MANAGE": true,
║                 "PERMISSION_SHARE": true
║            }
║             "users": []
║             "shared": 0,
║             "stacks": []
║             "activeSessions": []
║             "deletedAt": 0,
║             "lastModified": 1727983933,
║             "settings": []
║             "ETag": "dfb745d16bad3cdcfe880767e75fe237"
║        }
║    ]
║
╚══════════════════════════════════════════════════════════════════════════════════════════╝

Deck version: 1.13.2
Nextcloud version: 29.0.5

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the GET /apps/deck/api/v1.1/boards response against the reported Deck 1.13.2 and Nextcloud 29.0.5 versions, then trace the API entry point that serializes each board's settings field. Done means the endpoint returns the expected settings object rather than an empty list, with regression coverage if the existing API tests are found.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.