ckan / ckan/ckanext-scheming

How to implement tag-like autocomplete for large select choice lists?

Open
#74 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
102
Forks
182
PR merge metrics
No merged PRs in 30d

Description

Using the select widget with its choices defined in the custom schema becomes a performance issue for large lists of choices, as they are fully loaded when the dataset edit form is rendered. E.g., 2000 lines of geojson for the spatial snippet will significantly slow down the read view.

@wardi could you point me in the right direction: Is there an elegant way to provide an autocompleting box (like the tag snippet) for custom lists of label:value pairs?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing how the select widget loads choices from a custom schema during dataset edit-form rendering, then compare it with the tag snippet's autocomplete behavior. The issue does not name files or tests; done would mean large label:value lists are searched interactively without fully loading all choices into the form.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.