-
Notifications
You must be signed in to change notification settings - Fork 14
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
Reorganize directory structure for clusters context #2012
Conversation
5a152bc
to
d174981
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @rtorrero
2 things.
- Try to put
Clusters
aliases beforeHosts
aliases, to have a correct alphabetical order - I think your formatter is broken somehow, as it is adding parenthesis to many
field
entries, which we shouldn't have
lib/trento/application/event_handlers/stream_roll_up_event_handler.ex
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @rtorrero
More things you can fix while the other PR is merged.
You need to adapt the test folders as well, as I only see that you change imported aliases.
The test folder must follow the restructure as well
test/trento/application/integration/discovery/protocol/enrich_register_cluster_host_test.exs
Outdated
Show resolved
Hide resolved
f7ead11
to
2dbb8d2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @rtorrero
Some final changes. You don't need other review from me, but i would encourage to get other approval at least, as it is a sensitive chagne
@@ -7,7 +7,11 @@ defmodule Trento.ClustersTest do | |||
|
|||
import Trento.Factory | |||
|
|||
alias Trento.{ClusterEnrichmentData, ClusterReadModel, Clusters} | |||
alias Trento.Clusters |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this file to test/trento/clusters_test.exs
@@ -1,11 +1,11 @@ | |||
defmodule Trento.ClusterTest do | |||
use Trento.AggregateCase, aggregate: Trento.Domain.Cluster, async: true | |||
use Trento.AggregateCase, aggregate: Trento.Clusters.Cluster, async: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this file to test/trento/clusters/cluster_test.exs
test/trento/infrastructure/discovery/policies/cluster_policy_test.exs
Outdated
Show resolved
Hide resolved
a9a1988
to
3abcf29
Compare
3abcf29
to
66e68e5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey besides @arbulu89 nothing more to add :)
Description
This PR applies the context-based reordering from ADR#10 for clusters