Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 9 commits into from
Oct 15, 2024

Conversation

TylerGauntlett
Copy link
Contributor

@TylerGauntlett TylerGauntlett commented Oct 9, 2024

  • 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 changed the title Metadata taxonomy options api feat(taxonomy): added metadata taxonomy field support Oct 9, 2024
@CLAassistant
Copy link

CLAassistant commented Oct 11, 2024

CLA assistant check
All committers have signed the CLA.

…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
const params = {
...(marker ? { marker } : {}),
...(searchInput ? { searchInput } : {}),
...(query_text ? { query_text } : {}),

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
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)

Copy link

@jmcbgaston jmcbgaston left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@JChan106 JChan106 left a comment

Choose a reason for hiding this comment

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

lgtm

@@ -169,6 +171,14 @@ function MetadataSidebarRedesign({ api, elementId, fileId, onError, isFeatureEna
const showList = !showEditor && templateInstances.length > 0 && !editingTemplate;
const areAiSuggestionsAvailable = isExtensionSupportedForMetadataSuggestions(file?.extension ?? '');

const taxonomyOptionsFetcher = async (
Copy link
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
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
6 checks passed
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