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

Turn attachments into parts #176

Merged
merged 1 commit into from
Jan 15, 2024
Merged

Turn attachments into parts #176

merged 1 commit into from
Jan 15, 2024

Conversation

csutter
Copy link
Contributor

@csutter csutter commented Jan 15, 2024

When a document has "attachments" in Publishing API, these should come through in search as if they were parts (even though they're technically not). This is a bit of a fudge from v1, but we have no choice but to replicate it to keep compatibility and desired functionality.

Unfortunately the message from Publishing API doesn't include the content of the attachment, so depending on whether we consider that necessary, we may have to go out to Publishing API and fetch content to populate the body field of generated attachment parts.

When a document has "attachments" in Publishing API, these should come
through in search as if they were parts (even though they're technically
not). This is a bit of a fudge from v1, but we have no choice but to
replicate it to keep compatibility and desired functionality.

Unfortunately the message from Publishing API doesn't include the
content of the attachment, so depending on whether we consider that
necessary, we may have to go out to Publishing API and fetch content to
populate the `body` field of generated attachment parts.
@csutter csutter merged commit 8b48fd9 into main Jan 15, 2024
9 checks passed
@csutter csutter deleted the publication-attachments branch January 15, 2024 15:47
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.

1 participant