Skip to content

Commit

Permalink
feat: support for IModuleComment and IWorkRecord (#65)
Browse files Browse the repository at this point in the history
Refs: #64
  • Loading branch information
grigoriev authored Jul 18, 2024
1 parent 106e57d commit e183022
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import com.polarion.alm.projects.model.IUniqueObject;
import com.polarion.alm.tracker.model.IModule;
import com.polarion.alm.tracker.model.IModuleComment;
import com.polarion.alm.tracker.model.IPlan;
import com.polarion.alm.tracker.model.ITestRun;
import com.polarion.alm.tracker.model.IWorkItem;
import com.polarion.alm.tracker.model.IWorkRecord;
import com.polarion.core.util.StringUtils;
import lombok.Data;
import org.jetbrains.annotations.NotNull;
Expand Down Expand Up @@ -136,7 +138,9 @@ public enum ItemType {
WORKITEM(IWorkItem.class),
TESTRUN(ITestRun.class),
PLAN(IPlan.class),
MODULE(IModule.class);
MODULE(IModule.class),
MODULE_COMMENT(IModuleComment.class),
WORK_RECORD(IWorkRecord.class);

final Class<? extends IUniqueObject> itemClass;

Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/webapp/interceptor-admin/js/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ function getItemTypeName(itemType) {
case 'TESTRUN': return 'Test Run';
case 'MODULE': return 'Module';
case 'PLAN': return 'Plan';
case 'MODULE_COMMENT': return 'Module Comment';
case 'WORK_RECORD': return 'Work Record';
}
return itemType;
}
Expand Down

0 comments on commit e183022

Please sign in to comment.