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

The event options added to the config #10706

Merged
merged 2 commits into from
Dec 19, 2024
Merged

Conversation

2403905
Copy link
Contributor

@2403905 2403905 commented Dec 2, 2024

Description

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
                }
            ]
        }
    }
}'

https://localhost:9200/api/v0/settings/bundles-list

{
  "bundles": [
    {
      "id": "2a506de7-99bd-4f0d-994e-c38e72c28fd9",
      "name": "profile",
      "type": "TYPE_DEFAULT",
      "extension": "ocis-accounts",
      "displayName": "Profile",
      "settings": [
       ......

        {
          "id": "08dec2fe-3f97-42a9-9d1b-500855e92f25",
          "name": "email-sending-interval-options",
          "displayName": "Email Notifications options",
          "description": "Email notifications options",
          "singleChoiceValue": {
            "options": [
              {
                "value": {
                  "stringValue": "daily"
                },
                "displayValue": "Daily"
              },
              {
                "value": {
                  "stringValue": "weekly"
                },
                "displayValue": "Weekly"
              },
              {
                "value": {
                  "stringValue": "instant"
                },
                "displayValue": "Instant"
              },
              {
                "value": {
                  "stringValue": "never"
                },
                "displayValue": "Never"
              }
            ]
          },
          "resource": {
            "type": "TYPE_USER"
          }
        },
        {
          "id": "872d8ef6-6f2a-42ab-af7d-f53cc81d7046",
          "name": "event-share-created-options",
          "displayName": "Share created",
          "description": "Send In-App",
          "multiChoiceCollectionValue": {
            "options": [
              {
                "value": {
                  "boolValue": {
                    "default": true
                  }
                },
                "key": "in-app",
                "displayValue": "In-App"
              },
              {
                "value": {
                  "boolValue": {
                    "default": true
                  }
                },
                "key": "mail",
                "displayValue": "Mail"
              }
            ]
          },
          "resource": {
            "type": "TYPE_USER"
          }
        },
        {
          "id": "d7484394-8321-4c84-9677-741ba71e1f80",
          "name": "event-share-removed-options",
          "displayName": "Share removed",
          "description": "Send In-App",
          "multiChoiceCollectionValue": {
            "options": [
              {
                "value": {
                  "boolValue": {
                    "default": true
                  }
                },
                "key": "in-app",
                "displayValue": "In-App"
              },
              {
                "value": {
                  "boolValue": {}
                },
                "key": "mail",
                "attribute": "disabled",
                "displayValue": "Mail"
              }
            ]
          },
          "resource": {
            "type": "TYPE_USER"
          }
        },
        {
          "id": "e1aa0b7c-1b0f-4072-9325-c643c89fee4e",
          "name": "event-share-expired-options",
          "displayName": "Share expired",
          "description": "Send In-App",
          "multiChoiceCollectionValue": {
            "options": [
              {
                "value": {
                  "boolValue": {
                    "default": true
                  }
                },
                "key": "in-app",
                "displayValue": "In-App"
              },
              {
                "value": {
                  "boolValue": {
                    "default": true
                  }
                },
                "key": "mail",
                "displayValue": "Mail"
              }
            ]
          },
          "resource": {
            "type": "TYPE_USER"
          }
        },
        {
          "id": "694d5ee1-a41c-448c-8d14-396b95d2a918",
          "name": "event-space-shared-options",
          "displayName": "Space shared",
          "description": "Send In-App",
          "multiChoiceCollectionValue": {
            "options": [
              {
                "value": {
                  "boolValue": {
                    "default": true
                  }
                },
                "key": "in-app",
                "displayValue": "In-App"
              },
              {
                "value": {
                  "boolValue": {
                    "default": true
                  }
                },
                "key": "mail",
                "displayValue": "Mail"
              }
            ]
          },
          "resource": {
            "type": "TYPE_USER"
          }
        },
        {
          "id": "26c20e0e-98df-4483-8a77-759b3a766af0",
          "name": "event-space-unshared-options",
          "displayName": "Space unshared",
          "description": "Send In-App",
          "multiChoiceCollectionValue": {
            "options": [
              {
                "value": {
                  "boolValue": {
                    "default": true
                  }
                },
                "key": "in-app",
                "displayValue": "In-App"
              },
              {
                "value": {
                  "boolValue": {
                    "default": true
                  }
                },
                "key": "mail",
                "displayValue": "Mail"
              }
            ]
          },
          "resource": {
            "type": "TYPE_USER"
          }
        },
        {
          "id": "7275921e-b737-4074-ba91-3c2983be3edd",
          "name": "event-space-membership-expired-options",
          "displayName": "Space membership expired",
          "description": "Send In-App",
          "multiChoiceCollectionValue": {
            "options": [
              {
                "value": {
                  "boolValue": {
                    "default": true
                  }
                },
                "key": "in-app",
                "displayValue": "In-App"
              },
              {
                "value": {
                  "boolValue": {
                    "default": true
                  }
                },
                "key": "mail",
                "displayValue": "Mail"
              }
            ]
          },
          "resource": {
            "type": "TYPE_USER"
          }
        },
        {
          "id": "eb5c716e-03be-42c6-9ed1-1105d24e109f",
          "name": "event-space-disabled-options",
          "displayName": "Space disabled",
          "description": "Send In-App",
          "multiChoiceCollectionValue": {
            "options": [
              {
                "value": {
                  "boolValue": {
                    "default": true
                  }
                },
                "key": "in-app",
                "displayValue": "In-App"
              },
              {
                "value": {
                  "boolValue": {}
                },
                "key": "mail",
                "attribute": "disabled",
                "displayValue": "Mail"
              }
            ]
          },
          "resource": {
            "type": "TYPE_USER"
          }
        },
        {
          "id": "094ceca9-5a00-40ba-bb1a-bbc7bccd39ee",
          "name": "event-space-deleted-options",
          "displayName": "Space deleted",
          "description": "Send In-App",
          "multiChoiceCollectionValue": {
            "options": [
              {
                "value": {
                  "boolValue": {
                    "default": true
                  }
                },
                "key": "in-app",
                "displayValue": "In-App"
              },
              {
                "value": {
                  "boolValue": {}
                },
                "key": "mail",
                "attribute": "disabled",
                "displayValue": "Mail"
              }
            ]
          },
          "resource": {
            "type": "TYPE_USER"
          }
        },
        {
          "id": "fe0a3011-d886-49c8-b797-33d02fa426ef",
          "name": "event-postprocessing-step-finished-options",
          "displayName": "Postprocessing Step Finished",
          "description": "Postprocessing Step Finished",
          "multiChoiceCollectionValue": {
            "options": [
              {
                "value": {
                  "boolValue": {
                    "default": true
                  }
                },
                "key": "in-app",
                "displayValue": "In-App"
              },
              {
                "value": {
                  "boolValue": {}
                },
                "key": "mail",
                "attribute": "disabled",
                "displayValue": "Mail"
              }
            ]
          },
          "resource": {
            "type": "TYPE_USER"
          }
        },
        {
          "id": "b441ffb1-f5ee-4733-a08f-48d03f6e7f22",
          "name": "event-Science-mesh-invite-token-generated-options",
          "displayName": "Science Mesh Invite Token Generated",
          "description": "Science Mesh Invite Token Generated",
          "multiChoiceCollectionValue": {
            "options": [
              {
                "value": {
                  "boolValue": {
                    "default": true
                  }
                },
                "key": "in-app",
                "displayValue": "In-App"
              },
              {
                "value": {
                  "boolValue": {
                    "default": true
                  }
                },
                "key": "mail",
                "displayValue": "Mail"
              }
            ]
          },
          "resource": {
            "type": "TYPE_USER"
          }
        }
      ],
      "resource": {
        "type": "TYPE_SYSTEM"
      }
    }
  ]
}

Related Issue

Motivation and Context

How Has This Been Tested?

  • test environment:
  • test case 1:
  • test case 2:
  • ...

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

@2403905 2403905 requested a review from kulmann as a code owner December 2, 2024 17:35
Copy link

update-docs bot commented Dec 2, 2024

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@2403905
Copy link
Contributor Author

2403905 commented Dec 3, 2024

@micbar Can I merge these changes before release?

@2403905 2403905 force-pushed the issue-10669 branch 2 times, most recently from c457506 to 783ed78 Compare December 17, 2024 08:31
@2403905 2403905 changed the title [Don't merge] the event options added to the config The event options added to the config Dec 17, 2024
Copy link
Collaborator

@kobergj kobergj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some nitpicks

services/settings/pkg/service/v0/servicedecorator.go Outdated Show resolved Hide resolved
services/settings/pkg/store/defaults/defaults.go Outdated Show resolved Hide resolved
@2403905 2403905 requested a review from kobergj December 18, 2024 15:10
Copy link
Collaborator

@kobergj kobergj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻

@2403905 2403905 merged commit 38c9b6a into owncloud:master Dec 19, 2024
4 checks passed
ownclouders pushed a commit that referenced this pull request Dec 19, 2024
The event options added to the config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants