Skip to content

Commit 6f88b33

Browse files
authored
fix missing engagement type (#174)
1 parent 3489a1b commit 6f88b33

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/main/java/com/redhat/labs/lodestar/model/Engagement.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@ public class Engagement {
129129
@JsonbProperty("engagement_region")
130130
private String engagementRegion;
131131

132-
//Legacy
132+
//Legacy - front end should switch to name
133133
@JsonbProperty("project_name")
134134
private String projectName;
135135

136-
//Legacy
136+
//Legacy - front end should switch to type
137137
@JsonbProperty("engagement_type")
138138
private String engagementType;
139139

@@ -167,6 +167,12 @@ public void setEngagementType(String engagementType) {
167167
this.type = engagementType;
168168
}
169169

170+
//Legacy
171+
public void setType(String type) {
172+
this.engagementType = type;
173+
this.type = type;
174+
}
175+
170176
//Legacy
171177
public void addArtifact(Artifact a) {
172178
if(artifacts == null) {

0 commit comments

Comments
 (0)