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

Facet / Add meta property to customize label. #8536

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

fxprunayre
Copy link
Member

To facilitate facet configuration when using the application using webcomponent mode. All users may not have access to the admin UI to add or customize labels using database translations.

Add also documentation on how to configure labels when the key used for the facet is not known.

eg.

facetConfig: {
              resourceType: {
                terms: {
                  field: "resourceType"
                },
                meta: {
                  labels: {
                    eng: "Hierarchy level"
                  },

Checklist

  • I have read the contribution guidelines
  • Pull request provided for main branch, backports managed with label
  • Good housekeeping of code, cleaning up comments, tests, and documentation
  • Clean commit history broken into understandable chucks, avoiding big commits with hundreds of files, cautious of reformatting and whitespace changes
  • Clean commit messages, longer verbose messages are encouraged
  • API Changes are identified in commit messages
  • Testing provided for features or enhancements using automatic tests
  • User documentation provided for new features or enhancements in manual
  • Build documentation provided for development instructions in README.md files
  • Library management using pom.xml dependency management. Update build documentation with intended library use and library tutorials or documentation

Funded by Ifremer

@fxprunayre fxprunayre added this to the 4.4.7 milestone Dec 6, 2024
@fxprunayre fxprunayre requested a review from josegar74 December 6, 2024 08:47
Add also documentation on how to configure labels when the key used for
the facet is not known.
@fxprunayre fxprunayre force-pushed the 446-facetlabelinconfig branch from 7431229 to 211b0f5 Compare December 6, 2024 11:46
@CLAassistant
Copy link

CLAassistant commented Dec 8, 2024

CLA assistant check
All committers have signed the CLA.

@josegar74
Copy link
Member

@fxprunayre please check the changes applied to apply the translation key filter inside getFacetLabel to simplify the Javascript expressions.

Copy link

sonarcloud bot commented Dec 16, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants