Problem/Motivation
- #2721595: Simplify REST configuration introduced 'resource' granularity configuration. It shipped with 8.2.0. 8.3.0 was released last week. Yet REST UI still does not yet support this.
- #2831716: REST UI does not support "resource" granularity updates REST UI to support 'resource' granularity.
- But what about all the REST resource config that was created in the mean time?
Proposed resolution
#2721595: Simplify REST configuration provided an update path, which did this:
// If each method has the same formats and the same authentication
// providers configured, convert it to 'granularity: resource', which has
// a simpler/less verbose configuration.
IOW: if you have the same formats and the same authentication configured for every method that you have enabled in your 'method' granularity REST resource configuration… then it is converted to 'resource' granularity. It expresses the same, and is not as needlessly complex.
We can simply reuse that same update path in the REST UI module!
Remaining tasks
None.
User interface changes
None.
API changes
None.
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2869443-2.patch | 831 bytes | wim leers |
Comments
Comment #2
wim leersComment #3
wim leersThis should land after #2831716: REST UI does not support "resource" granularity.
Comment #4
clemens.tolboomThis is now unblocked by #2831716: REST UI does not support "resource" granularity
Comment #5
wim leersAnd we have a working patch… which just reuses the existing update path in Drupal core, which is thoroughly tested :)
Comment #7
clemens.tolboomI haven't tested this patch. It looks OK to me.
Comment #8
wim leersWoot! I have tested it, manually. Worked fine :)
I think it makes sense to do a new release now? :)
Comment #9
clemens.tolboomGreat idea #2873751: Release 8.x.14