Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow users to store their notification preferences #10669

Closed
kobergj opened this issue Nov 26, 2024 · 2 comments
Closed

Allow users to store their notification preferences #10669

kobergj opened this issue Nov 26, 2024 · 2 comments
Assignees
Labels
Priority:p3-medium Normal priority

Comments

@kobergj
Copy link
Collaborator

kobergj commented Nov 26, 2024

Extend user settings so that a user can store their notifications preferences like https://github.com/owncloud/enterprise/issues/6715

New settings:

  • List of available events. Needs "name", "description" (translated) "avaibleInApp", "availableInMail" (bool) and "sendInApp", "sendInMail" (bool) fields (names tbd)
  • Mail cycles replaces disable_email setting (can be "never", "instant", "weekly", "daily")
@kobergj kobergj added the Priority:p3-medium Normal priority label Nov 26, 2024
@kobergj kobergj moved this from Qualification to In progress in Infinite Scale Team Board Nov 26, 2024
@2403905
Copy link
Contributor

2403905 commented Nov 28, 2024

Extend user settings so that a user can store their notifications preferences like >https://github.com/owncloud/enterprise/issues/6715

New settings:

List of available events. Needs "name", "description" (translated) "avaibleInApp", "availableInMail" (bool) and >"sendInApp", "sendInMail" (bool) fields (names tbd)
Mail cycles replaces disable_email setting (can be "never", "instant", "weekly", "daily")

@kobergj We should discuss the requirements because they do not match Acceptance Criteria from the https://github.com/owncloud/enterprise/issues/6715

@2403905
Copy link
Contributor

2403905 commented Dec 2, 2024

The values-save reqest

curl -XPOST --location 'https://localhost:9200/api/v0/settings/values-save'  -vk -uadmin:admin \
--header 'Content-Type: application/json' \
--data '{
    "value": {
        "id": "4e454222-4880-4899-8418-315f8aa284d1",
        "accountUuid": "me",
        "bundleId": "2a506de7-99bd-4f0d-994e-c38e72c28fd9",
        "settingId": "872d8ef6-6f2a-42ab-af7d-f53cc81d7046",
        "resource": {
            "type": "TYPE_USER"
        },
        "collectionValue": {
            "values": [
                {
                    "key": "in-app",
                    "boolValue": false
                },
                {
                    "key": "mail",
                    "boolValue": false
                }
            ]
        }
    }
}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:p3-medium Normal priority
Projects
Status: Done
Development

No branches or pull requests

2 participants