Skip to content

feat: [#508] Add Restore method for Orm, to recover soft deleted data #3440

feat: [#508] Add Restore method for Orm, to recover soft deleted data

feat: [#508] Add Restore method for Orm, to recover soft deleted data #3440

Triggered via pull request December 18, 2024 15:43
Status Failure
Total duration 8m 27s
Artifacts

test.yml

on: pull_request
Matrix: test / ubuntu
Matrix: test / windows
Fit to window
Zoom out
Zoom in

Annotations

42 errors and 1 warning
test / ubuntu (1.22): auth/auth_test.go#L406
cannot use s.mockDB (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to s.mockOrm.EXPECT().Query().Return: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / ubuntu (1.22): auth/auth_test.go#L439
cannot use s.mockDB (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to s.mockOrm.EXPECT().Query().Return: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / ubuntu (1.22): auth/auth_test.go#L493
cannot use s.mockDB (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to s.mockOrm.EXPECT().Query().Return: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / ubuntu (1.22): auth/auth_test.go#L532
cannot use s.mockDB (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to s.mockOrm.EXPECT().Query().Return: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / ubuntu (1.22): auth/auth_test.go#L539
cannot use s.mockDB (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to s.mockOrm.EXPECT().Query().Return: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / ubuntu (1.22): database/migration/default_migrator_test.go#L564
cannot use mockQuery (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to mockOrm.EXPECT().Query().Return: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / ubuntu (1.22): database/migration/default_migrator_test.go#L571
cannot use mockQuery (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to f: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / ubuntu (1.22): database/migration/default_migrator_test.go#L704
cannot use mockQuery (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to mockOrm.EXPECT().Query().Return: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / ubuntu (1.22): database/migration/default_migrator_test.go#L711
cannot use mockQuery (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to f: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / ubuntu (1.22): database/migration/default_migrator_test.go#L821
cannot use mockQuery (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to mockOrm.EXPECT().Query().Return: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / ubuntu (1.23)
The job was canceled because "_1_22" failed.
test / ubuntu (1.23): auth/auth_test.go#L406
cannot use s.mockDB (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to s.mockOrm.EXPECT().Query().Return: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / ubuntu (1.23): auth/auth_test.go#L439
cannot use s.mockDB (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to s.mockOrm.EXPECT().Query().Return: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / ubuntu (1.23): auth/auth_test.go#L493
cannot use s.mockDB (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to s.mockOrm.EXPECT().Query().Return: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / ubuntu (1.23): auth/auth_test.go#L532
cannot use s.mockDB (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to s.mockOrm.EXPECT().Query().Return: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / ubuntu (1.23): auth/auth_test.go#L539
cannot use s.mockDB (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to s.mockOrm.EXPECT().Query().Return: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / ubuntu (1.23): database/migration/default_migrator_test.go#L564
cannot use mockQuery (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to mockOrm.EXPECT().Query().Return: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / ubuntu (1.23): database/migration/default_migrator_test.go#L571
cannot use mockQuery (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to f: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / ubuntu (1.23): database/migration/default_migrator_test.go#L704
cannot use mockQuery (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to mockOrm.EXPECT().Query().Return: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / ubuntu (1.23): database/migration/default_migrator_test.go#L711
cannot use mockQuery (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to f: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / ubuntu (1.23): database/migration/default_migrator_test.go#L821
cannot use mockQuery (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to mockOrm.EXPECT().Query().Return: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / windows (1.22): auth/auth_test.go#L406
cannot use s.mockDB (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to s.mockOrm.EXPECT().Query().Return: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / windows (1.22): auth/auth_test.go#L439
cannot use s.mockDB (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to s.mockOrm.EXPECT().Query().Return: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / windows (1.22): auth/auth_test.go#L493
cannot use s.mockDB (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to s.mockOrm.EXPECT().Query().Return: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / windows (1.22): auth/auth_test.go#L532
cannot use s.mockDB (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to s.mockOrm.EXPECT().Query().Return: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / windows (1.22): auth/auth_test.go#L539
cannot use s.mockDB (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to s.mockOrm.EXPECT().Query().Return: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / windows (1.22): database/migration/default_migrator_test.go#L564
cannot use mockQuery (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to mockOrm.EXPECT().Query().Return: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / windows (1.22): database/migration/default_migrator_test.go#L571
cannot use mockQuery (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to f: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / windows (1.22): database/migration/default_migrator_test.go#L704
cannot use mockQuery (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to mockOrm.EXPECT().Query().Return: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / windows (1.22): database/migration/default_migrator_test.go#L711
cannot use mockQuery (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to f: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / windows (1.22): database/migration/default_migrator_test.go#L821
cannot use mockQuery (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to mockOrm.EXPECT().Query().Return: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / windows (1.23)
The job was canceled because "_1_22" failed.
test / windows (1.23): auth/auth_test.go#L406
cannot use s.mockDB (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to s.mockOrm.EXPECT().Query().Return: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / windows (1.23): auth/auth_test.go#L439
cannot use s.mockDB (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to s.mockOrm.EXPECT().Query().Return: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / windows (1.23): auth/auth_test.go#L493
cannot use s.mockDB (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to s.mockOrm.EXPECT().Query().Return: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / windows (1.23): auth/auth_test.go#L532
cannot use s.mockDB (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to s.mockOrm.EXPECT().Query().Return: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / windows (1.23): auth/auth_test.go#L539
cannot use s.mockDB (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to s.mockOrm.EXPECT().Query().Return: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / windows (1.23): database/migration/default_migrator_test.go#L564
cannot use mockQuery (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to mockOrm.EXPECT().Query().Return: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / windows (1.23): database/migration/default_migrator_test.go#L571
cannot use mockQuery (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to f: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / windows (1.23): database/migration/default_migrator_test.go#L704
cannot use mockQuery (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to mockOrm.EXPECT().Query().Return: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / windows (1.23): database/migration/default_migrator_test.go#L711
cannot use mockQuery (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to f: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / windows (1.23): database/migration/default_migrator_test.go#L821
cannot use mockQuery (variable of type *"github.com/goravel/framework/mocks/database/orm".Query) as "github.com/goravel/framework/contracts/database/orm".Query value in argument to mockOrm.EXPECT().Query().Return: *"github.com/goravel/framework/mocks/database/orm".Query does not implement "github.com/goravel/framework/contracts/database/orm".Query (missing method Restore)
test / ubuntu (1.22)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636