diff --git a/src/app/components/data-view/data-template/data-template.component.ts b/src/app/components/data-view/data-template/data-template.component.ts index db837bea..c522fe49 100644 --- a/src/app/components/data-view/data-template/data-template.component.ts +++ b/src/app/components/data-view/data-template/data-template.component.ts @@ -116,7 +116,6 @@ export abstract class DataTemplateComponent implements OnInit, OnDestroy { return null; } const splits = route.split('.'); - return catalog.getEntityFromName(splits[0], splits[1]); }); diff --git a/src/app/containers/default-layout/default-layout.component.html b/src/app/containers/default-layout/default-layout.component.html index faf6a5be..e0bd30c0 100644 --- a/src/app/containers/default-layout/default-layout.component.html +++ b/src/app/containers/default-layout/default-layout.component.html @@ -2,7 +2,7 @@ - Polypheny Logo + Polypheny Logo
diff --git a/src/app/services/catalog.service.ts b/src/app/services/catalog.service.ts index 98f9b6f5..d7799f1b 100644 --- a/src/app/services/catalog.service.ts +++ b/src/app/services/catalog.service.ts @@ -103,6 +103,10 @@ export class CatalogService { } private updateSnapshot(snapshot: LogicalSnapshotModel) { + if (snapshot && (this.snapshot && this.snapshot.id === snapshot.id)) { + return; + } + this.snapshot = snapshot; this.namespaces.set(this.toIdMap(snapshot.namespaces)); diff --git a/src/app/views/querying/console/console.component.ts b/src/app/views/querying/console/console.component.ts index fdd8308d..6ee0a009 100644 --- a/src/app/views/querying/console/console.component.ts +++ b/src/app/views/querying/console/console.component.ts @@ -141,7 +141,7 @@ export class ConsoleComponent implements OnInit, OnDestroy { ngOnDestroy() { this._leftSidebar.close(); this.subscriptions.unsubscribe(); - this.websocket.close(); + this.websocket.close(); // closes the websocket to the information manager so cleanup info pages this._breadcrumb.hide(); window.onbeforeunload = null; window.onkeydown = null; diff --git a/src/app/views/schema-editing/edit-source-columns/edit-source-columns.component.html b/src/app/views/schema-editing/edit-source-columns/edit-source-columns.component.html index 8651a0fb..e838a6db 100644 --- a/src/app/views/schema-editing/edit-source-columns/edit-source-columns.component.html +++ b/src/app/views/schema-editing/edit-source-columns/edit-source-columns.component.html @@ -1,7 +1,7 @@ -
{{getTitle()}}
+
{{ getTitle() }}
@@ -14,164 +14,172 @@
{{getTitle()}}
Type Collection Parameters - Default - - - - {{ col.name }} - - - + @for (col of columns(); track col.id; let i = $index) { + + + + {{ col.name }} + + + - + - - - - {{col.dataType}} - {{col.collectionsType}} - - {{_types.precisionPlaceholder( col.dataType )}} - : {{col.precision}} - scale: {{col.scale}} - dimension: {{col.dimension}} - cardinality: {{col.cardinality}} - - {{col.defaultValue}} - - - - - - - - {{col.name}} - - {{col.dataType}} - {{col.collectionsType}} - - {{_types.precisionPlaceholder( col.dataType )}} - : {{col.precision}} - scale: {{col.scale}} - dimension: {{col.dimension}} - cardinality: {{col.cardinality}} - - {{col.defaultValue}} - - - - - - - - - {{col.dataType}} - {{col.collectionsType}} - - {{_types.precisionPlaceholder( col.dataType )}} - : {{col.precision}} - scale: {{col.scale}} - dimension: {{col.dimension}} - cardinality: {{col.cardinality}} - - - - - - - - - -
- - -
-
Foreign key
- - - - - - - - - - - - - - - - - - - - - + + + + + + + + + } + @for (col of getAddableColumns() | async; track col.id) { + + + + + + + + + + + + + + + + + + + + + + + }
FK NameColumn NameTarget TableTarget ColumnUpdate EnforcementDelete Enforcement
{{fk.fkName}}{{fk.sourceColumn}}{{fk.targetTable}}{{fk.targetColumn}}{{fk.onUpdate}}{{fk.onDelete}}
{{ col.dataType }}{{ col.collectionsType }} + {{ _types.precisionPlaceholder(col.dataType) }} + : {{ col.precision }} + scale: {{ col.scale }} + dimension: {{ col.dimension }} + cardinality: {{ col.cardinality }} + + +
{{ col.name }}{{ col.dataType }}{{ col.collectionsType }} + {{ _types.precisionPlaceholder(col.dataType) }} + : {{ col.precision }} + scale: {{ col.scale }} + dimension: {{ col.dimension }} + cardinality: {{ col.cardinality }} + {{ col.defaultValue }} + + {{ col.dataType }}{{ col.collectionsType }} + {{ _types.precisionPlaceholder(col.dataType) }} + : {{ col.precision }} + scale: {{ col.scale }} + dimension: {{ col.dimension }} + cardinality: {{ col.cardinality }} + + +
+ @if (foreignKeys() && foreignKeys().length > 0) { + +
+
Foreign key
+ - -
-
Source
- -
- - - - - - - - - - - - -
Unique nameAdapter
{{store.name}}{{store.adapterName}}
+ + + FK Name + Column Name + Target Table + Target Column + Update Enforcement + Delete Enforcement + + + + + {{ fk.fkName }} + {{ fk.sourceColumn }} + {{ fk.targetTable }} + {{ fk.targetColumn }} + {{ fk.onUpdate }} + {{ fk.onDelete }} + + + +
+ } - + @if (entity()?.entityType !== EntityType.VIEW) { + +
+
Source
+ + + + + + + + + + + + + +
Unique nameAdapter
{{ store.name }}{{ store.adapterName }}
- -
-
Underlying Tables
+
+ } + @if (placements != null && entity()?.entityType === EntityType.VIEW) { + +
+
Underlying Tables
- - - - - - - - - - - - - -
TableColumns
{{table.key}}{{table.value.join( ", " )}}
+ + + + + + + + + + + + + +
TableColumns
{{ table.key }}{{ table.value.join(", ") }}
-
+
+ }
diff --git a/src/app/views/schema-editing/edit-source-columns/edit-source-columns.component.ts b/src/app/views/schema-editing/edit-source-columns/edit-source-columns.component.ts index 1c54dbc0..fac5a867 100644 --- a/src/app/views/schema-editing/edit-source-columns/edit-source-columns.component.ts +++ b/src/app/views/schema-editing/edit-source-columns/edit-source-columns.component.ts @@ -130,9 +130,7 @@ export class EditSourceColumnsComponent implements OnInit, OnDestroy { } dropColumn(col: UiColumnDefinition) { - console.log(col); const oldColumn = new ColumnRequest(this.entity().id, col); - console.log(oldColumn); this._crud.dropColumn(oldColumn).subscribe({ next: (res: RelationalResult) => { if (res.error) {