Skip to content

Commit

Permalink
Fix faulty conflict resolutions
Browse files Browse the repository at this point in the history
- for finos:main -> sl:main
  • Loading branch information
cfisher-scottlogic committed Nov 13, 2023
1 parent 66fc0db commit 61cafc2
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 34 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
import {
DataSource,
DataSourceMenusMessage,
DataSourceVisualLinkCreatedMessage,
DataSourceVisualLinkRemovedMessage,
DataSourceVisualLinksMessage,
MenuRpcResponse,
VuuFeatureInvocationMessage,
VuuFeatureMessage,
VuuUIMessageInRPCEditReject,
VuuUIMessageInRPCEditResponse,
} from "@finos/vuu-data";
Expand All @@ -16,7 +11,6 @@ import {
MenuActionHandler,
MenuBuilder,
} from "@finos/vuu-data-types";
import { GridAction } from "@finos/vuu-datagrid-types";
import { getFilterPredicate } from "@finos/vuu-filter-parser";
import {
ClientToServerMenuCellRPC,
Expand Down Expand Up @@ -185,7 +179,7 @@ export type VuuServerMenuOptions = {
columnMap: ColumnMap;
columnName: string;
row: DataSourceRow;
selectedRowsCount: number;
selectedRows: DataSourceRow[];
viewport: string;
};

Expand Down
3 changes: 1 addition & 2 deletions vuu-ui/packages/vuu-data/src/connection-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
} from "./data-source";
import * as Message from "./server-proxy/messages";
import {
ConnectionQualityMetrics,
ConnectionStatusMessage,
isConnectionQualityMetrics,
isConnectionStatusMessage,
Expand All @@ -32,7 +33,6 @@ import {

// Note: inlined-worker is a generated file, it must be built
import { workerSourceCode } from "./inlined-worker";
import { ConnectionQualityMetrics } from "./vuuUIMessageTypes";
import { WebSocketProtocol } from "./websocket-connection";
import { TableSchema } from "./message-utils";

Expand Down Expand Up @@ -164,7 +164,6 @@ function handleMessageFromWorker({
} else if (isConnectionStatusMessage(message)) {
ConnectionManager.emit("connection-status", message);
} else if (isConnectionQualityMetrics(message)) {
console.log({ message });
ConnectionManager.emit("connection-metrics", message);
} else {
const requestId = (message as VuuUIMessageInRPC).requestId;
Expand Down
13 changes: 4 additions & 9 deletions vuu-ui/packages/vuu-data/src/json-data-source.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import { ColumnDescriptor, Selection } from "@finos/vuu-datagrid-types";
import {
ClientToServerEditRpc,
ClientToServerMenuRPC,
LinkDescriptorWithLabel,
VuuGroupBy,
VuuAggregation,
VuuGroupBy,
VuuRange,
VuuSort,
ClientToServerMenuRPC,
ClientToServerEditRpc,
VuuColumnDataType,
VuuRowDataItemType,
VuuSort,
} from "@finos/vuu-protocol-types";
import { DataSourceFilter, DataSourceRow } from "@finos/vuu-data-types";
import {
Expand Down Expand Up @@ -338,10 +337,6 @@ export class JsonDataSource
this.#aggregations = aggregations;
}

set data(data: JsonData) {
console.log(`set JsonDataSource data`);
}

get sort() {
return this.#sort;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,19 +263,13 @@ describe("updateLayout", () => {
it("errors if there are no metadata entries and multiple layouts in local storage with requested ID ", async () => {
saveLocalEntity(layoutsSaveLocation, [existingLayout, existingLayout]);

<<<<<<< HEAD
expectPromiseRejectsWithError(
() =>
persistenceManager.updateLayout(
existingId,
metadataToUpdate,
layoutToAdd
),
=======
expectError(
() =>
persistenceManager.updateLayout(existingId, metadataToAdd, layoutToAdd),
>>>>>>> finos-main
`No metadata with ID ${existingId}; Non-unique layout with ID ${existingId}`
);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,15 @@

.vuuBasketNewBasketPanel-body {
flex: 1 1 auto;
padding: 16px 0;
}

.vuuBasketNewBasketPanel-buttonBar {
--saltButton-borderRadius: 6px;
--saltButton-padding: 12px;
display: flex;
align-items: flex-end;
gap: 8px;
height: 32px;
justify-content: flex-end;
padding: 0 16px;

}
padding-top: 8px;
gap: 8px;
}
3 changes: 1 addition & 2 deletions vuu-ui/showcase/src/examples/Table/TableNext.examples.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@ import {
View,
} from "@finos/vuu-layout";
import { ContextPanel } from "@finos/vuu-shell";
import { TableNext } from "@finos/vuu-table";
import { GroupHeaderCellNext, TableNext } from "@finos/vuu-table";
import {
ColumnSettingsPanel,
TableSettingsPanel,
} from "@finos/vuu-table-extras";
import { ColumnDescriptor, TableConfig } from "@finos/vuu-datagrid-types";
import { CSSProperties, useCallback, useMemo, useState } from "react";
import { useTableConfig, useTestDataSource } from "../utils";
import { GroupHeaderCellNext } from "@finos/vuu-table";
import { getAllSchemas } from "@finos/vuu-data-test";

import "./TableNext.examples.css";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,6 @@ class VuuJoinTableProvider(implicit timeProvider: Clock, lifecycle: LifecycleCon

def eventToKey(tableName: String, ev: util.HashMap[String, Any]): String = {
val keyField = sourceTableDefsByName.get(tableName).keyField
if(keyField == null)
println("here")

ev.get(keyField).toString
}

Expand Down

0 comments on commit 61cafc2

Please sign in to comment.