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

Rename ArrayField.size to max_size #273

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

Conversation

timgraham
Copy link
Collaborator

Vector search indexes need to be a fixed size, so size will be re-added to represent that (#264).

I didn't rename SplitArrayWidget.size, thinking maybe it makes sense to add a separate kwarg like fixed_size=True, but I'm still thinking about the best solution.

@timgraham timgraham force-pushed the rename-array-field-size branch from a345548 to 1c82dbd Compare March 26, 2025 00:01
@WaVEV
Copy link
Collaborator

WaVEV commented Mar 27, 2025

Vector search indexes need to be a fixed size, so size will be re-added to represent that (#264).

I didn't rename SplitArrayWidget.size, thinking maybe it makes sense to add a separate kwarg like fixed_size=True, but I'm still thinking about the best solution.

If in the future we want to add min size / min length, and maybe we have to refactor and breaks some compatibilities. So, how likely is to add min length in the future given the form supports it?.

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