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

Make task auto-unlock duration configurable #1274

Merged

Conversation

nrotstan
Copy link
Contributor

  • Add TASK_AUTOUNLOCK_AFTER configuration setting to server that
    allows task auto-unlock delay to be configured (defaults to 2 hours,
    preserving prior behavior)

  • Include configured delay in task data sent to front-end

  • Update front-end task timer to make use of delay duration provided by
    server instead of using hard-coded 2 hours

* Add `TASK_AUTOUNLOCK_AFTER` configuration setting to server that
allows task auto-unlock delay to be configured (defaults to 2 hours,
preserving prior behavior)

* Include configured delay in task data sent to front-end

* Update front-end task timer to make use of delay duration provided by
server instead of using hard-coded 2 hours
@ramyaragupathy
Copy link
Member

ramyaragupathy commented Dec 7, 2018

Tested for the following configurations.

  • 2h30m
  • 30m
  • 15m
  • 7d

In all the cases time left is displayed in minutes like image

Just thinking if we could get to display units in hours & days if the auto unlock duration exceeds an hour. Like:

  • 2hrs and 10 minutes left instead of 130 mins left
  • 1 day and 15 hrs left instead of 2340 minutes left

@nrotstan @ethan-nelson - what do you think here?

@ethan-nelson
Copy link
Contributor

I think that's a good point, but I'd throw it into a new ticket--I don't see it as an immediate blocker for this.

@ethan-nelson
Copy link
Contributor

Also I really like including this in the API data sent to the frontend 👍

Copy link
Contributor

@ethan-nelson ethan-nelson left a comment

Choose a reason for hiding this comment

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

This also works for me. Captured discussion in #1291 about the front end formatting changes.

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.

3 participants