Change core functionality

Skip to first unread message

Ion Hrytsku

Oct 10, 2022, 11:29:02 AM10/10/22
to Fusio

There are couple of thing in core functionality that could be useful to be changed:
1. Ability to update already existing Connections and Actions names.
2. Ability to update already existing Routes path
3. "Correct" behavior of user's soft delete: if we remove user, we should be able to create one with the same parameters (or turn back deleted one).

Is there a chance this features will be implemented any soon in new versions?
Or is there a chance to override current implementation with customization features of Fusio?

Best regards

Christoph Kappestein

Oct 10, 2022, 12:57:49 PM10/10/22
to Fusio
Hi Ion,

so regarding point 3, there is already a trash panel where you can restore every record which was deleted s.

In general we only execute soft deletes that means if you delete a record we only set a status to deleted and dont actual delete the record. This is also needed because of database constraints.

Updating connection names is not so easy since in Fusio there are multiple places where you reference such a connection name also at source code etc. so if it would be possible to rename a connection those code would break, because of this we have in general the policy that it is not possible to rename a connection. Instead we recommend to create a new connection and then you can also delete the old connection.

We have the same logic also for routes, changing a route has a huge impact of all your API users so it should be not easy possible to change a route. You can always create a new route and then deprecate an existing one.

Regarding customization, in general it would be possible to overwrite the connection or action service but in general I would recommend to stay with our implementation since this a core service of Fusio. Regarding point 1/2 do you need them while developing your API or do you have this use case also on an API in production?

best regards

Reply all
Reply to author
0 new messages