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 latest analayis report. #504

Merged
merged 1 commit into from
Oct 5, 2023
Merged

Conversation

jortel
Copy link
Contributor

@jortel jortel commented Oct 4, 2023

The /applications/:id/analysis and /applications/:id/analysis/report returned the report for: analysis.ID=:id (application ID) instead of the Last analysis for the application.ID = :id.

Potentially related to: https://issues.redhat.com/browse/MTA-1344

@@ -2315,6 +2323,7 @@ func (r *ReportWriter) buildOutput(id uint) (path string, err error) {
r.begin()
r.field("id").write(strconv.Itoa(int(m.Application.ID)))
r.field("name").writeStr(m.Application.Name)
r.field("analysis").writeStr(strconv.Itoa(int(m.ID)))
Copy link
Contributor Author

@jortel jortel Oct 4, 2023

Choose a reason for hiding this comment

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

:hint: injecting this for troubleshooting. Ignored by the report js.

Copy link
Collaborator

@mansam mansam left a comment

Choose a reason for hiding this comment

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

LGTM

@jortel jortel merged commit 7f49d71 into konveyor:main Oct 5, 2023
12 of 13 checks passed
aufi pushed a commit to aufi/tackle2-hub that referenced this pull request Oct 30, 2023
The `/applications/:id/analysis` and `/applications/:id/analysis/report`
returned the report for: analysis.ID=:id (application ID) instead of the
Last analysis for the application.ID = :id.

Potentially related to: https://issues.redhat.com/browse/MTA-1344

Signed-off-by: Jeff Ortel <[email protected]>
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.

3 participants