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

Don't import historic WOF neighbourhoods #63

Merged
merged 3 commits into from
Jan 14, 2016

Conversation

zerebubuth
Copy link
Member

Add support for WOF's edtf:inception, edtf:cessation and edtf:deprecated fields. This is tracked in the database and an is_visible flag is maintained for query use. Changes to these flags result in expiries as if the data had been updated, and so the query can pick up these changes.

Connects to #59.

@nvkelso could you review, please?

This parses these fields as EDTF, which is brought in as an
additional library dependency, and includes the start and end
dates in the database rows for each entry. The visibility is
tracked and updated, generating expiries to be re-rendered, which
allows upstream code to only check the visibility parameter and
not need to worry about the dates changing.
…e Circle isn't picking it up; trying to force an install.
# 'edtf:deprecated' would both stop the item showing, so we take the
# earliest of each's latest possible date.
inception = edtf_inception.earliest_date()
cessation = min(edtf_cessation.latest_date(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@nvkelso
Copy link
Member

nvkelso commented Jan 13, 2016

LGTM

zerebubuth added a commit that referenced this pull request Jan 14, 2016
…ourhoods

Don't import historic WOF neighbourhoods
@zerebubuth zerebubuth merged commit 7410f15 into master Jan 14, 2016
@zerebubuth zerebubuth deleted the 59-dont-import-historic-wof-neighbourhoods branch January 14, 2016 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants