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

refactor: ChatMessage - introduce text property and deprecate content #8588

Merged
merged 4 commits into from
Nov 28, 2024

Conversation

anakin87
Copy link
Member

Related Issues

Proposed Changes:

  • Introduce a text property that mirrors content
  • If users/applications directly access the content attribute, show a deprecation warning telling that content will be removed in 2.9.0 and to use text instead

How did you test it?

CI, new tests

Notes for the reviewer

Adaptation of all Haystack components to use text instead of content will be done in a future PR.

Checklist

@github-actions github-actions bot added topic:tests type:documentation Improvements on the docs labels Nov 27, 2024
@coveralls
Copy link
Collaborator

coveralls commented Nov 27, 2024

Pull Request Test Coverage Report for Build 12066314014

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.01%) to 90.359%

Totals Coverage Status
Change from base Build 12066201082: 0.01%
Covered Lines: 8023
Relevant Lines: 8879

💛 - Coveralls

@anakin87 anakin87 marked this pull request as ready for review November 27, 2024 11:59
@anakin87 anakin87 requested review from a team as code owners November 27, 2024 11:59
@anakin87 anakin87 requested review from dfokina and silvanocerza and removed request for a team November 27, 2024 11:59
@anakin87 anakin87 added this to the 2.8.0 milestone Nov 27, 2024
@anakin87 anakin87 enabled auto-merge (squash) November 28, 2024 09:46
@anakin87 anakin87 merged commit fb1baf4 into main Nov 28, 2024
18 checks passed
@anakin87 anakin87 deleted the chatmessage-text branch November 28, 2024 09:53
Amnah199 pushed a commit that referenced this pull request Dec 3, 2024
…ntent` (#8588)

* introduce text property and deprecate content

* release note

* minor test refactoring

---------

Co-authored-by: Michele Pangrazzi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic:tests type:documentation Improvements on the docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants