Skip to content

[LOCKLITE-129] List only my vaults#82

Merged
vbetsch merged 5 commits intodevelopfrom
api/feat/129-return-only-my-vaults
Aug 8, 2025
Merged

[LOCKLITE-129] List only my vaults#82
vbetsch merged 5 commits intodevelopfrom
api/feat/129-return-only-my-vaults

Conversation

@vbetsch
Copy link
Owner

@vbetsch vbetsch commented Aug 8, 2025

No description provided.

@vbetsch vbetsch requested a review from Copilot August 8, 2025 00:34
@vbetsch vbetsch self-assigned this Aug 8, 2025
@vbetsch vbetsch added the api About endpoints and services label Aug 8, 2025
@notion-workspace
Copy link

@vbetsch vbetsch added the release:fix Bug fixes (for the release changelog) label Aug 8, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements user-specific vault filtering to ensure users can only see their own vaults. The implementation adds a new service to handle current user retrieval and updates the vault repository to filter by user ID.

  • Refactors vault retrieval to filter by current user ID instead of returning all vaults
  • Extracts common current user logic into a reusable service
  • Updates repository method to accept user ID parameter for filtering

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/modules/api/infra/repositories/vaults.repository.ts Changes findAll() to findByUserId() with user filtering
src/modules/api/infra/records/vaults/vault-user-id.record.ts Adds type definition for vault user ID record
src/modules/api/domain/usecases/vaults/get-my-vaults.usecase.ts Updates to use current user service and filtered vault retrieval
src/modules/api/domain/usecases/vaults/create-vault.usecase.ts Refactors to use new current user service instead of inline implementation
src/modules/api/domain/services/current-user.service.ts Creates new service to handle current user retrieval logic

@vbetsch vbetsch merged commit 48a6f24 into develop Aug 8, 2025
4 checks passed
@vbetsch vbetsch deleted the api/feat/129-return-only-my-vaults branch August 8, 2025 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api About endpoints and services release:fix Bug fixes (for the release changelog)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants