Skip to content

loosen id tag expiration constraints (Closes #48) #5

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

Merged
merged 1 commit into from
Mar 27, 2018

Conversation

JavaIsJavaScript
Copy link
Owner

reason: until now, we always used current time + some hours (set in UI)
for id tag expiration, regardless of an expiry date the database had
for this id tag. the idea behind was to better control two possible
situations:

  • no expiry date: set an explicit one to prevent the station caching it,
    such that after some time, it has to ask Steve.
  • expiry date too far in the future: since business rules, contracts,
    conditions and therefore expiration of id tags might change, we wanted
    to prevent the stations from storing id tags for too long in the white
    list.

both of these ideas resulted from the thinking that Steve is the single
point of truth and that we did not trust charging station implementations.
therefore, we always preferred a charging station asking us frequently
about the id tag status. with this commit, this constraint is loosened.

reason: until now, we always used current time + some hours (set in UI)
for id tag expiration, regardless of an expiry date the database had
for this id tag. the idea behind was to better control two possible
situations:
- no expiry date: set an explicit one to prevent the station caching it,
such that after some time, it _has_ to ask Steve.
- expiry date too far in the future: since business rules, contracts,
conditions and therefore expiration of id tags might change, we wanted
to prevent the stations from storing id tags for too long in the white
list.

both of these ideas resulted from the thinking that Steve is the single
point of truth and that we did not trust charging station implementations.
therefore, we always preferred a charging station asking us frequently
about the id tag status. with this commit, this constraint is loosened.
@JavaIsJavaScript JavaIsJavaScript merged commit febcaa6 into JavaIsJavaScript:master Mar 27, 2018
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