Skip to content

7.x-2.3

Compare
Choose a tag to compare
@e0ipso e0ipso released this 03 Dec 16:56
· 58 commits to 7.x-2.x since this release

[BUGFIX] Avoid INNER JOIN for LEFT JOIN filters

fa5205c by Mateu Aguiló Bosch (G)

If the first field condition (alphabetically) is a LEFT JOIN filter,
make sure that subsequent fields do not join to it with an INNER
JOIN.

:100644 100644 9f2f944... c47114a... M  src/Plugin/resource/DataProvider/DataProvider.php
:100644 100644 adb10cb... 85a8340... M  src/Util/EntityFieldQuery.php

[BUGFIX] Better support for forbidden entities

7c956e5 by Mateu Aguiló Bosch (G)

When requesting a forbidden entity a 403 should arise. When
requesting a forbidden entity as part of a list, it should be
ignored and reported as denied in the metadata.

:100644 100644 f03350f... 889259d... M  modules/restful_example/src/Plugin/resource/variables/DataProviderVariable.php
:100644 100644 7ef87d4... f552044... M  modules/restful_token_auth/src/Plugin/resource/AccessToken__1_0.php
:100644 100644 64964e5... 66fe45a... M  restful.admin.inc
:100644 100644 b898f45... 2edf0ad... M  restful.info
:000000 100644 0000000... 52fc653... A  src/Exception/InaccessibleRecordException.php
:100644 100644 a8df667... fb599b5... M  src/Plugin/formatter/FormatterJson.php
:100644 100644 5c21672... c5007c9... M  src/Plugin/formatter/FormatterJsonApi.php
:100644 100644 e78c224... b0fc62e... M  src/Plugin/resource/DataProvider/CacheDecoratedDataProvider.php
:100644 100644 f898625... c097361... M  src/Plugin/resource/DataProvider/DataProviderEntity.php
:100644 100644 e32a452... 4b6e05a... M  src/Plugin/resource/DataProvider/DataProviderFile.php
:100644 100644 4993a24... d210480... M  src/Plugin/resource/DataProvider/DataProviderPlug.php
:100644 100644 946c0ca... 0c3839c... M  src/Plugin/resource/Decorators/CacheDecoratedResource.php
:100644 100644 d51d845... 1478305... M  src/Plugin/resource/Field/ResourceFieldEntity.php
:100644 100644 955688e... cddcda5... M  src/Plugin/resource/Resource.php
:100644 100644 3dc5cb8... c85af4e... M  tests/RestfulDiscoveryTestCase.test
:100644 100644 076b4c6... f74de58... M  tests/RestfulEntityUserAccessTestCase.test
:100644 100644 519d3dd... 265c7e8... M  tests/RestfulExceptionHandleTestCase.test
:000000 100644 0000000... f13009d... A  tests/RestfulForbiddenItemsTestCase.test
:100644 100644 7df77aa... 811781a... M  tests/RestfulJsonApiTestCase.test
:100644 100644 0d5e9a8... 5cc2b06... M  tests/RestfulListTestCase.test
:100644 100644 26fd73e... e3197c9... M  tests/modules/restful_test/restful_test.module

[BUGFIX] Handle invalid entity error

e37a569 by Mateu Aguiló Bosch (G)

If the underlying data provider does not return a resource field
collection, we cannot call any related method to it.

:100644 100644 ec3fd10... e78c224... M  src/Plugin/resource/DataProvider/CacheDecoratedDataProvider.php

[BUGFIX] Allow disabling default resources from the admin

194ef8d by Mateu Aguiló Bosch (G)

Connect the admin interface so plugins are disbled.

:100644 100644 a27059f... 9623915... M  restful.module
:100644 100644 f949bdd... 3dc5cb8... M  tests/RestfulDiscoveryTestCase.test

[BUGFIX] Remove trailing slash to fix resource list

fc8cb65 by Roy Segall (G)

Remove the trailing slash in the dynamic hook_menu that leads to
the 404 on the discovery page.

:100644 100644 17f124e... a27059f... M  restful.module
:100644 100644 3e087b0... f949bdd... M  tests/RestfulDiscoveryTestCase.test

[FEATURE] Allow setting the bundles to FALSE

b49b024 by edwardaa (G)

If the bundles are set to FALSE then the no bundles are considered
in the generated EFQ instead of adding them all.

:000000 100644 0000000... 2edd60c... A  modules/restful_example/src/Plugin/resource/comment/Comments__1_0.php
:000000 100644 0000000... 7ca6e00... A  modules/restful_example/src/Plugin/resource/comment/DataProviderComment.php
:100644 100644 de9a129... b898f45... M  restful.info
:100644 100644 9a75c7e... f898625... M  src/Plugin/resource/DataProvider/DataProviderEntity.php
:000000 100644 0000000... c1e24c7... A  tests/RestfulCommentTestCase.test

[BUGFIX] Pass in the interpreter to the ResourceField::value

5000a51 by Mateu Aguiló Bosch (G)

Failing to do so results in a PHP error with the type hinting.

:100644 100644 6319283... d53d726... M  src/Plugin/resource/Field/ResourceField.php