Skip to content

Commit

Permalink
ui: replace encodeURI with encodeURIComponent in entity details page (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaileshParmar11 committed Aug 10, 2023
1 parent bbf2fdc commit d9cb410
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {

const ENTITIES = {
table: {
...SEARCH_ENTITY_TABLE.table_4,
...SEARCH_ENTITY_TABLE.table_5,
schema: 'shopify',
database: 'ecommerce_db',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,12 @@ const TableDetailsPageV1 = () => {
);
const tableFqn = useMemo(
() =>
getPartialNameFromTableFQN(
datasetFQN,
[FqnPart.Service, FqnPart.Database, FqnPart.Schema, FqnPart.Table],
FQN_SEPARATOR_CHAR
encodeURIComponent(
getPartialNameFromTableFQN(
decodeURIComponent(datasetFQN),
[FqnPart.Service, FqnPart.Database, FqnPart.Schema, FqnPart.Table],
FQN_SEPARATOR_CHAR
)
),
[datasetFQN]
);
Expand Down

0 comments on commit d9cb410

Please sign in to comment.