fix(ui): Cannot view AnalysisRun result in UI when web provider returns text instead of JSON - #6758
Conversation
✅ Deploy Preview for docs-kargo-io ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
On the surface from what you shared upstream, it looks like instead of failing, if it returns text, we would want to parse it as text and compare against? This PR silently drops it. I didn't look in depth but I will |
|
Perhaps #6799 looks like it's trying to fix the same bug |
| } catch { | ||
| return { | ||
| canChart: false, | ||
| tableValue: value |
There was a problem hiding this comment.
Ok I finally got a chance to take a look at this issue.
upstream discards it, I don't know motivation behind it but does it make sense NOT TO discard it. Maybe its also better to show something then nothing?
There was a problem hiding this comment.
@Marvin9 thank you for pointing out the upstream. I've added some reasoning in a comment of why this should match the behavior in rollouts. let me know what you think, but it is basically:
- one failed measurement shouldn't make cause the whole chart to not be rendered
- allowing any string of any length to be displayed in a table is risky
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6758 +/- ##
==========================================
+ Coverage 30.75% 31.04% +0.29%
==========================================
Files 821 835 +14
Lines 80358 81453 +1095
==========================================
+ Hits 24712 25290 +578
- Misses 54187 54692 +505
- Partials 1459 1471 +12 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@jmurret could you please sign and amend all commits in this PR? And fix the lint issue? Ready to merge after that |
916ee2b to
393def4
Compare
|
Sorry @jmurret DCO is failing, you would need to amend signed commits |
…ns text instead of JSON Signed-off-by: John Murret <jmurret@yahoo.com>
Signed-off-by: John Murret <jmurret@yahoo.com>
|
@Marvin9 So sorry about that. This is resolved and DCO is passing. |
|
Successfully created backport PR for |
Description
Closes #4630
This PR represents the UI extension of argoproj/argo-rollouts#4770 that addressed:
text was always supported but the
successConditionwas ignored and always returned as successful.Checklist
Eligibility
kind/proposal,needs discussion,needs research,maintainer only,area/security,size/large,size/x-large,size/xx-large).Quality
AI Use Disclosure
This PR was written:
Sign-Off
All commits:
git commit -s) (required)git commit -S) (encouraged)