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

feat: consolidates logic in update and updateByID operations #9998

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

JarrodMFlesch
Copy link
Contributor

@JarrodMFlesch JarrodMFlesch commented Dec 16, 2024

What?

Consolidates logic in update and updateByID. These two operations used a lot of the same core functionality. This is a QOL improvement for future features/fixes on each operation. You will not need to make changes to both operations now.

Why?

Recently we released a feature for publishSpecificLocale and that was only implemented on the updateByID operation. I think future enhancements and fixes may suffer the same treatment.

How?

Moves shared logic into a new file with a function called updateDocument.

@JarrodMFlesch JarrodMFlesch changed the title feat: consolidates duplicative logic between update and updateByID op… feat: consolidates logic in update and updateByID operations Dec 16, 2024
@JarrodMFlesch JarrodMFlesch marked this pull request as ready for review January 8, 2025 18:06
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.

1 participant