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

feat(asset): implement file system repository and zip decompressor #66

Open
wants to merge 60 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
5f1b183
feat(asset): implement file system repository and zip decompressor
kasugamirai Dec 21, 2024
7ea0393
chore: add .idea to .gitignore
kasugamirai Dec 21, 2024
db64520
feat(asset): enhance asset management with status tracking and zip ex…
kasugamirai Dec 27, 2024
11e654a
feat(asset): implement CRUD operations for asset management
kasugamirai Dec 27, 2024
8ad88c8
refactor(asset): restructure repository interfaces for improved asset…
kasugamirai Dec 27, 2024
61b504b
feat(asset): enhance zip decompression with improved error handling a…
kasugamirai Dec 27, 2024
c3743ed
feat(asset): refactor ZipDecompressor for improved async processing a…
kasugamirai Dec 27, 2024
bb09b06
refactor(asset): remove legacy GCS repository implementation
kasugamirai Dec 27, 2024
60b401e
refactor(asset): rename Repository to GCS and update methods for impr…
kasugamirai Jan 3, 2025
9d62ead
refactor(asset): remove GCS repository implementation to streamline a…
kasugamirai Jan 3, 2025
8faee9e
refactor(asset): remove repository interface and update import paths
kasugamirai Jan 3, 2025
c4b9036
refactor(asset): rename GCSClient to Client and update methods for co…
kasugamirai Jan 3, 2025
ce054b9
refactor(asset): remove decompressor and GCS implementations, update …
kasugamirai Jan 5, 2025
375edef
refactor(asset): enhance ZipDecompressor with new methods and improve…
kasugamirai Jan 5, 2025
2412515
feat(asset): implement asynchronous and direct content compression in…
kasugamirai Jan 5, 2025
1d356a9
refactor(asset): update NewZipDecompressor return type for improved i…
kasugamirai Jan 5, 2025
c3717b2
refactor(asset): remove ZipDecompressor implementation to streamline …
kasugamirai Jan 5, 2025
3957926
refactor(asset): simplify ZipDecompressor and enhance decompression f…
kasugamirai Jan 5, 2025
0645e35
refactor(asset): enhance CompressWithContent for improved concurrency…
kasugamirai Jan 5, 2025
c0b0f15
feat(asset): enhance GCS client with new asset management methods
kasugamirai Jan 5, 2025
15af103
feat(asset): add projectID and workspaceID to Asset struct
kasugamirai Jan 6, 2025
7824b48
refactor(gcs): remove redundant name assignment in CRUD tests
kasugamirai Jan 6, 2025
9a4f777
refactor(asset): improve error handling and logging in ZipDecompresso…
kasugamirai Jan 6, 2025
129d3f0
refactor(asset): remove deprecated repository and asset types to stre…
kasugamirai Jan 6, 2025
667821d
refactor(asset): comment out service methods and remove utils for cod…
kasugamirai Jan 6, 2025
afeaaa3
refactor(gcs): remove GCS client test file to streamline codebase
kasugamirai Jan 6, 2025
acbcaad
refactor(asset): remove asset service implementation to streamline co…
kasugamirai Jan 6, 2025
3f2bc9c
feat(asset): implement asset management queries and mutations
kasugamirai Jan 6, 2025
fd1e4b6
feat(asset): implement asset movement and deletion functionality
kasugamirai Jan 6, 2025
6e99c4a
feat(asset): enhance asset management with new fields and methods
kasugamirai Jan 7, 2025
1248cc6
feat(asset): add decompression and compression methods to asset service
kasugamirai Jan 7, 2025
5375f2f
feat(asset): refactor compression to use channels for asynchronous pr…
kasugamirai Jan 7, 2025
460e01f
refactor(asset): improve zip decompression concurrency and error hand…
kasugamirai Jan 7, 2025
7352cb9
feat(asset): enhance asset event handling with new event types and me…
kasugamirai Jan 7, 2025
4078a4c
refactor(asset): remove pubsub implementation to streamline codebase
kasugamirai Jan 7, 2025
82d9d8e
feat(asset): integrate pubsub functionality for asset event publishing
kasugamirai Jan 7, 2025
4185ab4
feat(asset): reintroduce pubsub functionality for asset event handling
kasugamirai Jan 7, 2025
f8f8301
feat(asset): enhance pubsub functionality with subscription and event…
kasugamirai Jan 7, 2025
17bae14
fix(account): improve error handling in user credential retrieval and…
kasugamirai Jan 7, 2025
29326af
feat(account): add test for asset
kasugamirai Jan 9, 2025
abbb723
refactor(asset): streamline asset event handling and improve error ma…
kasugamirai Jan 9, 2025
4d828d5
feat(asset): add deleteAssetsInGroup mutation for bulk asset deletion
kasugamirai Jan 9, 2025
1428f87
refactor(asset): rename Builder to AssetBuilder and update related tests
kasugamirai Jan 9, 2025
7af2ba8
chore(asset): remove group service implementation and related tests
kasugamirai Jan 9, 2025
dd556f2
feat(asset): add SetSize method and refactor resolver to use asset us…
kasugamirai Jan 9, 2025
6d890f9
refactor(asset): remove unused asset usecase and interactor implement…
kasugamirai Jan 12, 2025
8b3514b
refactor(asset): update import path for asset usecase in resolver
kasugamirai Jan 12, 2025
9798ad9
refactor(asset): migrate ID types to new id package and clean up doma…
kasugamirai Jan 12, 2025
afda58a
refactor(asset): remove deprecated domain files and update references…
kasugamirai Jan 13, 2025
39b0572
feat(asset): implement validation for Asset and Group entities
kasugamirai Jan 13, 2025
4abf753
feat(asset): enhance asset usecase and resolver error handling
kasugamirai Jan 13, 2025
ae39bf0
fix(asset): improve error handling in builders and tests
kasugamirai Jan 13, 2025
44df313
refactor(asset): remove unused repository interface and clean up vali…
kasugamirai Jan 13, 2025
ede3ff9
refactor(asset): streamline CreatedAt methods in builders
kasugamirai Jan 13, 2025
c545a1a
refactor(asset): remove event package and clean up builder error hand…
kasugamirai Jan 13, 2025
ebcfc72
Revert
kasugamirai Jan 13, 2025
b88d638
refactor(asset): simplify loop syntax in DecompressZipContent method
kasugamirai Jan 13, 2025
ae883ae
refactor(asset): improve asset and group entity handling and error ma…
kasugamirai Jan 21, 2025
f06a63e
refactor(asset): update ID methods and improve error handling in deco…
kasugamirai Jan 26, 2025
9124c84
refactor(asset): remove unused NewValidationResult function
kasugamirai Jan 26, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor(asset): remove event package and clean up builder error hand…
…ling

- Deleted the entire event package, including event definitions, interfaces, and tests, to streamline the codebase and remove unused components.
- Updated GroupBuilder's Name and Policy methods to remove comments about error handling, simplifying the code and improving clarity.
- This refactor enhances maintainability by eliminating unnecessary complexity and focusing on the core functionality of the builders.
kasugamirai committed Jan 21, 2025
commit c545a1a4f6c1fe9e534d052931ceb81f2e31a40f
4 changes: 0 additions & 4 deletions asset/domain/builder/group.go
Original file line number Diff line number Diff line change
@@ -49,17 +49,13 @@ func (b *GroupBuilder) NewID() *GroupBuilder {

func (b *GroupBuilder) Name(name string) *GroupBuilder {
if err := b.g.UpdateName(name); err != nil {
// Since this is a builder pattern, we'll ignore the error here
// and let it be caught during Build()
return b
}
return b
}

func (b *GroupBuilder) Policy(policy string) *GroupBuilder {
if err := b.g.UpdatePolicy(policy); err != nil {
// Since this is a builder pattern, we'll ignore the error here
// and let it be caught during Build()
return b
}
return b
113 changes: 0 additions & 113 deletions asset/domain/event/event.go

This file was deleted.

25 changes: 0 additions & 25 deletions asset/domain/event/publisher.go

This file was deleted.

55 changes: 0 additions & 55 deletions asset/domain/event/store.go

This file was deleted.

72 changes: 0 additions & 72 deletions asset/domain/event/tests/event_test.go

This file was deleted.

41 changes: 0 additions & 41 deletions asset/domain/service/service.go

This file was deleted.

3 changes: 3 additions & 0 deletions asset/infrastructure/memory/decompress_job.go
Original file line number Diff line number Diff line change
@@ -4,10 +4,13 @@ import (
"context"
"sync"

"github.com/reearth/reearthx/asset/repository"
assetusecase "github.com/reearth/reearthx/asset/usecase"
"github.com/reearth/reearthx/rerror"
)

var _ repository.DecompressJobRepository = (*DecompressJobRepository)(nil)

// DecompressJobRepository is an in-memory implementation of repository.DecompressJobRepository
type DecompressJobRepository struct {
mu sync.RWMutex