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

Filter PMP by stage. #94 #95

Merged
merged 3 commits into from
Dec 4, 2024
Merged

Filter PMP by stage. #94 #95

merged 3 commits into from
Dec 4, 2024

Conversation

dabreegster
Copy link
Collaborator

No description provided.

if (!showExisting && stage == "Existing") {
return false;
}
if (!showDesign && stage == "Design") {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we also need a check if it is existing and ! resolved by design
(!showDesign && (stage == "Design" || (stage == "Existing" && !resolvedByDesign))

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Do we want a third checkbox for "Show resolved issues", or is this implied somehow? I understood the issue as just wanting to filter by stage.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sure but my thinking is: filtering by stage it exists at.
If something exists already, and is not resolved by design then it exists in both design stage and existing stage, no?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah, I see. I guess it depends what people expect the filters to mean -- "show me data I've marked as stage=design or stage=existing" vs "show me unresolved issues at this stage". Could we get clarity from whoever originally asked for this? Or we could re-word these checkboxes.

@dabreegster
Copy link
Collaborator Author

Checkbox updated as discussed, and fixed the bug where the user could get into an impossible state (design stage, resolved yes). PTAL @Pete-Y-CS

Copy link
Collaborator

@Pete-Y-CS Pete-Y-CS left a comment

Choose a reason for hiding this comment

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

lgtm!

@dabreegster dabreegster merged commit 396e5d5 into main Dec 4, 2024
1 check passed
@dabreegster dabreegster deleted the filter_pmp branch December 4, 2024 10:23
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.

2 participants