fix URI wording (#16111)

This commit is contained in:
Vadim Ogievetsky 2024-03-13 11:38:51 -07:00 committed by GitHub
parent 910124d4de
commit f7c0e425a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 26 additions and 34 deletions

View File

@ -127,33 +127,28 @@ exports[`LookupEditDialog matches snapshot 1`] = `
},
{
"defined": [Function],
"info": <React.Fragment>
<p>
URI for the file of interest, specified as a
<Unknown>
file
</Unknown>
,
<Unknown>
hdfs
</Unknown>
,
<Unknown>
s3
</Unknown>
, or
<Unknown>
gs
</Unknown>
path
</p>
<p>
The URI prefix option is strictly better than URI and should be used instead
</p>
</React.Fragment>,
"info": <p>
URI for the file of interest, specified as a
<Unknown>
file
</Unknown>
,
<Unknown>
hdfs
</Unknown>
,
<Unknown>
s3
</Unknown>
, or
<Unknown>
gs
</Unknown>
path
</p>,
"issueWithValue": [Function],
"label": "URI (deprecated)",
"label": "URI",
"name": "extractionNamespace.uri",
"placeholder": "s3://bucket/some/key/prefix/lookups-01.gz",
"required": [Function],

View File

@ -169,7 +169,7 @@ export const LOOKUP_FIELDS: Field<LookupSpec>[] = [
{
name: 'extractionNamespace.uri',
type: 'string',
label: 'URI (deprecated)',
label: 'URI',
placeholder: 's3://bucket/some/key/prefix/lookups-01.gz',
defined: l =>
oneOfKnown(deepGet(l, 'extractionNamespace.type'), KNOWN_EXTRACTION_NAMESPACE_TYPES, 'uri') &&
@ -178,13 +178,10 @@ export const LOOKUP_FIELDS: Field<LookupSpec>[] = [
!deepGet(l, 'extractionNamespace.uriPrefix') && !deepGet(l, 'extractionNamespace.uri'),
issueWithValue: issueWithUri,
info: (
<>
<p>
URI for the file of interest, specified as a <Code>file</Code>, <Code>hdfs</Code>,{' '}
<Code>s3</Code>, or <Code>gs</Code> path
</p>
<p>The URI prefix option is strictly better than URI and should be used instead</p>
</>
<p>
URI for the file of interest, specified as a <Code>file</Code>, <Code>hdfs</Code>,{' '}
<Code>s3</Code>, or <Code>gs</Code> path
</p>
),
},
{