Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

variant search criteria config #1021

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 = "CFFilterableGroup";

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

// Config for an GroupItems entity group criteria with filterable attributes.
message FilterableGroup {
// 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;
}
Loading