Skip to content

Commit

Permalink
Add empty field to instance
Browse files Browse the repository at this point in the history
  • Loading branch information
fvilla committed Dec 8, 2024
1 parent c1e669b commit 23c3da8
Show file tree
Hide file tree
Showing 4 changed files with 145 additions and 65 deletions.
1 change: 1 addition & 0 deletions klab.core.common/src/main/avro/klabdata.avdl
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ protocol KlabData {
record Instance {
string name;
string geometry;
boolean empty = false;
array<Notification> notifications;
union {null, map<string>} attributes;
union {null, map<string>} metadata;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public DataImpl(Instance instance) {

@Override
public boolean isEmpty() {
return instance == null; /* TODO need to check the instance */
return instance == null || instance.getEmpty();
}

@Override
Expand Down
Loading

0 comments on commit 23c3da8

Please sign in to comment.