Skip to content

Commit

Permalink
variant search UI
Browse files Browse the repository at this point in the history
  • Loading branch information
tjennison-work committed Sep 30, 2024
1 parent 2598da9 commit e97f3b3
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
syntax = "proto3";

package tanagra.configschema;

option go_package = "github.com/DataBiosphere/tanagra/criteriaselector/configschemapb";
option java_package = "bio.terra.tanagra.proto.criteriaselector.configschema";
option java_outer_classname = "CFEntityGroup";

import "column.proto";
import "criteriaselector/value_config.proto";
import "sort_order.proto";

// Config for an GroupItems entity group criteria with filterable attributes.
message EntityGroup {
// Columns displayed in the list view.
repeated Column columns = 1;

message SelectableAttribute {
string id = 1;
}

// Attributes that can be part of a selection.
repeated SelectableAttribute attributes = 2;

// The sort order to use in the list view.
SortOrder sort_order = 3;

// Number of values to display on each page in the list view. Otherwise, a
// default value is applied.
optional int32 page_size = 4;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
syntax = "proto3";

package tanagra.dataschema;

option go_package = "github.com/DataBiosphere/tanagra/criteriaselector/dataschemapb";
option java_package = "bio.terra.tanagra.proto.criteriaselector.dataschema";
option java_outer_classname = "DTFilterableGroup";

import "criteriaselector/key.proto";
import "criteriaselector/value_data.proto";

// Data for an GroupItems entity group criteria with filterable attributes.
message FilterableGroup {
message SingleSelect {
// The key of the selected value, which references group entity (e.g.
// variant when filtering variantPerson).
Key key = 1;

// The visible name for the selection. This is stored to avoid extra lookups
// when rendering.
string name = 2;
}

message SelectAll {
// The string query of the selection.
string query = 1;

// Optional values that comprise the selection.
repeated ValueData values = 2;

// Single items excluded from this selection.
repeated SingleSelect exclusions = 3;
}

message Selection {
oneof selection {
SingleSelect single = 1;
SelectAll all = 2;
}
}

// The list of selections, each of which may be a single item or a set of
// parameters.
repeated Selection selected = 1;
}

0 comments on commit e97f3b3

Please sign in to comment.