Git

You can anonymously read the source code, study it's features and documentation by going to the GitHub repository directoy:

https://github.com/ezpublishlegacy/ezpublish-api

You can anonymously check out the source code released by this project from its Git repository:

git clone https://github.com/ezpublishlegacy/ezpublish-api.git

You may be able to anonymously check out the source code released by this project from its expected composer package:

composer require ezpublishlegacy/ezpublish-api

To be able to commit changes to the project's repository, you need to be a member of the project.

Latest log messages

  • 9e06bc9e004efb5a8173dbb844b4ce7407dbaf30 on 19/02/2019 5:08 am by Andrew Longosz <alongosz@users.noreply.github.com> [GitHub Diff]
    Message: [Tests] Provided autoconfiguration for API integration tests (#2534)
  • c53d48d70dfbad2e547a0c33af097d7fb93a24bf on 18/02/2019 11:33 pm by André R <andre.romcke@gmail.com> [GitHub Diff]
    Message: EZP-30006: As a Developer I possibility to load several languages at once (#2524)

    Introduces API to load several languages at once (specifically by id or locale), exposes more specific methods on languageMask handler and in SPI to make language handling more efficient.
  • 7a8b5f7998a55216bc9da81b46a7305f1907dacf on 18/02/2019 11:31 pm by André R <andre.romcke@gmail.com> [GitHub Diff]
    Message: EZP-30029: As a Developer I'd like API for bulk loading Content Info Items (#2529)
  • d51dd8db80aaff6864606a5c84a1d18fb7fd082e on 15/02/2019 12:09 pm by Andrew Longosz <andrzej.longosz@ez.no> [GitHub Diff]
    Message: Merge branch '7.4'
  • 7a138683f5f36da77857c336711065cb031c7891 on 15/02/2019 12:08 pm by Andrew Longosz <andrzej.longosz@ez.no> [GitHub Diff]
    Message: Merge branch '7.3' into 7.4
  • 3afef6dc779a2d9b97a6877facde6ab61d9446f9 on 15/02/2019 12:07 pm by Andrew Longosz <andrzej.longosz@ez.no> [GitHub Diff]
    Message: [Tests] Fixed erroneous depends annotations in RoleService tests
  • 384db73a53cfa25e092b2c1c44d48977243c64c5 on 01/02/2019 1:00 am by André R <ar@ez.no> [GitHub Diff]
    Message: Merge branch '7.4'
  • 07c0676ce014931e806be6e03687b57e804f2821 on 01/02/2019 12:59 am by André R <ar@ez.no> [GitHub Diff]
    Message: Merge branch '7.3' into 7.4
  • f901a3aae459a4c44857d8603e09156d605b1ab1 on 01/02/2019 12:58 am by André R <ar@ez.no> [GitHub Diff]
    Message: Merge branch '6.13' into 7.3
  • e82273427af2902960195fbed8ab49e91de716d2 on 01/02/2019 12:57 am by André R <andre.romcke@gmail.com> [GitHub Diff]
    Message: EZP-29984: Fix LIKE support for * as wildcard across engines, deprecate % usage (#2517)

    Beyond just LIKE, this also fixes the following:
    * Add LegacySE search Field Criteria support for RelationList FieldType
    * Add LegacySE search Field Criteria support for Author FieldType
    * Add LegacySE search Field Criteria support for RichText FieldType
    * Handle 'Simple' field types when LIKE and int column as EQ, as int and LIKE does not mix well on SQL
  • 1dc578e4c139e24d3b16541fa4c56daa644e29e1 on 01/02/2019 12:48 am by André R <andre.romcke@gmail.com> [GitHub Diff]
    Message: EZP-30028: As a Developer I'd like sudo() to be exposed on API (#2528)

    * EZP-30028: As a Developer I'd like sudo() to be exposed on API

    Issue: https://jira.ez.no/browse/EZP-30028
    A bit overdue change.

    Needed so:
    - It can be found easier, and so we can document it
    - So it can become official so Developers feels safe using it

    Note, this does not:
    - Remove the need to continue adding bulk loading API's that don't throw but instead just filters on permission
    - Remove the possible notion of adding arguments on these load methods to opt out of permission checking, like is the case on find*()
    - Fix the fact that sudo() does not have relevant return type hinting by it's nature

    * CS

    * Add integration test for sudo()
  • 459b29152323f1332d0089d4b4ea7228aa748ac3 on 28/01/2019 3:29 am by Adam Wójs <adam@wojs.pl> [GitHub Diff]
    Message: EZP-29850: As a Developer I want API to assign a Section to a subtree (#2521)
  • 71ca773b4e1ec20f60535a6ec28498c974e9e827 on 25/01/2019 5:29 am by Andrew Longosz <andrzej.longosz@ez.no> [GitHub Diff]
    Message: Merge branch '7.3' into 7.4
  • e37b3073da711eaf8a6bf4194c3cd7a5291d6b98 on 25/01/2019 5:22 am by Andrew Longosz <andrzej.longosz@ez.no> [GitHub Diff]
    Message: Merge branch '6.13' into 7.3
  • d2cb351518fa4068e3a817750d386799bb41034e on 25/01/2019 4:49 am by Andrew Longosz <andrzej.longosz@ez.no> [GitHub Diff]
    Message: Merge branch '6.7' into 6.13
  • 79a932f373719ac0a6916a8e765dbef35302e0d2 on 25/01/2019 4:05 am by Andrew Longosz <alongosz@users.noreply.github.com> [GitHub Diff]
    Message: EZP-28663: Cannot swap location when viewing item from non-main location (#2531)

    * [Tests] Created integration test for swapping secondary Location

    * Dropped forcing Main Location when loading Content by Location data

    * Refactored UrlAlias GW ::getLocationContentMainLanguageId to use Doctrine Query Builder

    * [Tests] Impl. integration test for duplicate main Location

    * Handled main node changes when swapping non-main Locations
  • 1c2d04fecc033c903046a361e1dff43deb4ee3a9 on 18/01/2019 4:48 am by Gunnstein Lye <gunnstein.lye@ez.no> [GitHub Diff]
    Message: Merge branch '7.3' into 7.4
  • f88acd111ffa056589e43ac658a5906e8ab6f0cc on 18/01/2019 4:48 am by Gunnstein Lye <gunnstein.lye@ez.no> [GitHub Diff]
    Message: Merge branch '6.13' into 7.3
  • ed4c9880743fd63feebb95ea581d3be8cd91389d on 18/01/2019 4:47 am by Gunnstein Lye <gunnstein.lye@ez.no> [GitHub Diff]
    Message: Merge branch '6.7' into 6.13
  • 224ea94d8c32d96f45fc41946af5b0c19e31e40c on 18/01/2019 4:45 am by Gunnstein Lye <gunnstein.lye@ez.no> [GitHub Diff]
    Message: EZP-30008: More unique uniqid() (#2523)
  • 8605f2ed8627ef908efa681dc34948813e91b77a on 16/01/2019 7:37 am by Andrew Longosz <andrzej.longosz@ez.no> [GitHub Diff]
    Message: Merge branch '7.3' into 7.4
  • 1127f20dce69c208bb1f8def7c0eab2a7cb1d887 on 16/01/2019 7:35 am by Andrew Longosz <andrzej.longosz@ez.no> [GitHub Diff]
    Message: Merge branch '6.13' into 7.3
  • cb37ff94653f05ade0daa6bd0cad2b422f251d86 on 16/01/2019 7:10 am by Andrew Longosz <andrzej.longosz@ez.no> [GitHub Diff]
    Message: Merge branch '6.7' into 6.13
  • 43495896e0a30b681467fd4146458bcb1586823f on 16/01/2019 6:21 am by Andrew Longosz <alongosz@users.noreply.github.com> [GitHub Diff]
    Message: EZP-30004: ezplatform:urls:regenerate-aliases changes parent of broken link (#2522)

    * EZP-30004: Changed updating parent only when it's actually broken

    * EZP-30004: Implemented integration test for repairing moved Location
  • 1590bac6add9b94acc51c1443fcd080437e5c2e9 on 14/01/2019 2:41 am by Maciej Kobus <webhdx@users.noreply.github.com> [GitHub Diff]
    Message: EZP-29997: Exposed information about removed content items in EmptyTrashSignal and DeleteTrashItemSignal (#2520)

    * EZP-29997: Expose information about removed content items in EmptyTrashSignal and DeleteTrashItemSignal

    * EZP-29997: Fix and update unit tests

    * EZP-29997: Made changes according to code review

    * Fixed unit tests
  • fcd784d535b6289f58ef08fe8b2d79d3b4b39fab on 21/12/2018 4:24 am by André R <andre.romcke@gmail.com> [GitHub Diff]
    Message: EZP-29962: As a Developer I want API to detect if object is user/group (#2509)

    * EZP-29962: As a Developer I want API to detect if object is user/group

    To be able to avoid expensive uncached API calls in Admin UI to always
    have to load to see if a object is User or User Group, simply expose
    isUser() and isUserGroup() APIs on UserService to avoid this,
    as it can check against config instead.
  • 953d7b1b44a1858060ae32f3496bd5cca6ea45ce on 20/12/2018 2:01 am by André R <andre.romcke@gmail.com> [GitHub Diff]
    Message: EZP-29851: As a developer I want to be able to load several Locations at once, fast (#2493)

    * EZP-29851: As a developer I want to be able to load several Locations at once, fast

    Motivation
    ----------
    Like the other bulk loading API's added recently this is to optimize usage in:
    - Page builder
    - Cronjobs / Commands
    - GraphQL
    - REST
    - Admin UI
    - Internally in Repository itself
    - ...

    These changes allows for less PHP code to execute, less SQL lookups, and less cache lookups by taking advantage of
    Symfony Cache's multi get support.

    Biggest benfit will be on setups where cache server is on a different machine, this can save ~5ms
    for each and every lookup saved. Which can on complex landing pages mean saving up-to several seconds
    of load time when HTTPCache is cold or disabled.

    Design
    ------
    Like other multi load API's return iterable list of objects, in this case Locations.
    _Iterable as we might want to introduce custom collection in the future to expose more info, hence avoid hardcoding usage of plain PHP array type._

    ```
    /**
    * Return list of unique Locations, with location id as key.
    *
    * Missing items (NotFound) & those user does not have access to (Unauthorized), will be missing from the
    * list and not cause any exception. It's up to calling logic to determine if this should cause exception or not.
    *
    * @param array $locationIds
    * @param string[]|null $prioritizedLanguages Filter on and use as prioritized language code on translated properties of returned objects.
    * @param bool|null $useAlwaysAvailable Respect always available flag on content when filtering on $prioritizedLanguages.
    *
    * @return \eZ\Publish\API\Repository\Values\Content\Location[]|iterable
    */
    public function loadLocationList(array $locationIds, array $prioritizedLanguages = null, bool $useAlwaysAvailable = null): iterable;
    ```

    * Fix review comment in regards to REST Client fix

    * Fix review comment on SiteAccessAware repo tests return value usage
  • 6e491ce465c3037f99dbe444d6393d6888adf644 on 14/12/2018 7:17 am by Dawid Parafiński <vinniczek@gmail.com> [GitHub Diff]
    Message: EZP-29788: As a developer, I want to delete content type translation (#2494)

    * EZP-29788: As a developer, I want to delete content type translation

    * EZP-29788: Move handling into persistence layer

    * EZP-29788: Code review fix

    * EZP-29788: Unit tests for new removeContentTypeTranslation method

    * EZP-29788: BC breaks doc updated

    * EZP-29788: Changed typehinting for contentTypeId from mixed to int
  • 7011525b851c23ac8530837c937e49f0346f4a51 on 14/12/2018 7:15 am by Dawid Parafiński <vinniczek@gmail.com> [GitHub Diff]
    Message: EZP-29764: As a Developer I want to update single Content Type translation (#2484)

    * Created integration test for updating CT with single new translation

    * EZP-29764: As a Developer I want to update single Content Type translation

    * EZP-29764: Replace UpdateStruct with Type object for update content type method

    * EZP-29764: Handling for content type field definitions

    * EZP-29764: Handling translation for new field definition

    * EZP-29764: Handling translation for new field definition

    * EZP-29764: Code review fixes

    * Add missing language_mask attribute to select query

    * Fix failing tests

    * EZP-29764: bc breaks update
  • a2bf3c6c569c78f594f2dac801a6bb2eedfdc5d9 on 13/12/2018 5:23 am by Adam Wójs <adam@wojs.pl> [GitHub Diff]
    Message: EZP-29122: As a developer, I want to configure password policies in ezuser (fixed integration tests) (#2501)
  • 7d2c1254a1a8d7cfe03d5090cad98321ba67eeab on 13/12/2018 4:15 am by Adam Wójs <adam@wojs.pl> [GitHub Diff]
    Message: EZP-29122: As a developer, I want to configure password policies in ezuser (#2482)

    * EZP-29122: As a developer, I want to configure password policies in ezuser

    * fixup! EZP-29122: As a developer, I want to configure password policies in ezuser

    * fixup! EZP-29122: As a developer, I want to configure password policies in ezuser

    * fixup! EZP-29122: As a developer, I want to configure password policies in ezuser

    * fixup! EZP-29122: As a developer, I want to configure password policies in ezuser
  • e4e2cfc17afbc13ea52c941633db96bfb5645799 on 11/12/2018 9:03 am by André R <ar@ez.no> [GitHub Diff]
    Message: Merge branch '7.3'
  • a0c71cd255c22571185590df6c2f96cc23823d33 on 11/12/2018 9:03 am by André R <ar@ez.no> [GitHub Diff]
    Message: Merge branch '7.2' into 7.3
  • ec6a36d9408cf8cf9ff3492b9c6953dd9c283894 on 11/12/2018 5:03 am by André R <andre.romcke@gmail.com> [GitHub Diff]
    Message: EZP-29823: Allow to filter Location on translations to not throw when lazy loading Content (#2480)

    * Created integration test for lazy-loading Location's not avail. Content

    This happens for the use case where Location has been loaded via
    SiteAccessAware Repository, but the underlying Content is not available
    for the languages specified by the SiteAccess prioritized languages list.

    * EZP-29823: [SPI] Add translation filtering on location load, & expose multi get SPI method while at it

    * Add useAlwaysAvailable flag on load methods

    * [API] Expose useAlwaysAvailable on Location load methods

    * Update eZ/Publish/Core/Persistence/Legacy/Content/Location/Gateway/DoctrineDatabase.php

    Co-Authored-By: andrerom <andre.romcke@gmail.com>

    * Apply suggestions from code review

    Co-Authored-By: andrerom <andre.romcke@gmail.com>

    * CS

    * Cleanup use of generateLanguageMask()

    * Unused import

    * CS

    * CS

    * TMP Bulk loading API for loadLocationList

    * Revert "Cleanup use of generateLanguageMask()"

    This reverts commit dfb56052639684a0a143cb3492ac699ac32e0446.

    * Revert "TMP Bulk loading API for loadLocationList"

    This reverts commit a9be8aaff3e3efa4fff9e9bfdbe65b2fa12616f7.

    * Remove bulk loading locations (to be openened in seperate Pr after this)

    * CS

    * Pass useAlwaysAvailable argument to buildLocation() as well

    Push again to get CI to run.

    * Fix own review notes
  • b6087af08985cbd3eeb260a6593f3bc5399fdabe on 05/12/2018 5:50 am by Gunnstein Lye <gunnstein.lye@ez.no> [GitHub Diff]
    Message: Merge branch '7.3'
  • 8b99091782a5a1c677c1c2bfa40580c1c53df495 on 05/12/2018 5:49 am by Gunnstein Lye <gunnstein.lye@ez.no> [GitHub Diff]
    Message: Merge branch '7.2' into 7.3
  • e9b7215526947070b8da91d37b462392570e1e64 on 05/12/2018 5:49 am by Gunnstein Lye <gunnstein.lye@ez.no> [GitHub Diff]
    Message: Merge branch '6.13' into 7.2
  • 5fc7420724e25ee11f2b27e833c02ad714c84cfc on 05/12/2018 5:47 am by Gunnstein Lye <gunnstein.lye@ez.no> [GitHub Diff]
    Message: Merge branch '6.7' into 6.13
  • f1964d5f23408fbb8759583c6cc501e78c4bb511 on 05/12/2018 5:45 am by Gunnstein Lye <gunnstein.lye@ez.no> [GitHub Diff]
    Message: EZP-29751: Wrong first URL generation in exotic languages (#2471)
  • 8231815f5d91390fd743b2062ac2d15b799452d6 on 04/12/2018 4:44 am by André R <andre.romcke@gmail.com> [GitHub Diff]
    Message: EZP-29613: As a developer I want access to ContentType on Content to avoid re-loading it (#2444)

    API:
    * Initial simple addition of `Content->getContentType()` API
    * Implement getContentType() on Core User & UserGroup object
    * Add SPI method for multi load content types
    * Improve PHP doc on SPI/Persistence/Content/Type
    * Adapt content domain mappers to bulk load content types
    * Add unit test for Legacy/Content/Type/Handler::loadContentTypeList()
    * Change MemoryCachingHandler to correctly use loadContentTypeList() and not single load()
    * Change to use Doctrine QueryBuilder to fix loadTypesDataList(), use it for all loads for test coverage and consistency
    * Fix Legacy Search test to keep connection, also refactor to avoid duplication

    API:
    * Expose `ContentTypeService->loadContentTypeList()` in order to adapt for new loadContentListByContentInfo()

    Usage in Core, aka get rid of ContentType load operations:
    * Adapt FieldRenderingExtension to use Content->getContentType()
    * Optimize FieldHelper and it's usage in ContentExtension
    * Optimize RestExecutedView to use content->getContentType()
  • b2eb92764b08ae19c3e4c6d14c4374fa0eb10729 on 17/10/2018 8:31 am by Andrew Longosz <andrzej.longosz@ez.no> [GitHub Diff]
    Message: Merge branch '7.2' into 7.3
  • 24bd53bbd85db8aebb1638b82bab30a791206600 on 17/10/2018 8:29 am by Andrew Longosz <andrzej.longosz@ez.no> [GitHub Diff]
    Message: Merge branch '6.13' into 7.2
  • c77964e2c31a27a67213db8268964ad8737eb525 on 17/10/2018 7:59 am by Andrew Longosz <andrzej.longosz@ez.no> [GitHub Diff]
    Message: Merge branch '6.7' into 6.13
  • 4c9fcdd09581538556582c16aa6e226a961d8d7a on 17/10/2018 6:34 am by Andrew Longosz <alongosz@users.noreply.github.com> [GitHub Diff]
    Message: EZP-29721: Broken URL alias history is not restored after regenerating aliases (#2459)

    * Moved cleaning corrupted aliases after refreshing

    * Created integration tests for the use case

    * Implemented repairing broken URL Aliases after refreshing

    * Optimized mapping data for archiving aliases for deleted Translations

    * fixup! Created integration tests for the use case

    * fixup! Optimized mapping data for archiving aliases for deleted Translations
  • 3d85b6fb3598211375b873e04f7d28f8fe61775a on 09/10/2018 5:56 am by Dawid Parafiński <dawid.parafinski@ez.no> [GitHub Diff]
    Message: Merge remote-tracking branch 'upstream/7.2'