-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feature/sac 574 export family recipients #904
Feature/sac 574 export family recipients #904
Conversation
2243282
to
b0a2296
Compare
b0a2296
to
45d0158
Compare
bei mir geht der export job nicht, wenn man via abos exportiert. reproduce:
|
45d0158
to
8c248af
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.
sieht grundsätzlich super aus 🥳
- household ist eigentlich sac_family im sac wagon, wir haben hier aber generell ein riesen Begriffwirwar und ich weiss auch nicht was hier vom Naming her am sinnvollsten ist. ich hätte vermutlich z.B. in der row sac_family verwendet.
- die
it
statements in der row spec finde ich sehr unleserlich - den Export habe ich getestet und das sieht aus meiner Sicht super aus 🚀
household.find { _1.email.present? } || household.first | ||
end | ||
|
||
def household |
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.
def household | |
def sac_family_members |
beim SAC entspricht ja der haushalt -> familie
ich habe gerade nicht wirklich eine starke Meinung dazu welchen Begriff wir hier beim SAC wagon verwenden sollten. einfach mal so als input/idee
spec/domain/export/tabular/people/sac_recipient_household_row_spec.rb
Outdated
Show resolved
Hide resolved
email: "[email protected]" | ||
) | ||
end | ||
let(:family_member) do |
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.
es gibt bereits familienmitglied in den fixtures, das kann hier nicht verwendet werden, oder?
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.
Ich mags fast mehr dass alle Felder explizit im Spec file genannt werden weil ich die ja dann alle expect
e
Zudem muss ich je nachdem sowieso den household_key anpassen und so, find ich dann angenehm wenn ich nicht an einer fixture Person rumeditiere
it("id") { expect(value(:id)).to eq 42 } | ||
it("salutation") { expect(value(:salutation)).to be_nil } | ||
it("first_name") { expect(value(:first_name)).to eq "Hans" } | ||
it("last_name") { expect(value(:last_name)).to eq "Muster" } | ||
it("adresszusatz") { expect(value(:adresszusatz)).to be_nil } | ||
it("address") { expect(value(:address)).to eq "Musterstrasse 42" } | ||
it("postfach") { expect(value(:postfach)).to be_nil } | ||
it("zip_code") { expect(value(:zip_code)).to eq "4242" } | ||
it("town") { expect(value(:town)).to eq "Musterhausen" } | ||
it("email") { expect(value(:email)).to eq "[email protected]" } | ||
it("layer_navision_id") do | ||
expect(value(:layer_navision_id)).to eq groups(:bluemlisalp).navision_id |
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.
ich fände das jetzt einiges leserlicher wenn man einfach die row als hash vergleicht als das man hier it
so viel verwendet. hier hat man so viele expect und value aufrufe
b874903
to
a10ef94
Compare
a94bbfe
to
5fcfb2c
Compare
No description provided.