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 years, minutes, and seconds as expiration times #94

Merged
merged 7 commits into from
Feb 7, 2023

Conversation

missytake
Copy link
Contributor

closes #77

The main purpose of this PR is handling some cases in which users might add unexpected input - seconds will not have much use in production, as prune() is only executed every 10 minutes. But it's still interesting to keep around, as developers can trigger prune() earlier by restarting mailadm or running mailadm prune manually, so it's useful for testing purposes even if we can't guarantee that users are indeed created 10 seconds after their creation if their token is only giving them 10 seconds.

src/mailadm/util.py Outdated Show resolved Hide resolved
tests/test_conn.py Outdated Show resolved Hide resolved
@missytake missytake force-pushed the missytake/add-seconds-expiration-time branch 2 times, most recently from e3b5fc3 to d26fdf3 Compare January 20, 2023 11:28
@missytake
Copy link
Contributor Author

Hm, the test passes locally... I'll investigate.

@missytake
Copy link
Contributor Author

Uff, seems to be a regression in core105 - it still passed with core101.

@missytake
Copy link
Contributor Author

missytake commented Jan 20, 2023

Ah, not a regression, but a fix :D the test had a workaround for deltachat/deltachat-core-rust#3650, which is not necessary anymore and causes the test to fail now. Removing it fixes it. I opened a separate PR: #97

@missytake missytake force-pushed the missytake/add-seconds-expiration-time branch from d26fdf3 to 89a8435 Compare January 20, 2023 12:03
Copy link
Contributor

@hpk42 hpk42 left a comment

Choose a reason for hiding this comment

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

if you also add a "y" test it's fine to merge.

tests/test_util.py Show resolved Hide resolved
@missytake missytake merged commit d10cc49 into master Feb 7, 2023
@missytake missytake deleted the missytake/add-seconds-expiration-time branch February 7, 2023 16:45
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.

1s is not a valid expiration time
2 participants