Skip to content

Proposed retention policy change#1

Open
slobberchops wants to merge 8 commits into
single-instancefrom
rbk/all-temporary
Open

Proposed retention policy change#1
slobberchops wants to merge 8 commits into
single-instancefrom
rbk/all-temporary

Conversation

@slobberchops

Copy link
Copy Markdown
Collaborator

This proposal to enforce a maximum retention period is likely the simplest way to patch the project such that conversations are forgotten after our desired period of time. It makes no modifications to the UI, so the UI becomes somewhat inconsistent.

  • The user is operating in temporary chat mode even if it is not showing it.
  • If a user does use temporary mode, retention periods larger than what the user specifies is ignored.

I gussy'ed it up in a way that it will hopefully be easy for us to find these changes and patch them into future changes. Who knows.

  Fixes:
  - Update create-db-snapshot.sh to use mediasci:env=$stage instead of mediasci:env:$stage=true
  - Update list-db-snapshots.sh filter to match new tag format
  - Ensure consistent tagging between snapshot creation and listing scripts
  Fixes:
  - Update README.mediasci.md to reference correct script name set-secrets.sh
  - Replace non-existent upload-secrets.sh with actual set-secrets.sh script
  Fixes:
  - get_stack_output function now returns empty string when CloudFormation stack doesn't exist
  - Preserves error propagation for permission and network issues
  - Allows scripts to run gracefully when optional stacks are not deployed
  Changes:
  - Clarify that firstrun.sh script downloads secrets from Parameter Store on first boot
  - Document that script writes decrypted secrets to .env file for LibreChat service
  - Add warning that instances must be recreated to change secrets since script only runs once
  Features:
  - Add start-local-librechat.sh script with environment file support
  - Add stop-local-librechat.sh script for stopping local services
  - Support custom environment files via -e flag

  Changes:
  - Update docker-compose.mediasci.yml to use ENV_FILE variable with .env default
  - Add local development documentation section to README.mediasci.md
  - Add new scripts to Development Tools command reference
  Features:
  - Add mediasciChatUtils.js with enforceMaxRetention utility function
  - Set 3-hour maximum retention period for all chats regardless of temporary settings
  - Enforce retention limits in both Message.js and Conversation.js saveMessage/saveConvo functions

  Changes:
  - Import enforceMaxRetention in Message.js and Conversation.js with MEDIASCI markers
  - Apply retention enforcement after existing temporary chat logic
  - All chats now expire within 3 hours maximum via MongoDB TTL indexing
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.

1 participant