apioo / fusio

Open source API management platform
https://www.fusio-project.org
Apache License 2.0
1.84k stars 220 forks source link

Route page missing on 4.0.0 #518

Open Maximebaker opened 1 year ago

chriskapp commented 1 year ago

@Maximebaker with the 4.0 release we have moved from "Routes" to "Operations", instead of Routes you create now an Operation. An operation is basically assigned to an HTTP path and method and is invoked if the specific request arrives at Fusio. You can find also more information at our release post s. https://www.fusio-project.org/blog/post/fusio-4.0-released

Maximebaker commented 1 year ago

Where is the doc to edit my "routes" operations?

Maximebaker commented 1 year ago

Here you can see that the operation tab is also missing and that if I try to go to /public/apps/operation, that thing happen: Screenshot_20230811-231144.png

chriskapp commented 1 year ago

Since you also have no "Operation" entry in your navigation the problem is probably that your account is not assigned to the "operation" scopes, for this go to the user panel and add the "operation" scope to your user, then it should work. You can find more information about the migration at https://github.com/apioo/fusio/blob/master/UPGRADE.md

Maximebaker commented 1 year ago

Since you also have no "Operation" entry in your navigation the problem is probably that your account is not assigned to the "operation" scopes, for this go to the user panel and add the "operation" scope to your user, then it should work. You can find more information about the migration at https://github.com/apioo/fusio/blob/master/UPGRADE.md

As you can see, there is no operation scope in any of the category. Screenshot_20230813-074221.png

I should have said that I upgraded fusio from 2.0.0 to 4.0.0 from the marketplace update button.

Maximebaker commented 1 year ago

Am I the only one with that problem?

chriskapp commented 1 year ago

Ok, so updating from 2.0 to 4.0 through the backend only updates the backend Angular app, to update the actual PHP backend you also need to migrate the database to the new structure, at this step the scope should be also created, you can find more instructions at our UPGRADE.md. Otherwise you can of course also start with a fresh installation which should work.

bangash-92 commented 3 months ago

@chriskapp php bin/fusio migrate

WARNING! You are about to execute a migration in database "api_fusio_upg" that could result in schema changes and data loss. Are you sure you wish to continue? (yes/no) [yes]:

yes

[notice] Migrating up to Fusio\Impl\Migrations\Version20230922194158 [error] Migration Fusio\Impl\Migrations\Version20230508210151 failed during Post-Checks. Error: "An exception occurred while executing a query: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child r ow: a foreign key constraint fails (api_fusio_upg.fusio_scope_operation, CONSTRAINT scope_operation_scope_id FOREIGN KEY (scope_id) REFERENCES fusio_scope (id))"

In ExceptionConverter.php line 56:

An exception occurred while executing a query: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (api_fusio_upg.fusio_scope_operation, CONSTRAINT sco pe_operation_scope_id FOREIGN KEY (scope_id) REFERENCES fusio_scope (id))

In Exception.php line 28:

SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (api_fusio_upg.fusio_scope_operation, CONSTRAINT scope_operation_scope_id FOREIGN KEY (scope_id)
REFERENCES fusio_scope (id))

In Statement.php line 130:

SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (api_fusio_upg.fusio_scope_operation, CONSTRAINT scope_operation_scope_id FOREIGN KEY (scope_id)
REFERENCES fusio_scope (id))