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

✨ Add confidence and risk to Application and Archetype resources. #530

Merged
merged 2 commits into from
Oct 19, 2023

Conversation

mansam
Copy link
Collaborator

@mansam mansam commented Oct 18, 2023

  • Add confidence and risk fields to Application and Archetype resources. Overall confidence calculated using the algorithm from Pathfinder for each assessment, then summed and divided by total number of assessments. Overall risk level is green if all assessments are green, otherwise the overall risk is red, unknown, or yellow in that priority order if any assessments have that risk level.
  • Moved some assessment status logic out of the resource and into the assessment package where it belongs.
  • Added ArchetypeResolver to better encapsulate the related behaviors and for symmetry with ApplicationResolver.
  • Simplified the Application and Archetype endpoints by replacing several related resource With* methods with WithResolver.
  • Improved consistency of the APIs within the assessment package.

@@ -1112,13 +1069,15 @@ type Application struct {
Comments string `json:"comments"`
Identities []Ref `json:"identities"`
Tags []TagRef `json:"tags"`
BusinessService *Ref `json:"businessService"`
BusinessService *Ref `json:"businessService" yaml:"businessService"`
Copy link
Collaborator Author

@mansam mansam Oct 18, 2023

Choose a reason for hiding this comment

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

Did these for the Application resource while I was here, still need to do a comprehensive sweep in another PR.

@mansam mansam changed the title Add confidence and risk to Application and Archetype resources. ✨ Add confidence and risk to Application and Archetype resources. Oct 18, 2023
Signed-off-by: Sam Lucidi <slucidi@redhat.com>
@mansam mansam force-pushed the improved-assessment-status branch from 8ced42d to 4f4cd47 Compare October 18, 2023 20:41
@mansam mansam marked this pull request as ready for review October 19, 2023 14:59
Copy link
Contributor

@jortel jortel left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Sam Lucidi <slucidi@redhat.com>
@mansam mansam force-pushed the improved-assessment-status branch from 4f4cd47 to 812f4a0 Compare October 19, 2023 17:39
@mansam mansam merged commit 77fa5af into konveyor:main Oct 19, 2023
11 checks passed
aufi added a commit to aufi/go-konveyor-tests that referenced this pull request Oct 20, 2023
There was a change in review API adding new fields, updating Hub
dependency.

Related to konveyor/tackle2-hub#530

Signed-off-by: Marek Aufart <maufart@redhat.com>
aufi pushed a commit to aufi/tackle2-hub that referenced this pull request Oct 30, 2023
…konveyor#530)

* Add `confidence` and `risk` fields to Application and Archetype
resources. Overall confidence calculated using the algorithm from
Pathfinder for each assessment, then summed and divided by total number
of assessments. Overall risk level is `green` if all assessments are
`green`, otherwise the overall risk is `red`, `unknown`, or `yellow` in
that priority order if any assessments have that risk level.
* Moved some assessment status logic out of the resource and into the
assessment package where it belongs.
* Added ArchetypeResolver to better encapsulate the related behaviors
and for symmetry with ApplicationResolver.
* Simplified the Application and Archetype endpoints by replacing
several related resource `With*` methods with `WithResolver`.
* Improved consistency of the APIs within the `assessment` package.

---------

Signed-off-by: Sam Lucidi <slucidi@redhat.com>
mguetta1 pushed a commit to mguetta1/go-konveyor-tests that referenced this pull request Dec 5, 2023
There was a change in review API adding new fields, updating Hub
dependency.

Related to konveyor/tackle2-hub#530

Signed-off-by: Marek Aufart <maufart@redhat.com>
aufi added a commit to konveyor/go-konveyor-tests that referenced this pull request Dec 13, 2023
There was a change in review API adding new fields, updating Hub
dependency.

Related to konveyor/tackle2-hub#530

Signed-off-by: Marek Aufart <maufart@redhat.com>
mguetta1 pushed a commit to mguetta1/go-konveyor-tests that referenced this pull request Jan 31, 2024
There was a change in review API adding new fields, updating Hub
dependency.

Related to konveyor/tackle2-hub#530

Signed-off-by: Marek Aufart <maufart@redhat.com>
Signed-off-by: Maayan Hadasi <mguetta@redhat.com>
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