rokwire / surveys-building-block

Building Block that manages surveys in the Rokwire Platform.
Apache License 2.0
0 stars 1 forks source link

[FEATURE] Integrate Groups BB #13

Open shurwit opened 1 year ago

shurwit commented 1 year ago

Is your feature request related to a problem? Please describe. We would like to be able to associate Surveys with Groups BB groups or specific users.

Describe the solution you'd like Group members should be able to create a survey and publish it to one or more Groups BB groups, or to a specific list of users. When a new survey is created within a group or with the user list specified, we should send a notification to those users. We should augment our /api/surveys API to allow users to filter by group ID. When granting access to a group survey, we need to check that the user is a member of the associated group to view or respond to the survey, or that they are an admin/original creator to update or delete it. When a user submits a response, we should send a notification to the survey creator if sensitive=false. Admins and the original creator should also be able to view any responses submitted to the survey if sensitive=false.

Additional context See the Polls BB for an example of this type of integration: https://github.com/rokwire/polls-building-block/blob/5171e80109bdfe60211771ad1440a1018464bbf7/core/services.go#L36