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

add subtype #669

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

add subtype #669

wants to merge 4 commits into from

Conversation

ghazwarhili
Copy link
Contributor

No description provided.

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
60.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@@ -49,6 +49,9 @@ public class EquipmentInfos extends BasicEquipmentInfos {
@Field("equipmentType")
String type;

@Field(type = FieldType.Keyword)
Set<String> equipmentSubType;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Set<String> equipmentSubType;
Set<String> equipmentSubTypes;

Since it is a collection, should add 's' to the field name if the name has a same semantics

@@ -79,6 +79,7 @@ public enum FieldSelector {
static final String EQUIPMENT_NAME = "equipmentName.fullascii";
static final String EQUIPMENT_ID = "equipmentId.fullascii";
static final String EQUIPMENT_TYPE = "equipmentType.keyword";
static final String EQUIPMENT_SUB_TYPE = "equipmentSubType.keyword";
Copy link
Contributor

@thangqp thangqp Jan 31, 2025

Choose a reason for hiding this comment

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

Suggested change
static final String EQUIPMENT_SUB_TYPE = "equipmentSubType.keyword";
static final String EQUIPMENT_SUB_TYPES = "equipmentSubTypes.keyword";

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