apostrophecms / apostrophecms/apostrophe

Remove `showFields` option for unused fields in` apostrophe-pieces-widgets`

Open
#1,838 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
4.6k
Forks
650
Avg merge
19h 21m
Merged PRs (30d)
23

Description

Setting `limitByAll` or `limitByTag` as a module level option on an `apostrophe-pieces-widget` does not add that field to the schema, but the `showFields` field still has a select option for them. Additional logic is needed to make sure only fields that exist are select options in `showFields`

Contributor guide

Open the contributing guide

Research direction

No file or test is identified in the issue. Start by locating the apostrophe-pieces-widgets schema code that builds showFields options, then compare it with the fields created when limitByAll or limitByTag are configured. Done means absent schema fields no longer appear as showFields choices, with regression coverage if an existing test area is found.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.