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

fix: handle complete checkpoint in UI deal list #1841

Merged
merged 1 commit into from
Dec 7, 2023
Merged

Conversation

LexLuthr
Copy link
Collaborator

@LexLuthr LexLuthr commented Dec 7, 2023

This fixes a bug in UI where if a deal never gets added to a sector and moved to "Complete" checkpoint due to an error then the UI displays the sealing status of sector "0".

@LexLuthr LexLuthr requested a review from nonsense December 7, 2023 11:39
@@ -648,6 +648,9 @@ func (dr *dealResolver) SealingState(ctx context.Context) string {
if dr.ProviderDealState.Checkpoint < dealcheckpoints.AddedPiece {
return "To be sealed"
}
if dr.ProviderDealState.Checkpoint == dealcheckpoints.Complete {
return "Complete"
Copy link
Member

Choose a reason for hiding this comment

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

if this displays as Sealing: Complete we should probably come up with better naming.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It will display "Complete" not "Sealing: Complete". I have added a description as well in the informative.

@LexLuthr LexLuthr merged commit 88e4dda into main Dec 7, 2023
22 checks passed
@LexLuthr LexLuthr deleted the fix/deal-list branch December 7, 2023 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants