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

WIP: cqrs #25

Merged
merged 14 commits into from
Sep 9, 2017
Merged

WIP: cqrs #25

merged 14 commits into from
Sep 9, 2017

Conversation

peter-mueller
Copy link
Contributor

@FabianWilms so will ich die handler weiter auftrennen, kannst ja mal drüber schauen ob das so ok wäre und ob du wo bedenken hast

@peter-mueller peter-mueller changed the title cqrs WIP: cqrs Jul 21, 2017
@FabianWilms
Copy link
Contributor

BIs auf das angesprochene Problem finde ich es gut so 👍

main.go Outdated
router.HandleFunc("/users", userService.Register).Methods("POST")
router.HandleFunc("/users/register/{registrationID}", userService.Activate).Methods("GET")
router.HandleFunc("/users/do/register", userHandler.Register).Methods("POST")
router.HandleFunc("/users/do/activate", userHandler.Activate).Methods("POST")
Copy link
Contributor

Choose a reason for hiding this comment

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

das ist ziemlich doof. der nutzer soll ja einfah nur aus der mail auf einen link klicken. POST ist da schwierig, deswegen hatte ich es mit "/users/register/{registrationID} gemacht.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ich hätte den gui link so gemacht, und den service link nicht

Copy link
Contributor

Choose a reason for hiding this comment

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

Also soll aus der regiustrierungsmail ein link auf die gui gehen, die dann den post macht?

@coveralls
Copy link

Coverage Status

Coverage increased (+13.02%) to 13.016% when pulling 910308a on cqrs into 729339c on master.

@FabianWilms
Copy link
Contributor

User-Endpunkt findAll -> Nur für registrierte und aktive Nutzer,

@FabianWilms
Copy link
Contributor

Meeting Endpunkt findAll -> Reduced Ansicht liefern. Sonst sind es zu viele Infos

@FabianWilms
Copy link
Contributor

Meeting erstellen -> Nur registrierte und aktive User

@FabianWilms
Copy link
Contributor

SetBuyer -> Darf nur der creator

@FabianWilms
Copy link
Contributor

SetPlace -> Darf nur der creator

@FabianWilms
Copy link
Contributor

Ist was mir jetzt so aufgefallen ist.
Ich bin mir noch unsiche, ob ich das alles so besser finde oder nicht. ich finde es gibt sau viel duplciate code dadurch, und um z.B rauszufinden wie die berechtigungen agieren und welche für bestimmte operationen nöltig sind, ist das ganze ziemlich versteckt, obwohl es eine wichtige funktionalität ist. agesehen davon finde ich die aufteilung allerdings gut 👍

@peter-mueller
Copy link
Contributor Author

Die Prüfung ob man einen usecase darf scheint für mich einer der ersten Schritte im usecase selber zu sein, im Gegensatz zur Prüfung im web handler. So beantwortet es natürlich eher nur die frage: Was muss erfüllt sein um diesen usecase zu starten - und nicht: Was darf ich alles als .

So wie's jetzt ist wirkt es für näher am fachlichen, für die technische Frage/Überblick gibt's ja die Diagramme mit Aktoren.

@peter-mueller
Copy link
Contributor Author

Und kannst du die Stellen mit duplicate code markieren?

@FabianWilms
Copy link
Contributor

@peter-mueller kann ich machen. Bin aber erstmal nicht am PC die nächsten Tage, kannst also auch erstmal mergen und ich mach dann ein issue auf :p

@FabianWilms FabianWilms merged commit 0b59ad6 into master Sep 9, 2017
@FabianWilms FabianWilms deleted the cqrs branch September 9, 2017 10:18
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.

3 participants