-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
README doesn't fully document "expiry" #51
Comments
I think that's a much clearer description 👍🏻 I've updated the README and published it in Regarding the seconds support, what if we support both seconds and milliseconds? e.g. if a value of what do you think? @alertme-edwin |
The README looks right, and I like the idea of supporting both seconds and milliseconds. My only concern about doing so is that it makes it harder to document (and implement and test). As no one needs to specify a value with more precision than 1 second, it might be confusing to offer that option, but I suppose there are some tools that will default to using the millisecond format of timestamp (and that keeps backwards compatibility). |
Sorry for the late reply to this! I had a look at this again and I think you're right, the README documentation is still kinda confusing. "Epoch" or Unix timestamp should represent seconds, but the current logic takes in the value and parsed it as milliseconds, using these functions:
We should pick one or another to keep it simple and straightforward. I agree that no one would need the precision to the millisecond in our use case, but changing the value would be a breaking change and would need to release a major version so existing users are not affected. I will update the README again to clarify we are using milliseconds now (remove the Epoch word to avoid confusion), and change it over to use seconds in the next major release. |
Just a note that in the documentation for expiry, the examples state
In JSON they are not valid entries, you have to use double quotes
Also better audit does not tell you if the JSON is invalid, it just continues like it does not have the file. I would recommend changing the examples to have " double quotes. |
In the
Fields
section of theREADME.md
file, theDescription
text for theexpiry
row lists onlyUNIX timestamp
, and probably needs to sayHuman-readable date, or milliseconds since the UNIX Epoch
instead.Actually I think it would be better to support seconds rather than milliseconds (since no one will be specifying a value more precise than 1 second, and I think most online tools use seconds since that is the definition used for UNIX time), so it might be better to say
seconds since
instead.As this would be a backwards compatibility break, it's probably better to only document
seconds
but still detect and support milliseconds.The text was updated successfully, but these errors were encountered: