Skip to content
Merged
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
12 changes: 9 additions & 3 deletions packages/oss-console/src/common/decodeMsgPackLiterals.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import core from '@clients/common/flyteidl/core';
import google from '@clients/common/flyteidl/google';
import $protobuf from 'protobufjs';
import { unpack } from 'msgpackr';
import isNil from 'lodash/isNil';
import entries from 'lodash/entries';
import isNil from 'lodash/isNil';
import { unpack } from 'msgpackr';
import $protobuf from 'protobufjs';

// Convert a JavaScript object to Protobuf Struct
function convertToStruct(obj: any) {
Expand All @@ -12,7 +12,7 @@
});

entries(obj).forEach(([key, value]) => {
struct.fields[key] = convertToValue(value);

Check warning on line 15 in packages/oss-console/src/common/decodeMsgPackLiterals.ts

View workflow job for this annotation

GitHub Actions / lint_project

'convertToValue' was used before it was defined
});

return struct;
Expand Down Expand Up @@ -62,3 +62,9 @@
}
return result;
};

// const _originalBindingDataCollectionDecode = flyteidl.core.BindingData.decode;
core.BindingData.decode = (_reader: $protobuf.Reader | Uint8Array, _length?: number) => {
// bindings not used anywhere in the code (for now)
return {};
};
Loading