Conversation
3 tasks
Add github.com/klauspost/compress v1.17.9 to go.mod to include compression utilities for the project.
Introduce NewFromCliConfig and TicketIDFromKey in pkg/s3client to centralize MinIO client creation and ticket-id parsing, removing repeated minio setup across commands. Add pkg/utils/transcripts.go with Decode to unify v1->v2 transcript conversion and replace duplicated decoding logic in cleanuser, exportguild, exportuser, and deletetranscript. Remove now-unused exportuser cache/userdata helpers and update cache usage to the context-aware GetUser call. Update imports and call sites to use the new helpers and simplify CLI config parsing. These changes reduce duplication and make S3/decoding behavior consistent across tools.
Add a new .env.example containing placeholder environment variables (ARCHIVER_ADDR, S3_ENDPOINT, S3_ACCESS, S3_SECRET, S3_BUCKET, PRODUCTION_MODE) and delete the now-redundant envvars.md. Consolidates environment variable documentation into a single example file.
Whitespace-only cleanup in pkg/model: removed extra blank lines in pkg/model/v1/attachment.go and added the missing newline at EOF in pkg/model/version.go. No functional changes; purely formatting to ensure consistent file endings and style.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
For: TicketsBot-cloud/gdl#12
Type of Change
Testing
Simply just test everything