Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@
import static com.hpe.octane.ideplugins.eclipse.util.EntityFieldsConstants.FIELD_STORYPOINTS;
import static com.hpe.octane.ideplugins.eclipse.util.EntityFieldsConstants.FIELD_SUBTYPE;
import static com.hpe.octane.ideplugins.eclipse.util.EntityFieldsConstants.FIELD_TEST_TYPE;
import static com.hpe.octane.ideplugins.eclipse.util.EntityFieldsConstants.FIELD_PARENT;
import static com.hpe.octane.ideplugins.eclipse.util.EntityFieldsConstants.FIELD_STATUS;
import static com.hpe.octane.ideplugins.eclipse.util.EntityFieldsConstants.FIELD_RELEASE_PROCESS;
import static com.hpe.octane.ideplugins.eclipse.util.EntityFieldsConstants.FIELD_RELEASE;
import static com.hpe.octane.ideplugins.eclipse.util.EntityFieldsConstants.FIELD_TEAM;
import static com.hpe.octane.ideplugins.eclipse.util.EntityFieldsConstants.FIELD_PRIORITY;

import java.util.ArrayList;
import java.util.Arrays;
Expand Down Expand Up @@ -77,6 +83,7 @@ public class MyWorkEntityModelRowRenderer implements EntityModelRenderer {
static RowFieldSetter fsOwner = new GenericFieldSetter("owner", "Owner", DetailsPosition.TOP);
static RowFieldSetter fsPhase = new GenericFieldSetter("phase", "Phase", DetailsPosition.TOP);
static RowFieldSetter fsStatus = new GenericFieldSetter(EntityFieldsConstants.FIELD_TEST_RUN_NATIVE_STATUS, "Status", DetailsPosition.TOP);
static RowFieldSetter fsBasicStatus = new GenericFieldSetter(FIELD_STATUS, "Status", DetailsPosition.TOP);

// Bottom
static RowFieldSetter fsAutomationStatus = new GenericFieldSetter("automation_status", "Automation status", DetailsPosition.BOTTOM);
Expand All @@ -85,13 +92,20 @@ public class MyWorkEntityModelRowRenderer implements EntityModelRenderer {
static RowFieldSetter fsInvestedHours = new GenericFieldSetter(FIELD_INVESTED_HOURS, "Invested hours", DetailsPosition.BOTTOM);
static RowFieldSetter fsRemainingHours = new GenericFieldSetter(FIELD_REMAINING_HOURS, "Remaining hours", DetailsPosition.BOTTOM);
static RowFieldSetter fsEstimatedHours = new GenericFieldSetter(FIELD_ESTIMATED_HOURS, "Estimated hours", DetailsPosition.BOTTOM);

static RowFieldSetter fsParent = new GenericFieldSetter(FIELD_PARENT, "Quality Gate", DetailsPosition.BOTTOM);
static RowFieldSetter fsReleaseProcess = new GenericFieldSetter(FIELD_RELEASE_PROCESS, "Parent Process", DetailsPosition.BOTTOM);
static RowFieldSetter fsTeam = new GenericFieldSetter(FIELD_TEAM, "team", DetailsPosition.BOTTOM);


static RowFieldSetter fsPriority = new GenericFieldSetter(FIELD_PRIORITY, "Risk", DetailsPosition.TOP);
static RowFieldSetter fsSeverity = new GenericFieldSetter("serverity", "Phase", DetailsPosition.TOP);
static RowFieldSetter fsDetecedBy = new GenericFieldSetter(FIELD_DETECTEDBY, "Phase", DetailsPosition.TOP);

// Subtile
static RowFieldSetter fsEnvironment = new GenericFieldSetter(FIELD_ENVIROMENT, "[No environment]");
static RowFieldSetter fsRelease = new GenericFieldSetter("release", "[No release]");
static RowFieldSetter fsReleaseBottom = new GenericFieldSetter(FIELD_RELEASE, "Release", DetailsPosition.BOTTOM);
static RowFieldSetter fsTestType = new GenericFieldSetter(FIELD_TEST_TYPE, "");

/**
Expand Down Expand Up @@ -122,129 +136,79 @@ public class MyWorkEntityModelRowRenderer implements EntityModelRenderer {
fsOwner,
fsAuthor,
// bottom
fsInvestedHours,
fsRemainingHours,
fsEstimatedHours,
// subtitle
fsRelease));
fsReleaseBottom,
fsTeam
));

fieldSetterMap.put(Entity.TEST_SUITE, asList(
// top
fsPhase,
fsStoryPoints,
fsOwner,
fsAuthor,
// bottom
fsInvestedHours,
fsRemainingHours,
fsEstimatedHours,
// subtitle
fsRelease));
fsTestType));

fieldSetterMap.put(Entity.UNIT, asList(
// top
fsPhase,
fsStoryPoints,
fsOwner,
fsAuthor,
// bottom
fsInvestedHours,
fsRemainingHours,
fsEstimatedHours,
// subtitle
fsRelease));
fsPriority));

fieldSetterMap.put(Entity.MODEL, asList(
// top
fsPhase,
fsStoryPoints,
fsOwner,
fsAuthor,
// bottom
fsInvestedHours,
fsRemainingHours,
fsEstimatedHours,
// subtitle
fsRelease));
fsAuthor));

fieldSetterMap.put(Entity.MANUAL_ACTION, asList(
// top
fsOwner,
fsPhase,
fsStoryPoints,
fsOwner,
fsAuthor,
fsParent,
// bottom
fsInvestedHours,
fsRemainingHours,
fsEstimatedHours,
// subtitle
fsRelease));
fsReleaseProcess));


fieldSetterMap.put(Entity.AUTO_ACTION, asList(
// top
fsOwner,
fsPhase,
fsStoryPoints,
fsOwner,
fsAuthor,
fsParent,
// bottom
fsInvestedHours,
fsRemainingHours,
fsEstimatedHours,
// subtitle
fsRelease));
fsReleaseProcess
));

fieldSetterMap.put(Entity.QUALITY_GATE, asList(
// top
fsPhase,
fsStoryPoints,
fsOwner,
fsAuthor,
fsPhase,
fsParent,
// bottom
fsInvestedHours,
fsRemainingHours,
fsEstimatedHours,
// subtitle
fsRelease));
fsReleaseProcess));

fieldSetterMap.put(Entity.MODEL_BASED_TEST, asList(
// top
fsPhase,
fsStoryPoints,
fsOwner,
fsAuthor,
// bottom
fsInvestedHours,
fsRemainingHours,
fsEstimatedHours,
// subtitle
fsRelease));
fsTestType));

fieldSetterMap.put(Entity.SUITE_RUN_SCHEDULER, asList(
// top
fsPhase,
fsStoryPoints,
fsOwner,
fsAuthor,
fsBasicStatus,
// bottom
fsInvestedHours,
fsRemainingHours,
fsEstimatedHours,
// subtitle
fsRelease));
fsName));

fieldSetterMap.put(Entity.SUITE_RUN_SCHEDULER_RUN, asList(
// top
fsPhase,
fsStoryPoints,
fsOwner,
fsAuthor,
fsBasicStatus,
// bottom
fsInvestedHours,
fsRemainingHours,
fsEstimatedHours,
// subtitle
fsRelease));
fsName));
fieldSetterMap.put(Entity.QUALITY_STORY, asList(
// top
fsPhase,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ public class EntityFieldsConstants {

public static final String FIELD_DEFECT_TYPE = "defect_type";
public static final String FIELD_DESCRIPTION = "description";
public static final String FIELD_FEATURE = "parent";
public static final String FIELD_PARENT = "parent";
public static final String FIELD_RELEASE_PROCESS = "release_process";
public static final String FIELD_STATUS = "status";
public static final String FIELD_QAOWNER = "qa_owner";
public static final String FIELD_OWNER = "owner";
public static final String FIELD_BLOCKED = "blocked";
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<logback.version>1.2.13</logback.version>

<tycho-version>2.7.5</tycho-version>
<octane.common.version>26.1.1</octane.common.version>
<octane.common.version>26.1.2</octane.common.version>
<java.version>17</java.version>
<signhp.version>15.0</signhp.version>
<sign-hp-utility.version>1.0.5</sign-hp-utility.version>
Expand Down