While working on
#2737719: EntityResource: Provide comprehensive test coverage: for every entity type, every format, every method →
, I noticed it was unfortunately necessary to rebuild the router whenever you imported (i.e. deployed) RestResourceConfig
config entities. This should happen automatically thanks to a ConfigEvents::SAVE
event subscriber.
Worse, you actually even need to call drupal_flush_all_caches()
: just calling $this->container->get('router.builder')->rebuild()
is insufficient! (I have no idea why yet.)
When doing an import through the UI, this means you need to go to /admin/config/development/performance
and click the button. If a developer forgets this step, then their REST routes won't work.
http_response
cache tag to all cacheable responses.http_response_
cache tag after every rebuild.RestResourceConfig::post(Save|Delete)
mark the router as needing a rebuild.rest.settings
config) that marks the router as needing a rebuild.Together this means that:
RestResourceConfig
config entities or rest.settings
simple config change, mark the router as needing a rebuild, which will trigger the above.None.
None.
None.
None.
Fixed
8.4 ⚰️
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.