Skip to content

Revisions to support 'reindex' URL parameter#908

Merged
yuanzhou merged 5 commits intodev-integratefrom
karlburke/ReindexDisableFlag
Sep 9, 2025
Merged

Revisions to support 'reindex' URL parameter#908
yuanzhou merged 5 commits intodev-integratefrom
karlburke/ReindexDisableFlag

Conversation

@kburke
Copy link
Contributor

@kburke kburke commented Sep 8, 2025

Revisions to support 'reindex' URL parameter on endpoints for entity creation, entity modification, and multi-component creation for #907

yuanzhou and others added 2 commits August 26, 2025 21:42
…t-uploads

Yuanzhou/debug bulk edit uploads
…creation, entity modification, and multi-component creation for #907
@kburke kburke requested a review from yuanzhou September 8, 2025 17:46
src/app.py Outdated
try:
supress_reindex = _suppress_reindex()
except Exception as e:
return http_bad_request(e)
Copy link
Member

Choose a reason for hiding this comment

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

Change to use bad_request_error() (without return) to be consistent with all the other usages.

http_bad_request() was originally registered as Flask error handler with decorator when we used older version of Flask. We may remove them.

src/app.py Outdated
try:
suppress_reindex = _suppress_reindex()
except Exception as e:
return http_bad_request(e)
Copy link
Member

Choose a reason for hiding this comment

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

Same as the previous comment. Change to use bad_request_error() (without return) to be consistent with all the other usages.

elif reindex_str == 'true':
return False
raise Exception(f"The value of the 'reindex' parameter must be True or False."
f" '{request.args.get('reindex')}' is not recognized.")
Copy link
Member

Choose a reason for hiding this comment

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

Can we also explicitly specify that the value is case-insensitive in the log message? Saying must be True or False is only one case.

@yuanzhou yuanzhou merged commit b8dcf7d into dev-integrate Sep 9, 2025
4 checks passed
@yuanzhou yuanzhou deleted the karlburke/ReindexDisableFlag branch September 16, 2025 14:19
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.

2 participants