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 document expiration feature. Fixes #1652. #1654

Merged
merged 2 commits into from
Apr 25, 2020
Merged

Conversation

hober
Copy link
Contributor

@hober hober commented Apr 23, 2020

Here's a first cut at an expiration feature like we're talking about in #1652.

One annoyance is this adds a dependency on isodate in order to parse ISO 8601 durations.

bikeshed/metadata.py Show resolved Hide resolved
@tabatkins
Copy link
Collaborator

Add some tests and the one fix, and this is R+ from me

@hober hober mentioned this pull request Apr 23, 2020
@tabatkins
Copy link
Collaborator

Well, I guess we'll want to do the "starts closed, uses js to open after expiration" behavior for the not-yet-expired case

@hober
Copy link
Contributor Author

hober commented Apr 23, 2020

Add some tests and the one fix, and this is R+ from me

Added tests and accept never & boolish false in a33f871.

Haven't done the JS bit yet. The current patch defaults to open for the expired case, and defaults to closed for the "has an expiration date set, but it's in the future" case.

@tabatkins tabatkins merged commit a33f871 into speced:master Apr 25, 2020
@tabatkins
Copy link
Collaborator

Okay, I added the JS and did some other minor fixup, including making sure the tests weren't dependent on the date they were generated, since that means they'll fail tomorrow. ^_^ Also added docs for the feature.

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