cobwebch / external_import

Other
20 stars 16 forks source link

Allow restricted Reaction without table/index in payload #341

Closed mbrodala closed 1 month ago

mbrodala commented 1 month ago

A Reaction can be restricted if an External Import configuration is selected:

image

(Source: https://docs.typo3.org/p/cobweb/external_import/main/en-us/User/Reaction/Index.html#user-reaction)

Right now this selection only leads to a validation of the table and index sent with a payload. In case of a mismatch, an error occurs.

This should be changed so that the table and index must not be sent with the payload in case an External Import configuration was selected in a Reaction.

Benefits:

  1. The table and index is redundant since only a specific configuration is allowed anyways.
  2. The payload can be reduced.
  3. No internal details about the TYPO3 DB structure / configuration need to be exposed anymore. This is useful in case the Reaction is set up for external service partners.
fsuter commented 1 month ago

Thanks for the PR. I will try to take a look ASAP.