-
Notifications
You must be signed in to change notification settings - Fork 4
[CDX-286] Add active field to ConstructorItem and ConstructorVariation #171
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
[CDX-286] Add active field to ConstructorItem and ConstructorVariation #171
Conversation
Add Boolean active field to ConstructorItem and ConstructorVariation classes to support marking items and variations as active/inactive. Include getter/setter methods and ensure the field is properly serialized in the toMap() method. Add comprehensive tests verifying that: - Active field is included in serialized output when set - Active field defaults to null when not set - Getter/setter methods work correctly for both true and false values 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds an active field to the ConstructorItem and ConstructorVariation classes to allow tracking of item/variation active status.
- Added
Boolean activefield with getter/setter methods to both classes - Updated
toMap()methods to include the active field in the data map - Added comprehensive test coverage for the new active field functionality
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| ConstructorItem.java | Added active field, getter/setter, and serialization to data map |
| ConstructorVariation.java | Added active field, getter/setter, and serialization to data map |
| ConstructorItemTest.java | Added test coverage for active field default value, setter, and serialization |
| ConstructorVariationTest.java | Added test coverage for active field default value, setter, and serialization |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
constructorio-client/src/main/java/io/constructor/client/ConstructorItem.java
Outdated
Show resolved
Hide resolved
constructorio-client/src/main/java/io/constructor/client/ConstructorItem.java
Outdated
Show resolved
Hide resolved
constructorio-client/src/main/java/io/constructor/client/ConstructorVariation.java
Outdated
Show resolved
Hide resolved
constructorio-client/src/main/java/io/constructor/client/ConstructorVariation.java
Outdated
Show resolved
Hide resolved
…ructorItem.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ructorItem.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ructorVariation.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ructorVariation.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Mudaafi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good. There are a couple of failing tests due to the version numbers not matching the current version. Could you either update it in this PR or update it when creating the release?
No description provided.