Optimize the system design of the Transformer_Base class #3

Closed
opened 2023-11-20 17:51:40 +01:00 by linos · 1 comment
Owner

The Transformer_Base class is atm just a basic copy of the upstream Post Transformer class.

The to_object functino does pretty much everything. Most stuff it does is pretty common and new transformers probably just want to copy that functionality.

But other transformers also might want to add new object keys. Like location and place. And with each new key there also may come a new context that must be delivered due to json-ld.

We have to think about future implications carefully and maybe rethink how this is done at the moment.

I also wonder what might become reusable in the future...

The Transformer_Base class is atm just a basic copy of the upstream Post Transformer class. The `to_object` functino does pretty much everything. Most stuff it does is pretty common and new transformers probably just want to copy that functionality. But other transformers also might want to add new object keys. Like location and place. And with each new key there also may come a new context that must be delivered due to json-ld. We have to think about future implications carefully and maybe rethink how this is done at the moment. I also wonder what might become reusable in the future...
ruru4143 was assigned by linos 2023-11-20 17:51:45 +01:00
linos added this to the 1. Architecture decisions & plugin skeleton project 2023-11-20 22:46:31 +01:00
linos self-assigned this 2023-11-21 14:02:50 +01:00
openforfuture was assigned by linos 2023-11-22 22:02:44 +01:00
Author
Owner

I will close this issue, cause what it covers until now is directly related to #1.

I will close this issue, cause what it covers until now is directly related to #1.
linos closed this issue 2023-12-05 08:24:56 +01:00
Sign in to join this conversation.
No milestone
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Event-Federation/wordpress-activitypub#3
No description provided.