Skip to content

Fix how the status of the general prerequisite is handled#91

Merged
systay merged 1 commit into
mainfrom
fix-prereq-general
Jun 6, 2024
Merged

Fix how the status of the general prerequisite is handled#91
systay merged 1 commit into
mainfrom
fix-prereq-general

Conversation

@frouioui

@frouioui frouioui commented Jun 4, 2024

Copy link
Copy Markdown
Member

There was an issue where the status (done/not done) of the general prerequisite step was not saved properly on the issue. Now, in the UI when marking the item as done/not done, all the items of the list are checked or unchecked.

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
return mi, nil
}
mi.State.Issue.General.InverseItemStatus()
if mi.IsDone {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should this logic be inverted? if mi.IsDone mi.State.Issue.General.MarkAllAsDone() ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

No, we want to invert the status. If IsDone is true, we are setting all the fields to false and after the if/else block we set isDone to false.

@frouioui frouioui requested a review from rohit-nayak-ps June 5, 2024 16:23
@systay systay merged commit b87b380 into main Jun 6, 2024
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