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

More human friendly token expiry date messages #498

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

aaperis
Copy link
Contributor

@aaperis aaperis commented Jan 23, 2025

Related issue(s) and PR(s)
This PR closes #437. Now token expiry messages to the user follow the output pattern that is listed in the issue description.

How to test
Tests have been added to the go testsuite, so

go test ./...

should be enough.

Note: The download integration tests fail probably because of the latest change where sda-download serves only /s3 whereas sda-cli looks for s3-encrypted. This is irrelevant to this PR though.

@aaperis aaperis self-assigned this Jan 23, 2025
@aaperis aaperis requested a review from a team January 23, 2025 13:46
@aaperis aaperis force-pushed the feature/token-expiry-date branch from b5e0f5e to cb8bd2f Compare January 23, 2025 13:48
Copy link
Contributor

@jbygdell jbygdell left a comment

Choose a reason for hiding this comment

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

While you ar at it consider changing the default response of the switch to handle the case of an expired token.
The logical cases would then be:
1-120 min, 2-24 hours and > 24 hours.

helpers/helpers.go Outdated Show resolved Hide resolved
helpers/helpers.go Outdated Show resolved Hide resolved
helpers/helpers.go Outdated Show resolved Hide resolved
@aaperis
Copy link
Contributor Author

aaperis commented Jan 24, 2025

While you ar at it consider changing the default response of the switch to handle the case of an expired token. The logical cases would then be: 1-120 min, 2-24 hours and > 24 hours.

Makes, sense. Done.

@aaperis aaperis force-pushed the feature/token-expiry-date branch from abc7dde to 4874d03 Compare January 24, 2025 14:00
@aaperis aaperis requested review from jbygdell and a team January 24, 2025 14:01
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.

[session] Show token expiry time in a more Human friendly format
2 participants