Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] TYPO3 v12 reactions support #107

Merged
merged 89 commits into from
Nov 1, 2023
Merged

[FEATURE] TYPO3 v12 reactions support #107

merged 89 commits into from
Nov 1, 2023

Commits on Aug 24, 2023

  1. Configuration menu
    Copy the full SHA
    b543314 View commit details
    Browse the repository at this point in the history
  2. [!!!][TASK] Raise TYPO3 requirement to v11

    Removes compatibility code for versions below v11 and upgrades composer dependencies.
    mabolek committed Aug 24, 2023
    Configuration menu
    Copy the full SHA
    534ecc9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    eea8072 View commit details
    Browse the repository at this point in the history
  4. [CLEANUP] CS fixes

    mabolek committed Aug 24, 2023
    Configuration menu
    Copy the full SHA
    9ebd083 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4e49330 View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2023

  1. [FEATURE] Configurable handling of empty files

    It is now possible to configure how empty files are handled. The extension configuration property `handleEmptyFile` can be set to these values:
    
    0: Treat as any other file. You can also use this option if you want to handle empty files with a custom `Pixelant\Interest\DataHandling\Operation\Event\BeforeRecordOperationEvent`. Just make sure your EventHandler it is executed after `\Pixelant\Interest\DataHandling\Operation\Event\Handler\PersistFileDataEventHandler`.
    
    1: Stop processing the record. This might result in pending relation records that will never be resolved in the database, but if that's OK for you it won't cause any issues.
    
    2: Fail. The operation will be treated as failed and returns an error.
    mabolek committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    bef56a2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    811db39 View commit details
    Browse the repository at this point in the history
  3. [!!!][TASK] Raise TYPO3 requirement to v11

    Removes compatibility code for versions below v11 and upgrades composer dependencies.
    mabolek committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    b98057d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    fd44bef View commit details
    Browse the repository at this point in the history
  5. [CLEANUP] CS fixes

    mabolek committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    2c940ab View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c0bc39e View commit details
    Browse the repository at this point in the history
  7. [FEATURE] Configurable handling of empty files

    It is now possible to configure how empty files are handled. The extension configuration property `handleEmptyFile` can be set to these values:
    
    0: Treat as any other file. You can also use this option if you want to handle empty files with a custom `Pixelant\Interest\DataHandling\Operation\Event\BeforeRecordOperationEvent`. Just make sure your EventHandler it is executed after `\Pixelant\Interest\DataHandling\Operation\Event\Handler\PersistFileDataEventHandler`.
    
    1: Stop processing the record. This might result in pending relation records that will never be resolved in the database, but if that's OK for you it won't cause any issues.
    
    2: Fail. The operation will be treated as failed and returns an error.
    mabolek committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    6510aea View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    2365c63 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    7077779 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    6d650a7 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    1b2a126 View commit details
    Browse the repository at this point in the history
  12. [TASK] DDEV: Use PHP 8.1

    mabolek committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    ea0025b View commit details
    Browse the repository at this point in the history
  13. [CLEANUP] CS fixes

    mabolek committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    a778790 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    98b91e7 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    bce40dc View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    2c02ff6 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2023

  1. Configuration menu
    Copy the full SHA
    33e5cfc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c9d8415 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cbb7f38 View commit details
    Browse the repository at this point in the history
  4. [TASK] Simplify conditions

    mabolek committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    00af388 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e5b3d14 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    35ece1a View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    4e6032a View commit details
    Browse the repository at this point in the history
  8. [!!!][TASK] Remove deprecated getData() and setData()

    Use `getDataForDataHandler()` and `setDataForDataHandler()` instead.
    mabolek committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    7ad3e30 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    917da03 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    f7ef6f9 View commit details
    Browse the repository at this point in the history
  11. Revert "[TASK] Remove support for doctrine/dbal ^2.13.9"

    This reverts commit f7ef6f9.
    mabolek committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    7fc3f9a View commit details
    Browse the repository at this point in the history
  12. [TASK] Require at least TYPO3 12.4.3

    Because this patch release reintroduces getHreflang() to SiteLanguage.
    mabolek committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    b502762 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    80439b7 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    8e96de2 View commit details
    Browse the repository at this point in the history
  15. [CLEANUP] CS fixes

    mabolek committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    71097af View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    ebfc595 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    cd986b6 View commit details
    Browse the repository at this point in the history
  18. [CLEANUP] CS fixes

    mabolek committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    67ce2ef View commit details
    Browse the repository at this point in the history
  19. [CLEANUP] CS fixes

    mabolek committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    b2ab4eb View commit details
    Browse the repository at this point in the history
  20. Revert "[TASK] Exlude CompatibilityUtility from PhpStan"

    This reverts commit ebfc595.
    mabolek committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    7c10c4e View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    9132c8f View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    4c08680 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    773b550 View commit details
    Browse the repository at this point in the history
  24. [TASK] Check if key exists

    mabolek committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    52ac31a View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    a023717 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    bc0fdcd View commit details
    Browse the repository at this point in the history
  27. Revert "[TASK] Raise doctrine/dbal requirement to ^2.13.9"

    This reverts commit bc0fdcd.
    mabolek committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    235a9c0 View commit details
    Browse the repository at this point in the history
  28. [TASK] Raise TYPO3 requirement to ^11.5.8

    Includes ExpressionBuilder with `and()` and `or()`.
    mabolek committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    b3569fe View commit details
    Browse the repository at this point in the history
  29. [TASK] Raise TYPO3 requirement to ^12.4.6

    This (future) version includes a bug fix for https://forge.typo3.org/issues/101764
    mabolek committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    7728951 View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2023

  1. [TASK] Rewrite authentication code

    Reduces code by rewriting HttpBackendUserAuthentication to use more functionality from TYPO3 core.
    mabolek committed Sep 4, 2023
    Configuration menu
    Copy the full SHA
    b948caa View commit details
    Browse the repository at this point in the history
  2. [TASK] Ensure compatibility with v11 and v12

    Moves deprecated method declaration into separate class.
    mabolek committed Sep 4, 2023
    Configuration menu
    Copy the full SHA
    6fea694 View commit details
    Browse the repository at this point in the history
  3. [CLEANUP] CS fixes

    mabolek committed Sep 4, 2023
    Configuration menu
    Copy the full SHA
    3c9c03f View commit details
    Browse the repository at this point in the history
  4. [CLEANUP] CS fixes

    mabolek committed Sep 4, 2023
    Configuration menu
    Copy the full SHA
    0facad1 View commit details
    Browse the repository at this point in the history
  5. [CLEANUP] CS fixes

    mabolek committed Sep 4, 2023
    Configuration menu
    Copy the full SHA
    4ede289 View commit details
    Browse the repository at this point in the history
  6. [CLEANUP] CS fixes

    mabolek committed Sep 4, 2023
    Configuration menu
    Copy the full SHA
    9562cf9 View commit details
    Browse the repository at this point in the history
  7. [CLEANUP] CS fixes

    mabolek committed Sep 4, 2023
    Configuration menu
    Copy the full SHA
    93aa637 View commit details
    Browse the repository at this point in the history
  8. [CLEANUP] CS fixes

    mabolek committed Sep 4, 2023
    Configuration menu
    Copy the full SHA
    df61961 View commit details
    Browse the repository at this point in the history
  9. Revert "[CLEANUP] CS fixes"

    This reverts commit 93aa637
    mabolek committed Sep 4, 2023
    Configuration menu
    Copy the full SHA
    8834330 View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2023

  1. [TASK] Don't use imports for version-dependent classes

    To try to avoid triggering the autoloader.
    mabolek committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    2dcfdd0 View commit details
    Browse the repository at this point in the history
  2. [TASK] Don't use imports for version-dependent classes

    To try to avoid triggering the autoloader.
    mabolek committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    3354770 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2023

  1. [TASK] Reintroduce dynamic compatibility class loading

    Due to the changes in BackendUserAuthentication between TYPO3 v11 and v12, we have to load different versions of the HttpBackendUserAuthentication class on runtime.
    mabolek committed Sep 11, 2023
    Configuration menu
    Copy the full SHA
    b837825 View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2023

  1. [WIP] Basic scaffolding

    mabolek committed Sep 12, 2023
    Configuration menu
    Copy the full SHA
    40a1c0b View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2023

  1. [BUGFIX] Remove $imageUpdates overwrite in UpdateRecordOperationTest

    UpdateRecordOperationTest has been updated so $imageUpdates is no longer overwritten in the foreach loop.
    
    Fixes #103
    mabolek committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    572867d View commit details
    Browse the repository at this point in the history
  2. [TASK] Require typo3/testing-framework ^7.0.4

    Versions below this will fail in TYPO3 v12 due to a missing fallback. See: TYPO3/testing-framework#497
    mabolek committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    8150764 View commit details
    Browse the repository at this point in the history
  3. [TASK] Directly parse request body as associative array

    The HTTP request body was previously first parsed into objects and then converted to an array. This was done to be able to detect the difference between record data and nested table/recordId/language/workspace arrays. This can instead be implemented using `array_is_list()`. `symfony/polyfill-php81` provides a polyfill for PHP versions below 8.1.
    
    This commit also adds an optional third parameter, `?array $parsedBody = null`, to  `\Pixelant\Interest\RequestHandler\AbstractRecordRequestHandler::__construct()`. This parameter makes it possible to supply a parsed JSON body as associative array to avoid parsing JSON twice.
    mabolek committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    082b7c5 View commit details
    Browse the repository at this point in the history
  4. [FEATURE] TYPO3 v12 reactions support

    The implementation uses the new core extension "reactions" and is similar to a normal REST request, except from:
    
    * The entry point is always the reaction extension's entry point: `/typo3/reaction/{reactionId}`
    * Backend user authentication is handled by the reactions extension.
    * The HTTP method of a reaction request must always be POST, so you must instead provide the action in the JSON array key `method` (POST, PUT, PATCH, or DELETE).
    * `table`, `remoteId`, `language`, and `workspace` can only be supplied in the JSON array.
    mabolek committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    0b093c0 View commit details
    Browse the repository at this point in the history
  5. [CLEANUP] CS fixes

    mabolek committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    74e8833 View commit details
    Browse the repository at this point in the history
  6. [TASK] Make PhpStan verbose

    Outputs error identifiers.
    mabolek committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    75dc3d5 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    bc05150 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    404143f View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    cec5bce View commit details
    Browse the repository at this point in the history
  10. [BUGFIX] Remove $imageUpdates overwrite in UpdateRecordOperationTest

    UpdateRecordOperationTest has been updated so $imageUpdates is no longer overwritten in the foreach loop.
    
    Fixes #103
    mabolek committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    cff8de0 View commit details
    Browse the repository at this point in the history
  11. [TASK] Multiple fixes and improvements

    * Rename `$decodedContent` to `$parsedBody`
    * Correctly set metadata
    * Throw exception on JSON decode error
    * Fetch and parse request body in separate method
    mabolek committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    93283cb View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    bd8439d View commit details
    Browse the repository at this point in the history
  13. Revert "[CLEANUP] Re-enable cyclomatic complexity check"

    This reverts commit ee5574c.
    mabolek committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    d4bea13 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    759ca4a View commit details
    Browse the repository at this point in the history
  15. [BUGFIX] Remove $imageUpdates overwrite in UpdateRecordOperationTest

    UpdateRecordOperationTest has been updated so $imageUpdates is no longer overwritten in the foreach loop.
    
    Fixes #103
    mabolek committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    4626e4a View commit details
    Browse the repository at this point in the history
  16. [TASK] 422 response for no operations supplied

    No operations were requested and none executed.
    mabolek committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    c0876da View commit details
    Browse the repository at this point in the history
  17. [TASK] Correct test

    mabolek committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    9685613 View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2023

  1. [TASK] Test for reactions in TYPO3 v12

    Also introduces additional requirements as a way to install and test possible/suggested requirements.
    mabolek committed Sep 17, 2023
    Configuration menu
    Copy the full SHA
    a7ff78c View commit details
    Browse the repository at this point in the history
  2. [CLEANUP] CS fixes

    mabolek committed Sep 17, 2023
    Configuration menu
    Copy the full SHA
    14c8f88 View commit details
    Browse the repository at this point in the history
  3. [CLEANUP] CS fixes

    mabolek committed Sep 17, 2023
    Configuration menu
    Copy the full SHA
    afe58a0 View commit details
    Browse the repository at this point in the history
  4. [TASK] Test HttpRequestRouter

    mabolek committed Sep 17, 2023
    Configuration menu
    Copy the full SHA
    837d64c View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2023

  1. [TASK] Mock EventDispatcher

    mabolek committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    b7854ba View commit details
    Browse the repository at this point in the history
  2. [CLEANUP] CS fixes

    mabolek committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    cd6d26e View commit details
    Browse the repository at this point in the history
  3. [DOCS] Documenting webhooks

    mabolek committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    66aecd4 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2023

  1. Configuration menu
    Copy the full SHA
    c98ed6b View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2023

  1. Configuration menu
    Copy the full SHA
    fff4417 View commit details
    Browse the repository at this point in the history