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(ui): use defaultDepth in API view #11950

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tak-amboss
Copy link
Contributor

What?

Respects the defaultDepth setting in the admin UI API view.

Why?

The current default is hardcoded to 1 with no configuration option. This can lead to performance issues on documents with a lot of related large documents. Having the ability to define a different default can prevent this issue.

How?

Set the depth in the API view to config.defaultDepth as default.

@JarrodMFlesch
Copy link
Contributor

@tak-amboss I am good with this! I believe defaultDepth is set even when undefined in the config. Can you confirm? And then we can merge this in.

@tak-amboss
Copy link
Contributor Author

Thanks @JarrodMFlesch
Yes, if not set it defaults to the config defaults as defined in

config.defaultDepth = config.defaultDepth ?? 2

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.

2 participants