Skip to content

Clarify behavior for multiple fields in Alert EntitySelectors - #118

Merged
barbeau merged 1 commit into
google:masterfrom
MobilityData:v19-EntitySelector-fix-squashed
Dec 6, 2018
Merged

Clarify behavior for multiple fields in Alert EntitySelectors#118
barbeau merged 1 commit into
google:masterfrom
MobilityData:v19-EntitySelector-fix-squashed

Conversation

@barbeau

@barbeau barbeau commented Nov 14, 2018

Copy link
Copy Markdown
Contributor

There has been confusion in the past over the expected behavior of the EntitySelector object within Alerts, especially when multiple fields are provided within an EntitySelector (see https://groups.google.com/forum/#!topic/gtfs-realtime/jamsDygrcSk). In particular, the GTFS-realtime .proto documentation indicates that these fields should be joined as an AND and the alert should only be applied to the entity if it matches all the provided fields. However, the GTFS-realtime documentation is somewhat ambiguous and could be interpreted as joining these fields as an OR - in other words, the alert applies to all entities that match any of the provided fields.

This proposal clarifies the GTFS-realtime documentation to align with the .proto documentation to clearly indicate that when when multiple fields are provided in an EntitySelector, they should be joined as an AND - in other words, in order for an alert to apply to an entity it must match all of the provided EntitySelector fields.

Announced on the GTFS-realtime group at https://groups.google.com/forum/#!topic/gtfs-realtime/GfwvTmAOu1I.

There has been confusion in the past over the expected behavior of the EntitySelector object within Alerts, especially when multiple fields are provided within an EntitySelector (see https://groups.google.com/forum/#!topic/gtfs-realtime/jamsDygrcSk).  In particular, the GTFS-realtime .proto documentation indicates that these fields should be joined as an AND and the alert should only be applied to the entity if it matches all the provided fields. However, the GTFS-realtime documentation is somewhat ambiguous and could be interpreted as joining these fields as an OR - in other words, the alert applies to all entities that match any of the provided fields.

This proposal clarifies the GTFS-realtime documentation to align with the .proto documentation to clearly indicate that when when multiple fields are provided in an EntitySelector, they should be joined as an AND - in other words, in order for an alert to apply to an entity it must match all of the provided EntitySelector fields.
@gcamp

gcamp commented Nov 15, 2018

Copy link
Copy Markdown
Contributor

Big +1

@paulswartz

Copy link
Copy Markdown
Contributor

+1

@abyrd

abyrd commented Nov 19, 2018

Copy link
Copy Markdown

Though I don't think we're voting yet, +1 in its current form.

@skinkie

skinkie commented Nov 19, 2018

Copy link
Copy Markdown
Contributor

+1 for me as well.

@barbeau

barbeau commented Nov 26, 2018

Copy link
Copy Markdown
Contributor Author

This pull request has been open for more than one week, so per the Official Process I'm calling for a vote.

Vote will be closed on Monday December 3rd at 23:59:59 UTC.

@gcamp

gcamp commented Nov 26, 2018

Copy link
Copy Markdown
Contributor

+1

4 similar comments
@paulswartz

Copy link
Copy Markdown
Contributor

👍

@jrsanbornjr

Copy link
Copy Markdown

+1

@skinkie

skinkie commented Nov 26, 2018

Copy link
Copy Markdown
Contributor

+1

@prhod

prhod commented Nov 27, 2018

Copy link
Copy Markdown

+1

@barbeau

barbeau commented Dec 6, 2018

Copy link
Copy Markdown
Contributor Author

The vote is closed with the following:

  • 5 yes

So it passes! Thanks all!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GTFS Realtime Issues and Pull Requests that focus on GTFS Realtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants