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
1 vote
2 answers
244 views

Repository w/ MVVM Pattern: Data Format Check, Where/When, Best Practice?

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: ...
user avatar
0 votes
6 answers
253 views

Is it necessary to understand the requirements of a change in order to perform an effective code review?

Can an effective code review be performed without first understanding the intent behind the code?
user avatar
1 vote
1 answer
126 views

Mixing server and client code in monorepo

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. ...
user avatar
2 votes
1 answer
208 views

Setting up tests and a continuous integration pipeline in a polyrepo environment

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 ...
user avatar
0 votes
1 answer
1k views

How to organize multiple microservices in a GitHub repository?

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 ...
user avatar
0 votes
0 answers
91 views

How much should we archive for reproducible builds?

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 ...
user avatar
  • 7,275
1 vote
2 answers
316 views

DDD - How to decouple two often used together aggregate roots

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 ...
user avatar
0 votes
3 answers
162 views

Are Git repository and software repository same things?

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 ...
user avatar
  • 27
1 vote
2 answers
2k views

Error handling for repository: exceptions or wrapping return value?

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 ...
user avatar
3 votes
2 answers
2k views

Should appsettings.Development.json be added to the repository?

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 ...
user avatar
  • 332
-3 votes
1 answer
391 views

How to filter and add paging, if we must not expose IQueryable at Repository pattern?

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?
user avatar
  • 103
-4 votes
1 answer
46 views

Controlling and managing separate git repos on Azure DevOps for code security

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 ...
user avatar
  • 95
2 votes
1 answer
103 views

How to model an action that involves more than one model?

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 ...
user avatar
1 vote
1 answer
2k views

Repository Pattern with Services Layer - Good Practice?

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 ...
user avatar
0 votes
1 answer
615 views

DDD Aggregate in PHP — how to retrieve the root?

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->...
user avatar
  • 59
3 votes
5 answers
341 views

Should the Model be able to persist itself? When?

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 ...
user avatar
-2 votes
2 answers
94 views

Software Architecture: Repository Data grabs all the Data

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
124 views

how to manage build and deployments from Multi repos using versions

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, ...
user avatar
  • 17
-2 votes
6 answers
204 views

Why don't packages formally specify (and repositories verify) their contracts

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 ...
user avatar
1 vote
0 answers
37 views

Optimal package structure - Command Line Interface

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 ...
user avatar
-3 votes
1 answer
90 views

Proper way to organize Small Functions in PHP

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 ...
user avatar
  • 119
4 votes
2 answers
3k views

Domain Driven Design - Updating and persisting aggregates

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, ...
user avatar
8 votes
4 answers
1k views

What kind of logic can Domain Objects realistically contain?

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 ...
user avatar
0 votes
1 answer
194 views

where to call repository update/add methods?

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 ...
user avatar
-1 votes
1 answer
325 views

Clean Architecture: are repositories always needed?

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 -> ...
user avatar
  • 128
1 vote
0 answers
159 views

Changing entities in Clean Architecture

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" ?> <...
user avatar
3 votes
4 answers
365 views

How to ensure that developers see only the project modules they are working on?

This is my first time PM experience. I have created a developer team and we want to work on an Angular-NodeJS project. I have defined some tasks and divided the project into the different modules/...
user avatar
  • 179
2 votes
3 answers
178 views

How to keep everyone on team in sync with repo?

This is probably a very basic question, but I have never worked on a team before and I'm not sure if there is an obvious answer or if I'm too bad at googling. Regardless, I can't find a clear answer ...
user avatar
  • 137
2 votes
1 answer
163 views

Correct approach to DDD?

I'm wondering if I'm using the correct architecture in my application. After calling an endpoint in my API, I'm currently going through the following flow: Api.EmployeeController.Update(Api....
user avatar
3 votes
1 answer
204 views

Should I use Repositories or wrap that logic in an additional service layer in my Controllers

I am building a Loopback4 app just for learning; I have a scenario where I have to check for a couple of things before sending that request to the database, so my entry point is my Controllers Method, ...
user avatar
11 votes
2 answers
445 views

Is it bad to have many contributors in a code repository?

Is it a bad thing to have a large number of contributors in a code repository? My current company has a really large repo. This repo has over 40 contributors. And there's a debate about whether or ...
user avatar
1 vote
1 answer
361 views

Git strategy for separate teams in one project without access to eachother source

We have one project and separate teams which work on separate modules. What we need is a strategy that allows our teams to work on one project but without access to each other source codes. one ...
user avatar
  • 119
0 votes
2 answers
1k views

c# Manage more Repository in UnitOfWork

I have a question about how can manage multiple repositories with unit of work. I thought for two solutions but I'm not sure. The first is a classic solution where the IUnitOfWork interface looks like ...
user avatar
  • 133
-1 votes
1 answer
73 views

How to design a repository when datasource differs based on DML/READ operations?

We are starting our new application in which we using MS SQL DB for all our insert/update/delete/select ie. both SELECT and DML operations. But, soon we will have two different sources. SQL Server ...
user avatar
4 votes
2 answers
204 views

How to write dynamic (non ORM) repositories that can return only the necessary data without creating many methods or data-objecs?

We're currently developing a Spring application that uses jdbcTemplates for the repository. We have a lot of functions that only require specific combinations of columns in our database. It would be ...
user avatar
  • 393
3 votes
1 answer
1k views

Onion Architecture: Should Service Layer contain DB Context?

In Onion Architecture, we have repository layer which conducts Crud Operations (simple insert, delete, update). (Applying Entity Framework with database) Onion Architecture Additionally , we have ...
user avatar
3 votes
3 answers
910 views

Do I use Repository or Service Object to Perform Logging?

I'm working in Java Spring, and I have typical service and repository layers. The repository grabs a JSON; passes it along to the service; service maps the repository response to a DTO. I also need ...
user avatar
  • 165
1 vote
1 answer
2k views

Repository structure for microservices

As part of a larger project, my team is building a microservices API layer. We do not have experience with building microservices so we have been trying to figure out how to go about the project. The ...
user avatar
  • 1,240
0 votes
1 answer
83 views

Do menu option lists (and similar labels) belong in the database?

I am moving in the direction from database-centric design to entity-centric design (say, starting with class definitions instead of starting with a ERD), and am questioning things: Often in a ...
user avatar
  • 199
6 votes
1 answer
440 views

DDD: Type hierarchy of entities' property

Say I have an Delivery class which should have a Destination property (among many others). Destination can be an Address (country, city, address line, post code) or a Port (international code, name). ...
user avatar
  • 161
0 votes
1 answer
391 views

What is an interim version in Source Control?

I've been working on an open source project recently and have been checking out Core Infrastructure's best practices checklist. One of the items pertaining the "Change Control" checklist is as ...
user avatar
  • 335
4 votes
2 answers
670 views

Repository pattern usage

I need some advice regarding repository pattern. Let's assume i have UserBal which stands for business logic which uses UserRepositoryDal where all database logic for that entity stands (queries to ...
user avatar
  • 149
0 votes
2 answers
991 views

DDD How to populate AggregateRoot from Repository when properties and collections should be readonly

If the entity should be always in valid state (therefore the properties are readonly and can be set only by methods which contains validation), How can I build this entity inside Repository without ...
user avatar
  • 185
1 vote
1 answer
299 views

MVC Controller calling UoW (unit of work) directly instead of going through Service Layer

Currently im injecting my Unit of Work inside the controller. I figured out that in most of the designs, controllers calls the service layer and service calls the repository/DAL layer. Most of the ...
user avatar
0 votes
1 answer
1k views

DDD: Aggregate with nested childs

I have a CategoryClass (Aggregate root) -> SubCategoryClass -> and now a relational entity (n-n). Category (root) 1->N SubCategory 1->N SubCategorySlotType (n-n) SlotType (root) My SubCategory only ...
user avatar
  • 3
1 vote
2 answers
2k views

Updating the db in the repository from a DTO in a layered architecture

Given a Person model: Person { int PersonId; string Name; string Email; } and an UpdatePersonDto which just updates the Name UpdatePersonDto { int PersonId; string Name; } How ...
user avatar
0 votes
1 answer
207 views

Does a 'leaky' repository implementation defeat the point of a repository?

I've seen some tutorials and examples of implementing a repository pattern, and I don't quite understand something. My impression was that the whole point of a repository pattern was to hide the ...
user avatar
  • 1,356
1 vote
1 answer
703 views

DDD accessing reference values in Domain layer without repositories

So I have built a domain model and some logic into that. I have created two repositories for two aggregate roots. My question is how to access to the reference data from these layers?. For example, ...
user avatar
  • 135
1 vote
4 answers
210 views

Object Oriented Design: Repositories and Inheritance

I have an OO design concern. Let's say my models as following: class Account {} class LocalAccount extends Account {} class SocialAccount extends Account {} These Account entities are persisted and ...
user avatar
0 votes
0 answers
34 views

Code base architecture for one app that has multiple versions with small changes [duplicate]

I'm building a hybrid mobile app that has slightly different versions but share 99.9% of the code. There is a paid and free version, which differ in one function only. Also there is a slight ...
user avatar
  • 119

1
2 3 4 5