Skip to content

Reversal Repository#10

Merged
hayesZach merged 46 commits intomasterfrom
feature/reversal-repo
Jan 23, 2026
Merged

Reversal Repository#10
hayesZach merged 46 commits intomasterfrom
feature/reversal-repo

Conversation

@hayesZach
Copy link
Copy Markdown
Collaborator

@hayesZach hayesZach commented Jan 14, 2026

Closes CSF-772


Note

Adds a production-ready public repository for reversals with validation, pagination, and soft-deletes.

  • Implement public.ReversalRepository with Create, BulkCreate, Read, Update (via dto.ReversalUpdates), Delete (soft-delete), and List (filters: steam_id, marketplace_slug, cursor, limit)
  • Wire into publicRepository.Reversal() and migrate models.Reversal; create unique index on (steam_id, marketplace_slug) excluding soft-deleted rows
  • Introduce dto.ReversalUpdates (validation, ToFields) and list options; comprehensive unit tests for DTO and repository
  • Simplify dto.Cursor/proto to only include id; update generated cursor.pb.go
  • Enhance models: add soft-delete to Model, export Epoch, refactor ValidateSourceAndRelatedID, add Source.String()
  • Consolidate test DB setup (testutil.NewTestDB) and add util.Ptr helper

Written by Cursor Bugbot for commit 3a0b04f. This will update automatically on new commits. Configure here.

@hayesZach hayesZach self-assigned this Jan 14, 2026
@hayesZach hayesZach added the Enhancement New feature or request label Jan 14, 2026
Base automatically changed from feature/public-repository to master January 16, 2026 01:41
@linear
Copy link
Copy Markdown

linear bot commented Jan 19, 2026

@hayesZach hayesZach marked this pull request as ready for review January 20, 2026 00:23
cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

@hayesZach hayesZach requested a review from Step7750 January 20, 2026 20:18
cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

@hayesZach hayesZach requested a review from Step7750 January 22, 2026 22:38
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

@hayesZach hayesZach merged commit 01a388f into master Jan 23, 2026
2 checks passed
@hayesZach hayesZach deleted the feature/reversal-repo branch January 23, 2026 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants