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

Perf: Improving async/await usages #561

Merged
merged 37 commits into from
Jun 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
8d6986f
perf: IBooksEmailService. IBookService => Turning some methods as async
henriqueholtz Jun 11, 2024
0740808
perf: Turning a lot of methods as async (IBookService, IBookUserServi…
henriqueholtz Jun 12, 2024
a584a99
chore: IRepositoryGeneric => Remove sync methods without any usage
henriqueholtz Jun 12, 2024
1ccb4c1
perf: IUserService => Turning method "GenerateHashCodePasswordAndSend…
henriqueholtz Jun 12, 2024
b2eccd5
chore: IUserService.UpdateAsync => Adding new keyword to get rid the …
henriqueholtz Jun 12, 2024
19907e3
perf: Turning some methods as async in IBookService, IBookUserService…
henriqueholtz Jun 12, 2024
2a3f9d2
perf: IUserService => Turning methods "GetStats" and "ParentAproval" …
henriqueholtz Jun 12, 2024
34aaec0
perf: Turning the method "IUserEmailService.SendEmailParentAprovedNot…
henriqueholtz Jun 12, 2024
993433b
perf: IUserEmailService && IUserService => Turning methods as async
henriqueholtz Jun 12, 2024
586f7ec
perf: Turning "IUserEmailService.SendEmailAnonymizeNotifyAdms" as async
henriqueholtz Jun 12, 2024
c57186b
chore: Removing unused method "IBaseService.Get" ("PagedList<TEntity>…
henriqueholtz Jun 12, 2024
13e8e74
chore: IBaseService => Removing unused and syncronous methods
henriqueholtz Jun 12, 2024
2313ea5
perf: Migrating the method "IBaseService.Any" to async
henriqueholtz Jun 12, 2024
42b2565
chore: Renaming methods adding the suffix "Async" for async methods
henriqueholtz Jun 12, 2024
37f4d46
chore: IRepositoryGeneric => Got rid some unused syncronous methods
henriqueholtz Jun 12, 2024
e264702
perf: IUnitOfWork => Turning all methods as async
henriqueholtz Jun 12, 2024
4c36532
perf: RemovingIRepositoryGeneric.Update to the async version
henriqueholtz Jun 12, 2024
88610e5
perf: Migrating all usages of "IRepositoryGeneric.Insert" from syncro…
henriqueholtz Jun 13, 2024
85a0c81
perf: ("IBaseService", "IRepositoryGeneric", "IBaseService") Migratin…
henriqueholtz Jun 13, 2024
f3eeaa7
perf: IBaseService.Find => Migrate to async
henriqueholtz Jun 13, 2024
97bd184
perf: Migrating "IRepositoryGeneric.Find" to async (includes migratin…
henriqueholtz Jun 13, 2024
11816c4
perf: IBookUserService => Migrating methods "GetGranteeUsersByBookId"…
henriqueholtz Jun 13, 2024
2b69228
chore: "BookUserService.CancelAsync" => Removing additional and unuse…
henriqueholtz Jun 13, 2024
a60c8fa
perf: EmailService => Improving async/await usages
henriqueholtz Jun 13, 2024
ee11839
perf: MuambatorService.AddPackageToTrackerAsync => Using async/await …
henriqueholtz Jun 13, 2024
e8cb7ef
perf: IUserService => Turning methods "ValidOldPasswordAndChangeUserP…
henriqueholtz Jun 13, 2024
003189c
perf: IBookService => Migrating 4 methods to async and its usages/end…
henriqueholtz Jun 13, 2024
58cc618
perf: IBookService.GetBookWithAllUsersAsync => Using "FirstOrDefaultA…
henriqueholtz Jun 13, 2024
ca163a4
perf: BookUserEmailService => Got rid the latest ".Wait()" usages
henriqueholtz Jun 13, 2024
b03f467
perf: IPushNotificationService => Turning all 3 methods as async
henriqueholtz Jun 13, 2024
7184ba1
test: Adding unit test for "Jobs.CancelAbandonedDonations"
henriqueholtz Jun 14, 2024
b6e9ac0
test: Jobs.CancelAbandonedDonations => Adding unit test to make sure …
henriqueholtz Jun 14, 2024
c03f28d
test: Adding unit test for "Jobs.ChooseDateReminder"
henriqueholtz Jun 14, 2024
e151a18
test: Adding 3 unit tests for "Jobs.LateDonationNotification"
henriqueholtz Jun 15, 2024
19386b0
fix: UnitOfWork => Avoiding exception when is called "DisposeAsync"
henriqueholtz Jun 15, 2024
2b386cd
fix: MeetupService.SearchAsync => Removing "StringComparison" to avoi…
henriqueholtz Jun 15, 2024
e3c4952
feat: Adding postman collection ready to execute against development …
henriqueholtz Jun 15, 2024
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
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,14 @@ dotnet test ./ShareBook/ShareBook.Test.Unit/ShareBook.Test.Unit.csproj
# clean
dotnet clean ./ShareBook/ShareBook.Api/ShareBook.Api.csproj --verbosity quiet
```

## **[WIP] 8 - Como testar a aplicação usando postman**

Atenção! Este passo está em construção e ainda exige alguns passos manuais. Em breve será automatizado.

Consiste em usar uma collection do postman (v2.1) para testar os resultados das requisições. No momento a collection está pronta para usa no ambiente de dev.

1. Obter o arquivo [ShareBook API - Tests.postman_collection.json](./ShareBook%20API%20-%20Tests.postman_collection.json) do repositório
2. Usando a ferramenta postman, clique em importar e selecione o arquivo
3. Com o botão direito na collection `ShareBook API - Tests`, clique em `Run collection`
4. Na nova janela clique em executar. Após executar verifique a quantidade de erros.
Loading
Loading