Skip to content

[bot] Merge master/3ad5eca2 into rel/dev - #1777

Merged
yenkins-admin merged 5 commits into
rel/devfrom
snapshot-master-3ad5eca2-to-rel/dev
Sep 4, 2026
Merged

[bot] Merge master/3ad5eca2 into rel/dev#1777
yenkins-admin merged 5 commits into
rel/devfrom
snapshot-master-3ad5eca2-to-rel/dev

Conversation

@yenkins-admin

Copy link
Copy Markdown
Contributor

🚀 Automated PR to perform merge from master into rel/dev with changes up to 3ad5eca (created by https://github.com/gooddata/gooddata-python-sdk/actions/runs/33851475927).

Tomkess and others added 5 commits August 25, 2026 13:16
…_detail

Addresses hkad98's PR #1750 review comment: the per-turn subset reported in
detail["turns"] was a bare dict literal with no type checking. TurnDetail
mirrors the same 6 fields; asdict() at the boundary keeps the output shape
(and the detail: dict contract) unchanged.
Per hkad98's review comment on #1757: replace the separate TurnDetail
dataclass + _conversation_detail's asdict() call with a detail() method on
TurnResult itself, since it already owns every field being reported. Output
shape (detail["turns"]) is unchanged.
….detail()

detail() returned self.activated_skills directly -- a caller mutating the
returned dict could mutate the TurnResult it came from.

Caught by CodeRabbit on PR #1757.
…ot a key list

Addresses hkad98's review: TurnResult is already a pydantic BaseModel, so a
hand-written dict literal of six of its own field names was a second copy to
keep in sync. detail() now returns model_dump(include=_DETAIL_FIELDS).

Two things fall out of it:
- A field rename can no longer leave detail() emitting a stale key with no
  test failure -- include= raises on a name the model doesn't have, and a new
  test asserts _DETAIL_FIELDS is a subset of model_fields.
- model_dump deep-copies activated_skills, so the explicit list() wrapper is
  no longer needed; the copy regression test still passes.

Also renames the copy test to test_turn_result_detail_copies_activated_skills
(the previous 71-character name restated its own docstring) and lifts the
shared TurnResult construction into a helper.
…ataclass

Return the per-turn detail subset from TurnResult
@yenkins-admin
yenkins-admin merged commit 1bc5a95 into rel/dev Sep 4, 2026
1 check passed
@yenkins-admin
yenkins-admin deleted the snapshot-master-3ad5eca2-to-rel/dev branch September 4, 2026 08:02
@codecov

codecov Bot commented Sep 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.59%. Comparing base (5aa5a35) to head (3ad5eca).
⚠️ Report is 578 commits behind head on rel/dev.

Additional details and impacted files
@@           Coverage Diff            @@
##           rel/dev    #1777   +/-   ##
========================================
  Coverage    81.59%   81.59%           
========================================
  Files          275      275           
  Lines        19848    19851    +3     
========================================
+ Hits         16194    16197    +3     
  Misses        3654     3654           

☔ View full report in Codecov by Harness.
📢 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.

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