Skip to content
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

Add retire_date as an optional field to Geography #590

Closed
wants to merge 1 commit into from
Closed

Add retire_date as an optional field to Geography #590

wants to merge 1 commit into from

Conversation

alexdemisch
Copy link
Collaborator

Explain pull request

Add a retire_date field to allow cities to specify when a geography is no longer active.

Is this a breaking change

  • No, not breaking

Impacted Spec

Which spec(s) will this pull request impact?

  • geography

Additional context

As discussed in the 10/20 Provider WG meeting, adding a retire_date field will allow cities to indicate when a geography isn't used anymore. While the prev_geographies field allows this functionality, it requires cities to maintain that relationship, which they may not do. Additionally, some geographies might be considered inactive without a new geography to replace them (e.g., a special event zone).

@alexdemisch alexdemisch requested a review from a team as a code owner October 23, 2020 20:25
@schnuerle schnuerle added the Geography Items related to the Geography API label Oct 23, 2020
@schnuerle schnuerle added this to the 1.1.0 milestone Oct 23, 2020
@schnuerle schnuerle changed the base branch from feature-geography to dev October 23, 2020 21:28
@thekaveman
Copy link
Collaborator

I like the idea of an additional signal for stale geographies, like we talked about on the previous call.

The pedant in me needs to point out that this somewhat conflicts with our current language / understanding of geographies as immutable. For example, we say for publish_date:

Time that the geography was published, i.e. made immutable

Since retire_date may not be known at the initial publish of a geography, is there a subsequent publish/update implied when that date becomes known? If so, are we concerned with this breaking immutability of the geography?

@alexdemisch
Copy link
Collaborator Author

That's a good point @thekaveman. I could see knowing the retire_date in advance for some geographies, but there would undoubtedly be some where the agency would not know until it happens, and this would require updating the record. I can't think an easy way to get around this. We could maybe keep the spatial object separate from its attributes somehow, so that the spatial object is immutable but some or all of the attributes like the retire_date can be modified, but that might be overkill and might not still not achieve immutability. Anyone have any ideas on this? I'm personally not concerned with this one field breaking immutability if we provide specific instructions that only this field can be updated.

@schnuerle
Copy link
Member

I attempted to add this to this branch for discussion on today's call, with some language about how it's allowed to be added without affecting immutability.

@schnuerle
Copy link
Member

This commit in the branch made for these and other changes as been updated per the latest WG call. This PR can be closed in favor of the changes in that one. Thanks!

@schnuerle schnuerle closed this Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Geography Items related to the Geography API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants