Skip to content

refactor: remove useless step in json encoder#1513

Merged
JoanFM merged 4 commits intomainfrom
fix-empty-doc-list
May 8, 2023
Merged

refactor: remove useless step in json encoder#1513
JoanFM merged 4 commits intomainfrom
fix-empty-doc-list

Conversation

@samsja
Copy link
Copy Markdown
Member

@samsja samsja commented May 8, 2023

Context

This remove a useless step when serilizaing BaseDoc with nested DocList. Indeed we don't need to transform the DocList into a list of dict ourself, this is the job of the json encoder of BaseDoc

@samsja samsja marked this pull request as ready for review May 8, 2023 15:57
Copy link
Copy Markdown
Member

@JoanFM JoanFM left a comment

Choose a reason for hiding this comment

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

let's add a test then

@github-actions
Copy link
Copy Markdown

github-actions bot commented May 8, 2023

📝 Docs are deployed on https://ft-fix-empty-doc-list--jina-docs.netlify.app 🎉

@samsja samsja changed the title fix: fix json behavior of doclist to allow custom json encoder fix: remove useless step in json encoder May 8, 2023
@JoanFM JoanFM changed the title fix: remove useless step in json encoder refactor: remove useless step in json encoder May 8, 2023
@JoanFM JoanFM merged commit ebecff8 into main May 8, 2023
@JoanFM JoanFM deleted the fix-empty-doc-list branch May 8, 2023 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants