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

Deleting chats from Bürokratt #855

Open
13 tasks
rasmusei opened this issue Sep 6, 2024 · 1 comment · May be fixed by #929
Open
13 tasks

Deleting chats from Bürokratt #855

rasmusei opened this issue Sep 6, 2024 · 1 comment · May be fixed by #929
Assignees
Labels

Comments

@rasmusei
Copy link
Contributor

rasmusei commented Sep 6, 2024

AS AN Administrative User
I WANT TO be able to set up a automatic deletation for chats
SO THAT Bürokratt does not keep chats longer than necessary and according to GDPR

Acceptance Criteria

  • New submenu item is created under "Haldus" and is called "Sõnumite kustutamine"
  • There are two categories of chats for deletion: 1) authenticated and 2) not authenticated
  • Possibility to set up two different deletion day counts regarding the selection of the chat type described in previous AC
  • Possibility to set a single deletion day countdown that applies to both chat types (authenticated and not authenticated)
  • Deletion day countdown criteria is max 4 digits, and if else, gives error message "Päevade maksimaalne valik saab olla kuni 9999".
  • Administrator can select exact automatic time of day for deletion (for example: 1AM)
  • An option is available to view chats that will be deleted in a specified number of working days. The number of working days can be configured manually by choosing dates between period or selecting preadded selection: 1 päev (1 day), 7 päeva (7 days), 31 päeva (31 days) and 90 päeva (90 days)
  • Total amount of chats that will be generated, as selected in previous AC, will be shown as a total number so admin can choose if generating CSV is need or not

Figma: https://www.figma.com/design/JYnmhsKixyUSCSUXXfwTAA/B%C3%BCrokratt?node-id=4662-24399&node-type=frame&t=gmAFIZYSrWBebjJ9-0

Analytics data retention:

DSL

  • Save deletion-related settings in a chatbot's database table called configuration
  • Cronjob to fetch all chats that need to be deleted based on Backoffice's settings
  • REST service to backup chat history within defined criteria
  • Update existing chats by emptying their non-meta-data

Note

We will use this approach so that the current solution for the Analytics Module would remain intact
Will refactor it in later stages

@rasmusei
Copy link
Contributor Author

@turnerrainer please take a look at this task

@ExiRain ExiRain linked a pull request Oct 18, 2024 that will close this issue
@turnerrainer turnerrainer linked a pull request Oct 22, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In Progress
Development

Successfully merging a pull request may close this issue.

3 participants