Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
3 changes: 2 additions & 1 deletion vuu/src/main/scala/org/finos/vuu/api/TableDef.scala
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ class TableDef(val name: String,
val joinFields: Seq[String],
val autosubscribe: Boolean = false,
val links: VisualLinks = VisualLinks(),
val indices: Indices) extends VuuInMemPluginLocator {
val indices: Indices,
val invisible: Boolean = false) extends VuuInMemPluginLocator {

private val createdTimeColumn: SimpleColumn = SimpleColumn(CreatedTimeColumnName, customColumns.length, DataType.fromString("long"))
private val updatedTimeColumn: SimpleColumn = SimpleColumn(LastUpdatedTimeColumnName, customColumns.length + 1, DataType.fromString("long"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,9 @@ class CoreServerApiHandler(val viewPortContainer: ViewPortContainer,

val table = tableContainer.getTable(msg.table.table)

if (table == null)
errorMsg(s"no table found for ${msg.table}")(ctx)
else {
if (table == null || table.getTableDef.invisible) {
vsMsg(CreateViewPortReject(msg.table, s"no table found for ${msg.table}"))(ctx)
} else {

val columns = if (msg.columns.length == 1 && msg.columns(0) == "*") {
logger.trace("[CreateViewPortRequest] Wildcard specified for columns, going to return all")
Expand Down
Loading