pnpm add @fizzbuds/ddd-toolkit mongodb@5
An example of use with Nest can be found on fizzbuds/nest-ddd-toolkit repo.
Home Page: https://fizzbuds.github.io/ddd-toolkit/
License: Apache License 2.0
pnpm add @fizzbuds/ddd-toolkit mongodb@5
An example of use with Nest can be found on fizzbuds/nest-ddd-toolkit repo.
interface IAggregateRepo<A> {
getById: (id: string) => Promise<WithVersion<A> | null>;
save: (aggregate: A) => Promise<void>;
getByIdOrThrow: (id: string) => Promise<WithVersion<A>>;
}
If there is a failure for a unique index not related to id field, error and message is masqueraded
Solution
we might check the filed of the unique index violation
For sure in command-bus might be considered whether a command is idempotent
==> Uploader SHASUM verified (e3ea28a069fe174eb99ac2ffb523bfb55d5d29a7cfd93ef48cde12e9b552b492 codecov)
==> Running version v0.4.9
==> Running git config --global --add safe.directory /home/runner/work/ddd-toolkit/ddd-toolkit
/usr/bin/git config --global --add safe.directory /home/runner/work/ddd-toolkit/ddd-toolkit
==> Running command '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov create-commit'
/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov create-commit --git-service github
info - 20[24](https://github.com/fizzbuds/ddd-toolkit/actions/runs/8460140466/job/23177777444#step:9:25)-03-27 23:46:47,923 -- ci service found: github-actions
warning - 2024-03-27 23:46:47,931 -- No config file could be found. Ignoring config.
info - 2024-03-27 23:46:48,005 -- Process Commit creating complete
error - 2024-03-27 23:46:48,005 -- Commit creating failed: {"detail":"You do not have permission to perform this action."}
==> Running command '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov create-report'
/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov create-report --git-service github
info - 2024-03-27 23:46:48,706 -- ci service found: github-actions
warning - 2024-03-27 23:46:48,713 -- No config file could be found. Ignoring config.
info - 2024-03-27 23:46:48,813 -- Process Report creating complete
error - 2024-03-27 23:46:48,813 -- Report creating failed: {"detail":"You do not have permission to perform this action."}
==> Running command '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov do-upload'
/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov do-upload --git-service github
info - 2024-03-27 23:46:49,520 -- ci service found: github-actions
warning - 2024-03-27 23:46:49,528 -- No config file could be found. Ignoring config.
warning - 2024-03-27 23:46:49,529 -- xcrun is not installed or can't be found.
warning - 2024-03-27 23:46:49,812 -- No gcov data found.
warning - 2024-03-27 23:46:49,812 -- coverage.py is not installed or can't be found.
info - 2024-03-27 23:46:49,824 -- Found 3 coverage files to upload
info - 2024-03-27 23:46:49,8[25](https://github.com/fizzbuds/ddd-toolkit/actions/runs/8460140466/job/23177777444#step:9:26) -- > /home/runner/work/ddd-toolkit/ddd-toolkit/packages/ddd-tookit/coverage/clover.xml
info - 2024-03-27 23:46:49,825 -- > /home/runner/work/ddd-toolkit/ddd-toolkit/packages/ddd-tookit/coverage/lcov.info
info - 2024-03-[27](https://github.com/fizzbuds/ddd-toolkit/actions/runs/8460140466/job/23177777444#step:9:28) 23:46:49,825 -- > /home/runner/work/ddd-toolkit/ddd-toolkit/packages/ddd-tookit/coverage/coverage-final.json
info - 2024-03-27 23:46:49,898 -- Process Upload complete
error - 2024-03-27 23:46:49,899 -- Upload failed: {"detail":"You do not have permission to perform this action."}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.