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

Add configuration parameter to load enumerations on all schemas. #5379

Merged
merged 7 commits into from
Nov 20, 2024

Conversation

shaunrd0
Copy link
Contributor

This adds a new config parameter rest.load_enumerations_on_array_open_all_schemas to control loading enumerations on all array schemas. The previously existing rest.load_enumerations_on_array_open config parameter is used to control loading enumerations on the latest schema only.


TYPE: FEATURE
DESC: Add rest.load_enumerations_on_array_open_all_schemas config parameter.

@shaunrd0 shaunrd0 requested a review from ypatia November 19, 2024 17:35
@shaunrd0 shaunrd0 marked this pull request as ready for review November 19, 2024 22:21
@shaunrd0 shaunrd0 requested a review from a team as a code owner November 19, 2024 22:21
Copy link
Member

@ypatia ypatia left a comment

Choose a reason for hiding this comment

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

Thanks for the changes and the new tests!

@@ -904,32 +892,24 @@ Array::get_enumerations_all_schemas() {
}

// Store the loaded enumerations into the schemas.
auto latest_schema = opened_array_->array_schema_latest_ptr();
for (const auto& schema_enmrs : ret) {
for (const auto& [schema_name, enmrs] : ret) {
Copy link
Member

Choose a reason for hiding this comment

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

❤️

@ypatia
Copy link
Member

ypatia commented Nov 20, 2024

I am merging this so that we can proceed with the release but Academy docs will need to be updated eventually with that config change. cc @shaunrd0 @nickvigilante

@ypatia ypatia merged commit 38e3aed into dev Nov 20, 2024
63 checks passed
@ypatia ypatia deleted the smr/sc-59450/enmr-config-param branch November 20, 2024 09:44
ihnorton added a commit that referenced this pull request Nov 20, 2024
This adds a new config parameter
`rest.load_enumerations_on_array_open_all_schemas` to control loading
enumerations on all array schemas. The previously existing
`rest.load_enumerations_on_array_open` config parameter is used to
control loading enumerations on the latest schema only.

---
TYPE: FEATURE
DESC: Add `rest.load_enumerations_on_array_open_all_schemas` config
parameter.

---------

Co-authored-by: Isaiah Norton <[email protected]>
nickvigilante added a commit that referenced this pull request Nov 20, 2024
Updated config_api_external.h to match config.h
shaunrd0 added a commit that referenced this pull request Nov 20, 2024
Update docs for REST enumeration config options.

---
TYPE: NO_HISTORY

---------

Co-authored-by: Shaun Reed <[email protected]>
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