-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
[NFC] Failing test for api chain using sequential #23675
Conversation
(Standard links)
|
you are amazing @demeritcowboy |
'api.Address.getoptions' => [ | ||
'field' => 'state_province_id', | ||
'country_id' => '$value.id', | ||
'sequential' => 1, |
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.
@demeritcowboy you could have left sequential off here just to demonstrate that sequential gets added in by default but 6/1 0.5/12
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.
Good point. I'll just add a third case.
]); | ||
$this->assertSame(['key' => 1000, 'value' => 'Alabama'], $result['api.Address.getoptions']['values'][0]); | ||
$this->assertSame(['key' => 1001, 'value' => 'Alaska'], $result['api.Address.getoptions']['values'][1]); | ||
$this->assertSame(['key' => 1049, 'value' => 'Wyoming'], $result['api.Address.getoptions']['values'][59]); |
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.
why are there 59 Keys here?
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.
Because there are some territories like American Samoa that aren't technically states.
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.
But they shoud be - the revolution starts here. Equal rights for all civicrm_state_province
rows
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.
It's come up for sure in some places like Puerto Rico. It's even come up in Canada.
0376b9f
to
ea5a2b7
Compare
Overview
Failing test for #23672
It will pass now though since 23672 is merged.
This is the same type of call uscounties makes.
@seamuslee001 @totten @eileenmcnaughton