♻️ Restrict needs_global_options
keys
#1410
Open
+117
−22
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As discussed in #1409,
needs_global_options
has overlapping functionality withneeds_extra_options
.It makes more sense that
needs_global_options
is only used to define defaults for fields,whereas
needs_extra_options
is for specifying new fields.This PR restricts the keys allowed to:
needs_extra_options
itemneeds_extra_links
itemcollapse
constraints
hide
layout
status
style
tags
This means that projects with unknown keys will need to add them to
needs_extra_options
, e.g.Currently, just a deprecation warning is emitted, if any other keys are found, and no actual functionality is changed;
this will be left for change in a later version
note, there may be further changes in the future, as per #1409, like changing the name to
needs_field_defaults
, but that will be left for later