Skip to content

Conversation

@esezen
Copy link
Contributor

@esezen esezen commented Oct 20, 2025

No description provided.

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>
Copilot AI review requested due to automatic review settings October 20, 2025 17:11
@esezen esezen requested a review from Mudaafi as a code owner October 20, 2025 17:11
Copy link
Contributor

Copilot AI left a 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 active field 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.

esezen and others added 5 commits October 20, 2025 20:14
…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>
@esezen esezen requested a review from a team October 20, 2025 18:37
Copy link
Contributor

@Mudaafi Mudaafi left a 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?

@esezen esezen merged commit 292270c into master Oct 23, 2025
1 of 3 checks passed
@esezen esezen deleted the cdx-286-java-add-active-flag-support-for-constructoritem branch October 23, 2025 12: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.

3 participants