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

feature: Infer status from provided parameters #122

Merged
merged 18 commits into from
Sep 11, 2022

Conversation

boswelja
Copy link
Collaborator

@boswelja boswelja commented Jun 20, 2022

status can now be correctly inferred based on userFraction. Currently, the following rules apply when status is not supplied:
if userFraction is 1.0, status is completed
if userFraction is 0.0, status is halted
if userFraction is between 0.0 and 1.0, status is inProgress

Note you can still provide status manually. Doing so will subject userFraction to stricter rules, as above.

@boswelja
Copy link
Collaborator Author

Contributes to #72

@boswelja
Copy link
Collaborator Author

Also contributes to #70, kind of

@boswelja boswelja force-pushed the feature/refactor-status branch from 7ef6538 to 471f070 Compare September 11, 2022 08:08
This will be required for draft/halted
It is optional though, if it's not specified, we have updated logic for inferring it
This reverts commit ad98b3d.
@boswelja boswelja marked this pull request as ready for review September 11, 2022 08:46
@boswelja boswelja merged commit c16321c into master Sep 11, 2022
@boswelja boswelja deleted the feature/refactor-status branch September 11, 2022 08:53
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.

1 participant