Skip to content

Also make task status finished when hashlist has been cracked#2321

Open
jessevz wants to merge 1 commit into
masterfrom
2304-enhancement-cracked-task-not-completed-status
Open

Also make task status finished when hashlist has been cracked#2321
jessevz wants to merge 1 commit into
masterfrom
2304-enhancement-cracked-task-not-completed-status

Conversation

@jessevz

@jessevz jessevz commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@jessevz jessevz requested a review from s3inlc July 8, 2026 15:47
@jessevz jessevz linked an issue Jul 8, 2026 that may be closed by this pull request
@s3inlc

s3inlc commented Jul 9, 2026

Copy link
Copy Markdown
Member

You need to make sure, that this change is consistently done, e.g. not other places may define a different status. For example, at least here it would also need to be changed so that it also is the correct status on Task details, etc.:https://github.com/hashtopolis/server/blob/master/src/inc/utils/TaskUtils.php#L134

@jessevz

jessevz commented Jul 9, 2026

Copy link
Copy Markdown
Contributor Author

You need to make sure, that this change is consistently done, e.g. not other places may define a different status. For example, at least here it would also need to be changed so that it also is the correct status on Task details, etc.:https://github.com/hashtopolis/server/blob/master/src/inc/utils/TaskUtils.php#L134

Yes I noticed that, but currently this function is only used for sub tasks of a supertask. And I felt it may not be very clear if all subtask will be on completed when a single subtasks cracks the hash. Maybe it is more clear to the user if only the cracked subtask will go to completed.

@s3inlc

s3inlc commented Jul 9, 2026

Copy link
Copy Markdown
Member

And I felt it may not be very clear if all subtask will be on completed when a single subtasks cracks the hash.

But this is exactly what will happen with your aggregation as well.. the hashlist may be cracked by any other task than the supertask you aggregate on and it will mark the supertask with a green check (even if there was not crack at all in that supertasks subtask).

@jessevz

jessevz commented Jul 9, 2026

Copy link
Copy Markdown
Contributor Author

And I felt it may not be very clear if all subtask will be on completed when a single subtasks cracks the hash.

But this is exactly what will happen with your aggregation as well.. the hashlist may be cracked by any other task than the supertask you aggregate on and it will mark the supertask with a green check (even if there was not crack at all in that supertasks subtask).

Yes I understand, but I feel like that is more clear, since you already see all the subtasks together, making the cracked sub task pop out more with the green checkmark.
But I don't mind adding the status to the subtasks aswell. I just hope it will still be understandable for the end user

@jessevz

jessevz commented Jul 9, 2026

Copy link
Copy Markdown
Contributor Author

Preferably we might even want a 4th state were say, task has already been cracked by a different task, but I am not sure how to even signify that in the UI with a good icon

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.

[ENHANCEMENT]: cracked task not completed status

2 participants