close
Skip to content

feat(taxonomy): added metadata taxonomy field support - #3710

Merged
mergify[bot] merged 9 commits into
box:masterfrom
TylerGauntlett:metadata-taxonomy-options-api
Oct 15, 2024
Merged

feat(taxonomy): added metadata taxonomy field support#3710
mergify[bot] merged 9 commits into
box:masterfrom
TylerGauntlett:metadata-taxonomy-options-api

Conversation

@TylerGauntlett

@TylerGauntlett TylerGauntlett commented Oct 9, 2024

Copy link
Copy Markdown
Contributor
  • Added support for new taxonomy fi

2024-10-11 15 57 14
eld (if returned by the backend)

@TylerGauntlett
TylerGauntlett requested review from a team as code owners October 9, 2024 21:20
@TylerGauntlett
TylerGauntlett force-pushed the metadata-taxonomy-options-api branch from b007a11 to fc302d3 Compare October 9, 2024 21:41
@TylerGauntlett TylerGauntlett changed the title Metadata taxonomy options api feat(taxonomy): added metadata taxonomy field support Oct 9, 2024
@CLAassistant

CLAassistant commented Oct 11, 2024

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@TylerGauntlett
TylerGauntlett force-pushed the metadata-taxonomy-options-api branch from bceaf14 to 5a4998a Compare October 11, 2024 16:21
…data-taxonomy-options-api

# Conflicts:
#	package.json
#	src/elements/content-sidebar/MetadataInstanceEditor.tsx
#	src/elements/content-sidebar/MetadataSidebarRedesign.tsx
#	src/elements/content-sidebar/__tests__/MetadataInstanceEditor.test.tsx
#	yarn.lock
Comment thread src/api/Metadata.js
const params = {
...(marker ? { marker } : {}),
...(searchInput ? { searchInput } : {}),
...(query_text ? { query_text } : {}),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit but should this be camel cased?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is intentional as the query string param is required in snake case (ie /metadata?query_text=search)

@jmcbgaston jmcbgaston left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@JChan106 JChan106 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

const showList = !showEditor && templateInstances.length > 0 && !editingTemplate;
const areAiSuggestionsAvailable = isExtensionSupportedForMetadataSuggestions(file?.extension ?? '');

const taxonomyOptionsFetcher = async (

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: i don't think the async is needed since we're not directly using await. the function will still be a promise since metadataTaxonomyFetcher is async

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this repo favors utils folder path

@mergify
mergify Bot merged commit 3a0c27e into box:master Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants