ui: replace encodeURI with encodeURIComponent in entity details page (#12827)

This commit is contained in:
Shailesh Parmar 2023-08-10 11:33:08 +05:30 committed by GitHub
parent d8e288626c
commit c88ac0dd5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 3 deletions

View File

@ -83,6 +83,13 @@ export const SEARCH_ENTITY_TABLE = {
serviceName: 'sample_data',
entityType: 'Table',
},
table_5: {
term: 'dim.api/client',
displayName: 'dim.api/client',
entity: MYDATA_SUMMARY_OPTIONS.tables,
serviceName: 'sample_data',
entityType: 'Table',
},
};
export const SEARCH_ENTITY_TOPIC = {

View File

@ -29,7 +29,7 @@ import {
const ENTITIES = {
table: {
...SEARCH_ENTITY_TABLE.table_4,
...SEARCH_ENTITY_TABLE.table_5,
schema: 'shopify',
database: 'ecommerce_db',
},

View File

@ -127,9 +127,9 @@ const TableDetailsPageV1 = () => {
);
const tableFqn = useMemo(
() =>
encodeURI(
encodeURIComponent(
getPartialNameFromTableFQN(
decodeURI(datasetFQN),
decodeURIComponent(datasetFQN),
[FqnPart.Service, FqnPart.Database, FqnPart.Schema, FqnPart.Table],
FQN_SEPARATOR_CHAR
)