Skip to content

Commit

Permalink
Merge pull request #39 from yas-okadatech/fix-novalue-fields
Browse files Browse the repository at this point in the history
fix: some fields which don't have values such as GROUP, etc are shown as column.
  • Loading branch information
u110 authored Nov 7, 2023
2 parents 4c4cdf4 + 98eccce commit eb18de8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repositories {
}

group = "io.trocco"
version = "0.1.9"
version = "0.1.10"

sourceCompatibility = 1.8
targetCompatibility = 1.8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,10 @@ private Schema buildSchema(final PluginTask task)
builder.add("$revision", Types.LONG);

for (Map.Entry<String, FieldProperty> fieldEntry : fields.entrySet()) {
builder.add(fieldEntry.getKey(), buildType(fieldEntry.getValue().getType()));
final Type type = buildType(fieldEntry.getValue().getType());
if (type != null) {
builder.add(fieldEntry.getKey(), type);
}
}

return builder.build();
Expand Down Expand Up @@ -230,8 +233,9 @@ private Type buildType(final FieldType fieldType)
case STATUS_ASSIGNEE:
case TIME:
case USER_SELECT:
default:
return Types.STRING;
default:
return null;
}
}
}

0 comments on commit eb18de8

Please sign in to comment.