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

Implentation of Muambator Service #277

Merged
merged 3 commits into from
Oct 4, 2019

Conversation

AlanBessa
Copy link
Contributor

Development of service which consumes the Muambator service to create a notification about the tracked package.

@AppVeyorBot
Copy link

@AppVeyorBot
Copy link

@@ -15,6 +15,7 @@
using System.Threading;
using System.Threading.Tasks;
using ShareBook.Helper;
using ShareBook.Service.Muambator;
Copy link
Member

Choose a reason for hiding this comment

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

Acho que o controller não precisa nem saber que existe esse serviço.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Posso apagar. Realmente nao e necessario

"RollbarEnvironment": "local",
"Muambator": {
"Token": ""
}
Copy link
Member

Choose a reason for hiding this comment

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

O que acha de termos um parâmetro active = true/false?

Daí a gente desabilita facilmente nos ambientes de DEV e STG. E a gente teria uma carta na manga pra desabilitar rápido em prod numa situação extrema.

@@ -211,6 +215,8 @@ public void InformTrackingNumber(Guid bookId, string trackingNumber)
if (winnerBookUser == null)
throw new ShareBookException("Vencedor ainda não foi escolhido");

_muambatorService.AddPackageToTrackerAsync(winnerBookUser.User.Email, trackingNumber);
Copy link
Member

Choose a reason for hiding this comment

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

Aí aqui vc colocaria um if pra verificar se está ativo ou não. (sugestão)

@@ -0,0 +1,15 @@
using System;
Copy link
Member

Choose a reason for hiding this comment

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

O que significa DTO?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Data transfer object. No caso um modelo de transport. Ele nao se encaixa como VM dentro desta arquitetura. E tb nao e uma entidade de negocio,

Copy link
Member

Choose a reason for hiding this comment

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

Entendi. Obrigado.

Copy link
Member

@raffacabofrio raffacabofrio left a comment

Choose a reason for hiding this comment

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

Muito bom amigão. Apenas algumas dúvidas e detalhes.

@AppVeyorBot
Copy link

@raffacabofrio raffacabofrio merged commit f891dd6 into SharebookBR:develop Oct 4, 2019
raffacabofrio pushed a commit to raffacabofrio/sharebook-backend that referenced this pull request Dec 4, 2021
…d_yarn/acorn-6.4.1

Bump acorn from 6.4.0 to 6.4.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants