Skip to content

Conversation

@ramya18101
Copy link
Contributor

🔧 Changes

  • Removed custom MarshalJSON method from PromptRendering, relying on default JSON marshaling.
  • Updated cleanForPatch to always return a fully populated struct for consistency in patch operations.

📚 References

🔬 Testing

  • Strengthened TestPromptManager_ListRendering with assertions for Screen and Prompt field equality.
  • Enhanced givenAPromptRendering helper to re-fetch and validate settings after updates.

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@ramya18101
Copy link
Contributor Author

Yet to re-record the tests!

@codecov-commenter
Copy link

codecov-commenter commented Sep 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.68%. Comparing base (1c9c68b) to head (ca9a5cb).

Additional details and impacted files
@@            Coverage Diff             @@
##               v1     #594      +/-   ##
==========================================
- Coverage   96.68%   96.68%   -0.01%     
==========================================
  Files          62       62              
  Lines       10654    10644      -10     
==========================================
- Hits        10301    10291      -10     
  Misses        235      235              
  Partials      118      118              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ramya18101 ramya18101 marked this pull request as ready for review September 3, 2025 14:39
@ramya18101 ramya18101 requested a review from a team as a code owner September 3, 2025 14:39
@ramya18101 ramya18101 changed the title Refactor PromptRendering handling [Don't Merge] Refactor PromptRendering handling Sep 8, 2025
for _, r := range actual.PromptRenderings {
if r.RenderingMode != nil && expected.RenderingMode != nil &&
*r.GetRenderingMode() == *expected.GetRenderingMode() &&
*r.GetScreen() == *expected.Screen &&
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
*r.GetScreen() == *expected.Screen &&
*r.GetScreen() == *expected.GetScreen() &&

we should use getters

Copy link
Member

@duedares-rvj duedares-rvj left a comment

Choose a reason for hiding this comment

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

LGTM

@ramya18101 ramya18101 self-assigned this Oct 13, 2025
@developerkunal developerkunal changed the base branch from main to v1 October 14, 2025 19:09
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.

5 participants