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

🐛 Exclude non-required questionnaires in assessed calculation #1666

Merged
merged 4 commits into from
Jan 26, 2024

Conversation

ibolton336
Copy link
Member

@ibolton336 ibolton336 commented Jan 17, 2024

Resolves https://issues.redhat.com/browse/MTA-1967

Addresses an issue where the assessed boolean for archetypes is set to true when all questionnaires are marked as not-required. Uses the new assessment.required boolean surfaced in konveyor/tackle2-hub@2552233 to filter out these false positives.

@ibolton336 ibolton336 added the cherry-pick/release-0.3 This PR should be cherry-picked to release-0.3 branch. label Jan 18, 2024
Copy link
Member

@sjd78 sjd78 left a comment

Choose a reason for hiding this comment

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

A few comments and thoughts

const assessmentQueries = useQueries({
queries: archetypes.map((archetype) => ({
queryKey: ["assessmentsForArchetype", archetype.id],
queryFn: () => getAssessmentsByItemId(true, archetype.id), // Replace with actual API call
Copy link
Member

Choose a reason for hiding this comment

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

Is this comment still valid?

Copy link
Member

Choose a reason for hiding this comment

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

Also, kinda a bummer we can't just send a single request to "get assessments for this list of archetype ids".

client/src/app/queries/assessments.ts Outdated Show resolved Hide resolved
@ibolton336 ibolton336 merged commit 3cf032f into konveyor:main Jan 26, 2024
6 checks passed
github-actions bot pushed a commit that referenced this pull request Jan 26, 2024
Resolves https://issues.redhat.com/browse/MTA-1967

Addresses an issue where the assessed boolean for archetypes is set to
true when all questionnaires are marked as not-required. Uses the new
assessment.required boolean surfaced in
konveyor/tackle2-hub@2552233
to filter out these false positives.

---------

Signed-off-by: ibolton336 <[email protected]>
@ibolton336 ibolton336 deleted the mta-1967-2 branch February 26, 2024 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick/release-0.3 This PR should be cherry-picked to release-0.3 branch.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants