Skip to content

shipping: Update with upstream changes#388

Merged
peterbourgon merged 2 commits intogo-kit:masterfrom
marcusolsson:shipping-example-upstream-changes
Nov 9, 2016
Merged

shipping: Update with upstream changes#388
peterbourgon merged 2 commits intogo-kit:masterfrom
marcusolsson:shipping-example-upstream-changes

Conversation

@marcusolsson
Copy link
Copy Markdown

This updates the shipping examples with some changes made upstreams in goddd.

  • Variable renaming: Some names smelled of Java and have been improved(?).
  • repository package renamed to inmem to better reflect what it provides.
  • The Location struct is a DDD Entity but was used as a Value Object. Other domain objects now refer to it by identity (UNLocode) instead of value.
  • Added mock package with mock implementations of the repositories. Questionable if this should be added to the example, since the tests have been excluded in the shipping example. I think it's still interesting to show how it compares to the inmem repository, but I have no problems leaving it out.

P.S. Bulk changes are bad and I should feel bad. Let me know if you want me to split it.

@peterbourgon
Copy link
Copy Markdown
Member

Can you rebase on master to get the tests green?

@marcusolsson
Copy link
Copy Markdown
Author

Done.

@peterbourgon peterbourgon merged commit 9f5c614 into go-kit:master Nov 9, 2016
jamesgist pushed a commit to jamesgist/kit that referenced this pull request Nov 1, 2024
…ream-changes

shipping: Update with upstream changes
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.

2 participants