plone / plone/plone.restapi

Support fields/widgets with concrete dynamic vocabularies

Open
#1,077 3 comments 0 reactions 0 assignees View on GitHub

@alecpm is already working on this.

Since Mar 1, 2021.

  • #1078 by @alecpm — open
Dominant language
Python
Stars
109
Forks
107
Avg merge
2d 3h
Merged PRs (30d)
4

Description

Right now fields that have vocabulary set to a vocabulary name and vocabularies which are essentially static are well supported by plone.restapi. Vocabularies where the values depend on the context or on a query (e.g. vocabularies providing z3c.formwidget.query.interfaces.IQuerySource) are not really supported. This relates to #535, and I will add a PR with basic support for vocabularies using IQuerySource shortly.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review related issue #535 and the open pull request #1078 first, since the proposed basic support is already under way. Then inspect how plone.restapi handles fields with static vocabulary names and determine whether context- or query-dependent vocabularies using IQuerySource are covered; done means those dynamic vocabularies are supported without regressing static ones.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.