Skip to main content

Questions tagged [repository]

A repository provides a storage mechanism for digital products. May refer to [version-control] like [git] or [svn]. An application specific tag should be used with this tag in order to identify the specific repository management interface that is being used unless the question is general in nature. See also: [repository-pattern]

Filter by
Sorted by
Tagged with
0 votes
2 answers
177 views

I'm working on a TypeScript application designed with DDD and using layered architecture. My infra layer has a repository that fetches a complex, nested DTO. My current implementation maps this DTO ...
Bernardo Benini Fantin's user avatar
5 votes
3 answers
667 views

I am having a really hard time deciding where to instantiate my entities in the refactoring I am making. The project was built with DDD and it's layered: it has the infra, domain and app layers. In ...
Bernardo Benini Fantin's user avatar
2 votes
4 answers
347 views

Suppose I have a repository for an application app_a. To build app_a, one needs to compile some sources (e.g. file1 and file2, never mind the file suffixes), but - it is also necessary to: Apply some ...
einpoklum's user avatar
  • 2,808
5 votes
2 answers
1k views

I'm trying to get hands-on experience with Uncle Bob's Clean Architecture in Go, but I'm running into some issues. Also, I'm not yet familiar with all of Go's idioms. For testing purposes, I'm ...
Crite's user avatar
  • 61
1 vote
2 answers
417 views

Let's say I have the following maven projects. UtilsLibrary -- A maven project containing utils. AppA -- A maven project that depends on UtilsLibrary. AppB -- A maven project that depends on ...
davidalayachew's user avatar
0 votes
1 answer
393 views

We are trying the Domain Driven Development (DDD) while working on a project. We've got a Product aggregate. We've got a ProductRepository to load/save Products. We've also got a Timeline aggregate, ...
user2190492's user avatar
0 votes
1 answer
317 views

I am trying to apply Robert Martin's Clean Architecture on my .NET project. In one of chapters about boundary, it talks about that database interface should reside in business logic component rather ...
Afshar's user avatar
  • 223
0 votes
2 answers
235 views

My company's project uses an open source library, of which I have made a fork for some customizations. My idea is to clone this fork into my solution and to keep pushing my changes into it, as well as ...
Frank Z.'s user avatar
1 vote
1 answer
870 views

We have multiple developers contributing to a project, using Git as our repository. We have a QA branch that matches our QA environment and a master branch that matches production. Features can be in ...
Lisa S's user avatar
  • 21
1 vote
2 answers
211 views

I have a custom repository for each entity/module (I'm working with NestJS). I know that this is a lot of repeated code and I may refactor it in order to use a generic repository later, but currently ...
Thiago Dias's user avatar
0 votes
2 answers
228 views

this is a robotics team with some questions. Here's our current setup, using GitLab: Currently, we have a main branch as well as a separate branch for each of our programmers. When they want to start ...
1082 X's user avatar
  • 11
0 votes
1 answer
101 views

My application follows Clean Architecture wherein the Application Layer wraps the Domain Layer. I try to adhere to DDD more-so as a "guiding light" than a strict rulebook. Within the Domain ...
John Hall's user avatar
  • 163
3 votes
3 answers
2k views

From many articles and answers on DDD Repository pattern, I got the feeling that a Repository should only CURD an Entity (Aggregate Root) as a whole. Following this convention, we always need to query ...
zwcloud's user avatar
  • 131
-1 votes
1 answer
537 views

I have a repository with various tools/scripts written with ts-node and used in many projects. Initially, it contained several automation/analytics scripts, one package.json file at the root, and one ...
Dem0n13's user avatar
  • 99
3 votes
1 answer
307 views

I have an application with dependency injection that consumes a REST API. The API calls are abstracted into entity-specific repositories. Some of the repositories are: HttpNotebookRepository, ...
Amal K's user avatar
  • 111
1 vote
4 answers
381 views

This has erupted from quite a turbulent meeting between two senior developers, a lead developer and an engineering lead, and after 90mins reached no resolution. We create Spring Boot Java services ...
Crazy Dino's user avatar
3 votes
2 answers
2k views

I'm building a web application using Laravel. I use the repository pattern as my data layer. Imagine there's some entity like Product and a product can be assigned to a ProductCategory. The Product ...
user2190492's user avatar
1 vote
3 answers
487 views

I see a pattern where the get method from a repository returns an Iterable, even if the list is composed already: def get() -> Iterable[type]: my_list = [list] for x in my_list: yield x I'...
Claudiu Creanga's user avatar
-1 votes
1 answer
2k views

I started my first job as a dev about 3 months ago, at a very small company where I'm (currently) the only developer, and I've been setting them up with git. Their codebase is a bit all over the place,...
confused_nomad's user avatar
3 votes
1 answer
526 views

In domain driven design A repository is a collection like "interface" that hides data source access. It furnish add, remove and retrieval method just like a collection would. It does it ...
Ced's user avatar
  • 609
5 votes
3 answers
1k views

Repositories in ddd should give the illusion of an in memory collection. and A Repository is essentially a facade for persistence that uses Collection style semantics (Add, Update, Remove) to supply ...
Ced's user avatar
  • 609
-4 votes
2 answers
925 views

I currently have a CI workflow for tests that use data present in my repository. However, since this data is very large, I would like to move it to another remote repo and somehow give my CI tests ...
Aditya Tomar's user avatar
3 votes
1 answer
793 views

My friend is building a small open-source project with a few convenience functions. He'd like to release both JS, PHP and Python versions of the package to npm, packagist and pypi. The main part of ...
Anna's user avatar
  • 157
0 votes
0 answers
280 views

I currently have a generic Azure repository AzureRepository<TEntity> store internally a list of table transaction actions like so. private readonly IList<TableTransactionAction> ...
Reap's user avatar
  • 183
1 vote
3 answers
988 views

TL; DR Where/When to check data format in MVVM + Repository Pattern is the best practice? Any suggestion or theory? The Scene Our team is working on an Android Project. We have a MVVM+repo structure: ...
Samuel T. Chou's user avatar
0 votes
6 answers
304 views

Can an effective code review be performed without first understanding the intent behind the code?
dangerousdave's user avatar
6 votes
3 answers
2k views

To date, we have implemented a multi-repo approach in which each project, or for larger projects, each tier, has its own repo. Code is written in Typescript, Javascript, C#, PowerShell and T-SQL. ...
TimTheEnchanter's user avatar
3 votes
1 answer
793 views

In the past I've mainly worked with monorepos, specifically a Vue.js app that was served by a rails backend. Setting up E2E/integration tests in the CI was simple, because all the required parts were ...
Johannes Stricker's user avatar
0 votes
1 answer
4k views

I am setting up a Github repository for a project that will have multiple Microservices. I have created a sub-directory for each microservice under One Repository. ProjectRepository \Services ...
Jasper2000's user avatar
0 votes
0 answers
155 views

A few alternative twists on the question title to contextualize further: What to archive of the "sources" for a given software build? Should I include all transitive packages in my ...
Martin Ba's user avatar
  • 7,861
2 votes
2 answers
3k views

Context I'm currently developing a notification system with DDD which needs to be able to send the same notification to multiple users. For example, a group of party goers might all be notified about ...
Luis Pinto's user avatar
0 votes
3 answers
769 views

What I've read A Git repository is the . git/ folder inside a project. This repository tracks all changes made to files in your project, building a history over time. (Source) Repository: A collection ...
johnn5's user avatar
  • 27
3 votes
2 answers
9k views

The question is about a desktop application I'm creating in C# and WPF. As very common I'm using the repository pattern in my Data Access Layer for my CRUD operations. All data comes from the ...
user2190492's user avatar
11 votes
2 answers
15k views

Lately I got in a discussion with my colleague whether the appsettings.Development.json should be added to the git repository or not. My considerations are: when a developer clones a repository to his ...
Frits's user avatar
  • 430
-3 votes
1 answer
1k views

In many discussion I learnt that was undesirable (forbidden) to expose IQueryable from Respository pattern. What is the best practice then for server-side filtering and paging?
Estevez's user avatar
  • 103
-4 votes
1 answer
61 views

My company is about to onboard some junior devs for the first time, and we want to limit their access to just the presentation layer. As it stands, everything is in one Git repo. The current plan is ...
Liaoo's user avatar
  • 95
2 votes
1 answer
248 views

I'd like to start by saying that I'm new to DDD and I'm creating a hobby system to practice some concepts, so this question might be trivial, but not so much for me. I have the following scenario: I ...
Vinicius's user avatar
3 votes
1 answer
9k views

This is my first time I am using repository pattern and applying a layered architecture in a project. I have followed the article found here. The complete code found on the article can also be found ...
Subliminal Hash's user avatar
1 vote
1 answer
2k views

Status quo I created an aggregate, let's call it Foo. It has two entities within itself, let's call them Foo & Bar. You can mutate things by calling the aggregate's public methods. E.g. $foo->...
nkamm's user avatar
  • 69
3 votes
5 answers
794 views

I might start by saying that I am aware that usually there's a Repository layer bookRepository.persist(book) that abstracts the interaction with the database, but something about using the model ...
Carlos Coelho's user avatar
-2 votes
2 answers
128 views

We have the current software pattern below. Sql Server Db --> Repository --> Domain Layer---> Dto Layer The Dto layer filters sensitive data, and brings only required domain data to client ...
user avatar
-3 votes
1 answer
882 views

Consider you have two repos A, B. Let say repo A has some infrastructure code - not needed to be updated always- but it has the code for the service we want to deploy as infra. On the other hand, ...
Mulder's user avatar
  • 17
-2 votes
6 answers
260 views

So, most software depends upon third-party libraries, to some extent or another. Specifications of such libraries' behaviour usually takes the form of human-readable documentation. We write ...
user365547's user avatar
1 vote
0 answers
60 views

I have an ongoing project where the directory structure currently is a mess (github Directory) and I would like to strucure it to eventully create a python package out of it. Below I have outlined a ...
MisterButter's user avatar
-3 votes
1 answer
233 views

I have a bunch of small utility PHP functions that I made to solve different scripting problems. Functions like UUID() and trackUserActivity() etc. There are tons of these functions and increasing ...
Abdul Jabbar's user avatar
9 votes
4 answers
7k views

I'm trying to wrap my head around the best possible solution in the following situation: When updating part of an aggregate, could be any part of the aggregate so either the root or any other entity, ...
ExcellentAverage's user avatar
14 votes
5 answers
5k views

I have been struggling with this concept in the context of web applications ever since I first read about it. The theory states that the domain objects should encapsulate their behaviour and business ...
Ted Chirvasiu's user avatar
0 votes
1 answer
644 views

I have a domain service and i need to create an aggregate inside it, because the logic for create this aggregate involves another aggregates and calls to repository to check some business rules. Is ...
arthhhdev's user avatar
1 vote
1 answer
665 views

I'm trying to apply Clean Architecture to a mobile Android App, but I still have some doubts about how to manage API calls. Currently, the classes are structured like this: View -> ViewModel -> ...
Rod's user avatar
  • 148
2 votes
0 answers
320 views

I'm modeling the "Domain" Layer of "Clean Architecture" for an application that gets its data from an XML file when starts. The XML file looks like: <?xml version="1.0" encoding="UTF-8" ?> <...
trofinao's user avatar

1
2 3 4 5 6