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

added codeowners file and small changes to docs #16

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Blocken-Jordy
Copy link

No description provided.

@ernest-app ernest-app bot added the 📃 XS PR label Dec 9, 2024
@ernest-app ernest-app bot added 📃 S PR and removed 📃 XS PR labels Jan 26, 2025
@@ -0,0 +1 @@
* @NickBanken @JeffreyNijs @maltsavkiryl @JeroenVanC @Robbe95 @wouterlms @Tanya-Amber-L @Blocken-Jordy

Choose a reason for hiding this comment

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

Glenn should also be in codeowners no?


- Use static methods to transform data
- Use the same name for the transformer as the class you are transforming (e.g. `CustomerIndexTransformer` for `CustomerIndex` or `CustomerDetailTransformer` for `CustomerDetail`)
- Use a `fromdto` method to transform data from a DTO to a model

Choose a reason for hiding this comment

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

fromDto, other places too

- Use static methods to transform data
- Use the same name for the transformer as the class you are transforming (e.g. `CustomerIndexTransformer` for `CustomerIndex` or `CustomerDetailTransformer` for `CustomerDetail`)
- Use a `fromdto` method to transform data from a DTO to a model
- Use a `todto` method to transform data from a model to a DTO

Choose a reason for hiding this comment

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

toDto, other places too

Copy link

@NickBanken NickBanken left a comment

Choose a reason for hiding this comment

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

Small remarks

- ❌ OfficesView
- Detail views
- ✅ OfficesDetailView
- ❌ OfficeDetailView

Choose a reason for hiding this comment

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

Is het niet andersom hier?

- ✅ OfficesDetailView
- ❌ OfficeDetailView
- Service
- ✅ OfficesService

Choose a reason for hiding this comment

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

Hier ook

}

export class CustomerDetailTransformer {
static fromdto(customerDetailDto: CustomerDetailDto): CustomerDetail {

Choose a reason for hiding this comment

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

camelCases in de methods

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants