Skip to content

Add object.replace method #50

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

Merged
merged 4 commits into from
Jul 8, 2024

Conversation

cameronmccord2
Copy link
Contributor

Update the object.update method to use PATCH which only performs a partial update
Add object.replace method which uses PUT which performs a complete object replacement

The issue is this is considered a breaking change since object.update previously did a replace but now just does an update. I'm unsure how the maintainer would like to handle this.

@andreibondarev andreibondarev self-requested a review July 7, 2024 17:55
Copy link
Collaborator

@andreibondarev andreibondarev left a comment

Choose a reason for hiding this comment

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

@cameronmccord2 This is great! I'm okay with the breaking change, I'll issue it in the 0.9.0 version.

A few remaining items:

  1. Could you please fix the CI build? standardrb --fix to fix the linter errors.
  2. Document the breaking change in the CHANGELOG.md
  3. Document the new objects.replace() method in the README.md

Thank you! And I'll cut a new release right away.

@andreibondarev andreibondarev merged commit c6b291b into patterns-ai-core:main Jul 8, 2024
5 checks passed
@cameronmccord2 cameronmccord2 deleted the replace_object branch July 8, 2024 16:06
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