| // Jest Snapshot v1, https://goo.gl/fbAQLP |
| |
| exports[`LookupEditDialog matches snapshot 1`] = ` |
| <Blueprint3.Dialog |
| canOutsideClickClose={true} |
| className="lookup-edit-dialog" |
| isOpen={true} |
| onClose={[Function]} |
| title="Add lookup" |
| > |
| <div |
| className="content" |
| > |
| <Blueprint3.FormGroup |
| label="Name" |
| > |
| <Blueprint3.InputGroup |
| disabled={false} |
| onChange={[Function]} |
| placeholder="Enter the lookup name" |
| value="test" |
| /> |
| </Blueprint3.FormGroup> |
| <Blueprint3.FormGroup |
| label="Tier" |
| > |
| <HTMLSelect |
| onChange={[Function]} |
| value="test" |
| > |
| <option |
| key="__default" |
| value="__default" |
| > |
| __default |
| </option> |
| <option |
| key="alt-tier" |
| value="alt-tier" |
| > |
| alt-tier |
| </option> |
| </HTMLSelect> |
| </Blueprint3.FormGroup> |
| <Blueprint3.FormGroup |
| label="Version" |
| > |
| <Blueprint3.InputGroup |
| onChange={[Function]} |
| placeholder="Enter the lookup version" |
| rightElement={ |
| <Blueprint3.Button |
| minimal={true} |
| onClick={[Function]} |
| text="Use ISO as version" |
| /> |
| } |
| value="test" |
| /> |
| </Blueprint3.FormGroup> |
| <Memo(FormJsonSelector) |
| onChange={[Function]} |
| tab="form" |
| /> |
| <AutoForm |
| fields={ |
| Array [ |
| Object { |
| "adjustment": [Function], |
| "name": "type", |
| "suggestions": Array [ |
| "map", |
| "cachedNamespace", |
| ], |
| "type": "string", |
| }, |
| Object { |
| "defined": [Function], |
| "height": "60vh", |
| "name": "map", |
| "type": "json", |
| }, |
| Object { |
| "defined": [Function], |
| "label": "Globally cached lookup type", |
| "name": "extractionNamespace.type", |
| "placeholder": "uri", |
| "suggestions": Array [ |
| "uri", |
| "jdbc", |
| ], |
| "type": "string", |
| }, |
| Object { |
| "defined": [Function], |
| "info": "A URI which specifies a directory (or other searchable resource) in which to search for files", |
| "label": "URI prefix", |
| "name": "extractionNamespace.uriPrefix", |
| "placeholder": "s3://bucket/some/key/prefix/", |
| "type": "string", |
| }, |
| Object { |
| "defined": [Function], |
| "info": "Optional regex for matching the file name under uriPrefix. Only used if uriPrefix is used", |
| "label": "File regex", |
| "name": "extractionNamespace.fileRegex", |
| "placeholder": "(optional)", |
| "type": "string", |
| }, |
| Object { |
| "defaultValue": "csv", |
| "defined": [Function], |
| "label": "Format", |
| "name": "extractionNamespace.namespaceParseSpec.format", |
| "suggestions": Array [ |
| "csv", |
| "tsv", |
| "customJson", |
| "simpleJson", |
| ], |
| "type": "string", |
| }, |
| Object { |
| "defined": [Function], |
| "info": "The list of columns in the csv file", |
| "label": "Columns", |
| "name": "extractionNamespace.namespaceParseSpec.columns", |
| "placeholder": "[\\"key\\", \\"value\\"]", |
| "type": "string-array", |
| }, |
| Object { |
| "defined": [Function], |
| "info": "The name of the column containing the key", |
| "label": "Key column", |
| "name": "extractionNamespace.namespaceParseSpec.keyColumn", |
| "placeholder": "Key", |
| "type": "string", |
| }, |
| Object { |
| "defined": [Function], |
| "info": "The name of the column containing the value", |
| "label": "Value column", |
| "name": "extractionNamespace.namespaceParseSpec.valueColumn", |
| "placeholder": "Value", |
| "type": "string", |
| }, |
| Object { |
| "defaultValue": false, |
| "defined": [Function], |
| "info": "A flag to indicate that column information can be extracted from the input files' header row", |
| "label": "Has header row", |
| "name": "extractionNamespace.namespaceParseSpec.hasHeaderRow", |
| "type": "boolean", |
| }, |
| Object { |
| "defined": [Function], |
| "info": "Number of header rows to be skipped. The default number of header rows to be skipped is 0.", |
| "label": "Skip header rows", |
| "name": "extractionNamespace.namespaceParseSpec.skipHeaderRows", |
| "placeholder": "(optional)", |
| "type": "number", |
| }, |
| Object { |
| "defined": [Function], |
| "label": "Delimiter", |
| "name": "extractionNamespace.namespaceParseSpec.delimiter", |
| "placeholder": "(optional)", |
| "type": "string", |
| }, |
| Object { |
| "defined": [Function], |
| "label": "List delimiter", |
| "name": "extractionNamespace.namespaceParseSpec.listDelimiter", |
| "placeholder": "(optional)", |
| "type": "string", |
| }, |
| Object { |
| "defined": [Function], |
| "label": "Key field name", |
| "name": "extractionNamespace.namespaceParseSpec.keyFieldName", |
| "placeholder": "key", |
| "type": "string", |
| }, |
| Object { |
| "defined": [Function], |
| "label": "Value field name", |
| "name": "extractionNamespace.namespaceParseSpec.valueFieldName", |
| "placeholder": "value", |
| "type": "string", |
| }, |
| Object { |
| "defined": [Function], |
| "info": <React.Fragment> |
| <p> |
| The namespace value in the SQL query: |
| </p> |
| <p> |
| SELECT keyColumn, valueColumn, tsColumn? FROM |
| <strong> |
| namespace |
| </strong> |
| .table WHERE filter |
| </p> |
| </React.Fragment>, |
| "label": "Namespace", |
| "name": "extractionNamespace.namespace", |
| "placeholder": "some_lookup", |
| "type": "string", |
| }, |
| Object { |
| "defined": [Function], |
| "info": "Defines the connectURI value on the The connector config to used", |
| "label": "CreateTables", |
| "name": "extractionNamespace.connectorConfig.createTables", |
| "type": "boolean", |
| }, |
| Object { |
| "defined": [Function], |
| "info": "Defines the connectURI value on the The connector config to used", |
| "label": "Connect URI", |
| "name": "extractionNamespace.connectorConfig.connectURI", |
| "type": "string", |
| }, |
| Object { |
| "defined": [Function], |
| "info": "Defines the user to be used by the connector config", |
| "label": "User", |
| "name": "extractionNamespace.connectorConfig.user", |
| "type": "string", |
| }, |
| Object { |
| "defined": [Function], |
| "info": "Defines the password to be used by the connector config", |
| "label": "Password", |
| "name": "extractionNamespace.connectorConfig.password", |
| "type": "string", |
| }, |
| Object { |
| "defined": [Function], |
| "info": <React.Fragment> |
| <p> |
| The table which contains the key value pairs. This will become the table value in the SQL query: |
| </p> |
| <p> |
| SELECT keyColumn, valueColumn, tsColumn? FROM namespace. |
| <strong> |
| table |
| </strong> |
| WHERE filter |
| </p> |
| </React.Fragment>, |
| "label": "Table", |
| "name": "extractionNamespace.table", |
| "placeholder": "some_lookup_table", |
| "type": "string", |
| }, |
| Object { |
| "defined": [Function], |
| "info": <React.Fragment> |
| <p> |
| The column in the table which contains the keys. This will become the keyColumn value in the SQL query: |
| </p> |
| <p> |
| SELECT |
| <strong> |
| keyColumn |
| </strong> |
| , valueColumn, tsColumn? FROM namespace.table WHERE filter |
| </p> |
| </React.Fragment>, |
| "label": "Key column", |
| "name": "extractionNamespace.keyColumn", |
| "placeholder": "my_key_value", |
| "type": "string", |
| }, |
| Object { |
| "defined": [Function], |
| "info": <React.Fragment> |
| <p> |
| The column in table which contains the values. This will become the valueColumn value in the SQL query: |
| </p> |
| <p> |
| SELECT keyColumn, |
| <strong> |
| valueColumn |
| </strong> |
| , tsColumn? FROM namespace.table WHERE filter |
| </p> |
| </React.Fragment>, |
| "label": "Value column", |
| "name": "extractionNamespace.valueColumn", |
| "placeholder": "my_column_value", |
| "type": "string", |
| }, |
| Object { |
| "defined": [Function], |
| "info": <React.Fragment> |
| <p> |
| The filter to be used when selecting lookups, this is used to create a where clause on lookup population. This will become the expression filter in the SQL query: |
| </p> |
| <p> |
| SELECT keyColumn, valueColumn, tsColumn? FROM namespace.table WHERE |
| |
| <strong> |
| filter |
| </strong> |
| </p> |
| </React.Fragment>, |
| "label": "Filter", |
| "name": "extractionNamespace.filter", |
| "placeholder": "(optional)", |
| "type": "string", |
| }, |
| Object { |
| "defined": [Function], |
| "info": <React.Fragment> |
| <p> |
| The column in table which contains when the key was updated. This will become the Value in the SQL query: |
| </p> |
| <p> |
| SELECT keyColumn, valueColumn, |
| <strong> |
| tsColumn |
| </strong> |
| ? FROM namespace.table WHERE filter |
| </p> |
| </React.Fragment>, |
| "label": "TsColumn", |
| "name": "extractionNamespace.tsColumn", |
| "placeholder": "(optional)", |
| "type": "string", |
| }, |
| Object { |
| "defined": [Function], |
| "info": "Period between polling for updates", |
| "label": "Poll period", |
| "name": "extractionNamespace.pollPeriod", |
| "placeholder": "(optional)", |
| "type": "string", |
| }, |
| Object { |
| "defined": [Function], |
| "info": "How long to wait (in ms) for the first run of the cache to populate. 0 indicates to not wait", |
| "label": "First cache timeout", |
| "name": "firstCacheTimeout", |
| "placeholder": "(optional)", |
| "type": "number", |
| }, |
| Object { |
| "defaultValue": false, |
| "defined": [Function], |
| "info": "If the underlying map is injective (keys and values are unique) then optimizations can occur internally by setting this to true", |
| "name": "injective", |
| "type": "boolean", |
| }, |
| ] |
| } |
| model={ |
| Object { |
| "map": Object { |
| "a": 1, |
| }, |
| "type": "map", |
| } |
| } |
| onChange={[Function]} |
| /> |
| </div> |
| <div |
| className="bp3-dialog-footer" |
| > |
| <div |
| className="bp3-dialog-footer-actions" |
| > |
| <Blueprint3.Button |
| onClick={[Function]} |
| text="Close" |
| /> |
| <Blueprint3.Button |
| disabled={false} |
| intent="primary" |
| onClick={[Function]} |
| text="Submit" |
| /> |
| </div> |
| </div> |
| </Blueprint3.Dialog> |
| `; |