Skip to content

feat: implement PUT for inventory UPF #224

feat: implement PUT for inventory UPF

feat: implement PUT for inventory UPF #224

Triggered via pull request January 24, 2025 15:52
Status Failure
Total duration 1m 6s
Artifacts

main.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

51 errors and 8 warnings
build-ui: configapi/api_inventory.go#L45
undefined: gnbDataColl
build-ui: configapi/api_inventory.go#L131
undefined: gnbDataColl
build-ui: configapi/api_inventory.go#L199
undefined: upfDataColl
build-ui: configapi/api_inventory.go#L316
cannot use configmodels.UpfDataColl (constant "webconsoleData.snapshots.upfData" of type string) as context.Context value in argument to dbadapter.CommonDBClient.RestfulAPIPostManyWithContext: string does not implement context.Context (missing method Deadline)
build-ui: configapi/api_inventory.go#L316
cannot use filter (variable of type primitive.M) as string value in argument to dbadapter.CommonDBClient.RestfulAPIPostManyWithContext
build-ui: configapi/api_inventory.go#L316
cannot use []interface{}{…} (value of type []interface{}) as primitive.M value in argument to dbadapter.CommonDBClient.RestfulAPIPostManyWithContext
build-ui: configapi/api_inventory.go#L316
cannot use sc (variable of type mongo.SessionContext) as []interface{} value in argument to dbadapter.CommonDBClient.RestfulAPIPostManyWithContext
build-ui: configapi/api_inventory.go#L322
cannot use configmodels.UpfDataColl (constant "webconsoleData.snapshots.upfData" of type string) as context.Context value in argument to dbadapter.CommonDBClient.RestfulAPIPutOneWithContext: string does not implement context.Context (missing method Deadline)
build-ui: configapi/api_inventory.go#L322
cannot use filter (variable of type primitive.M) as string value in argument to dbadapter.CommonDBClient.RestfulAPIPutOneWithContext
build-ui: configapi/api_inventory.go#L322
cannot use sc (variable of type mongo.SessionContext) as map[string]interface{} value in argument to dbadapter.CommonDBClient.RestfulAPIPutOneWithContext
unit-tests: configapi/api_inventory.go#L45
undefined: gnbDataColl
unit-tests: configapi/api_inventory.go#L131
undefined: gnbDataColl
unit-tests: configapi/api_inventory.go#L199
undefined: upfDataColl
unit-tests: configapi/api_inventory.go#L316
cannot use configmodels.UpfDataColl (constant "webconsoleData.snapshots.upfData" of type string) as context.Context value in argument to dbadapter.CommonDBClient.RestfulAPIPostManyWithContext: string does not implement context.Context (missing method Deadline)
unit-tests: configapi/api_inventory.go#L316
cannot use filter (variable of type primitive.M) as string value in argument to dbadapter.CommonDBClient.RestfulAPIPostManyWithContext
unit-tests: configapi/api_inventory.go#L316
cannot use []interface{}{…} (value of type []interface{}) as primitive.M value in argument to dbadapter.CommonDBClient.RestfulAPIPostManyWithContext
unit-tests: configapi/api_inventory.go#L316
cannot use sc (variable of type mongo.SessionContext) as []interface{} value in argument to dbadapter.CommonDBClient.RestfulAPIPostManyWithContext
unit-tests: configapi/api_inventory.go#L322
cannot use configmodels.UpfDataColl (constant "webconsoleData.snapshots.upfData" of type string) as context.Context value in argument to dbadapter.CommonDBClient.RestfulAPIPutOneWithContext: string does not implement context.Context (missing method Deadline)
unit-tests: configapi/api_inventory.go#L322
cannot use filter (variable of type primitive.M) as string value in argument to dbadapter.CommonDBClient.RestfulAPIPutOneWithContext
unit-tests: configapi/api_inventory.go#L322
cannot use sc (variable of type mongo.SessionContext) as map[string]interface{} value in argument to dbadapter.CommonDBClient.RestfulAPIPutOneWithContext
build: configapi/api_inventory.go#L45
undefined: gnbDataColl
build: configapi/api_inventory.go#L131
undefined: gnbDataColl
build: configapi/api_inventory.go#L199
undefined: upfDataColl
build: configapi/api_inventory.go#L316
cannot use configmodels.UpfDataColl (constant "webconsoleData.snapshots.upfData" of type string) as context.Context value in argument to dbadapter.CommonDBClient.RestfulAPIPostManyWithContext: string does not implement context.Context (missing method Deadline)
build: configapi/api_inventory.go#L316
cannot use filter (variable of type primitive.M) as string value in argument to dbadapter.CommonDBClient.RestfulAPIPostManyWithContext
build: configapi/api_inventory.go#L316
cannot use []interface{}{…} (value of type []interface{}) as primitive.M value in argument to dbadapter.CommonDBClient.RestfulAPIPostManyWithContext
build: configapi/api_inventory.go#L316
cannot use sc (variable of type mongo.SessionContext) as []interface{} value in argument to dbadapter.CommonDBClient.RestfulAPIPostManyWithContext
build: configapi/api_inventory.go#L322
cannot use configmodels.UpfDataColl (constant "webconsoleData.snapshots.upfData" of type string) as context.Context value in argument to dbadapter.CommonDBClient.RestfulAPIPutOneWithContext: string does not implement context.Context (missing method Deadline)
build: configapi/api_inventory.go#L322
cannot use filter (variable of type primitive.M) as string value in argument to dbadapter.CommonDBClient.RestfulAPIPutOneWithContext
build: configapi/api_inventory.go#L322
cannot use sc (variable of type mongo.SessionContext) as map[string]interface{} value in argument to dbadapter.CommonDBClient.RestfulAPIPutOneWithContext
lint: backend/webui_service/webui_init.go#L31
could not import github.com/omec-project/webconsole/configapi (-: # github.com/omec-project/webconsole/configapi
lint: configapi/api_inventory.go#L45
undefined: gnbDataColl
lint: configapi/api_inventory.go#L131
undefined: gnbDataColl
lint: configapi/api_inventory.go#L199
undefined: upfDataColl
lint: configapi/api_inventory.go#L316
cannot use configmodels.UpfDataColl (constant "webconsoleData.snapshots.upfData" of type string) as context.Context value in argument to dbadapter.CommonDBClient.RestfulAPIPostManyWithContext: string does not implement context.Context (missing method Deadline)
lint: configapi/api_inventory.go#L316
cannot use filter (variable of type primitive.M) as string value in argument to dbadapter.CommonDBClient.RestfulAPIPostManyWithContext
lint: configapi/api_inventory.go#L316
cannot use []interface{}{…} (value of type []interface{}) as primitive.M value in argument to dbadapter.CommonDBClient.RestfulAPIPostManyWithContext
lint: configapi/api_inventory.go#L316
cannot use sc (variable of type mongo.SessionContext) as []interface{} value in argument to dbadapter.CommonDBClient.RestfulAPIPostManyWithContext
lint: configapi/api_inventory.go#L322
cannot use configmodels.UpfDataColl (constant "webconsoleData.snapshots.upfData" of type string) as context.Context value in argument to dbadapter.CommonDBClient.RestfulAPIPutOneWithContext: string does not implement context.Context (missing method Deadline)
lint: configapi/api_inventory.go#L322
cannot use filter (variable of type primitive.M) as string value in argument to dbadapter.CommonDBClient.RestfulAPIPutOneWithContext
staticcheck: configapi/api_inventory.go#L45
undefined: gnbDataColl
staticcheck: configapi/api_inventory.go#L131
undefined: gnbDataColl
staticcheck: configapi/api_inventory.go#L199
undefined: upfDataColl
staticcheck: configapi/api_inventory.go#L316
cannot use configmodels.UpfDataColl (constant "webconsoleData.snapshots.upfData" of type string) as context.Context value in argument to dbadapter.CommonDBClient.RestfulAPIPostManyWithContext: string does not implement context.Context (missing method Deadline)
staticcheck: configapi/api_inventory.go#L316
cannot use filter (variable of type primitive.M) as string value in argument to dbadapter.CommonDBClient.RestfulAPIPostManyWithContext
staticcheck: configapi/api_inventory.go#L316
cannot use []interface{}{…} (value of type []interface{}) as primitive.M value in argument to dbadapter.CommonDBClient.RestfulAPIPostManyWithContext
staticcheck: configapi/api_inventory.go#L316
cannot use sc (variable of type mongo.SessionContext) as []interface{} value in argument to dbadapter.CommonDBClient.RestfulAPIPostManyWithContext
staticcheck: configapi/api_inventory.go#L322
cannot use configmodels.UpfDataColl (constant "webconsoleData.snapshots.upfData" of type string) as context.Context value in argument to dbadapter.CommonDBClient.RestfulAPIPutOneWithContext: string does not implement context.Context (missing method Deadline)
staticcheck: configapi/api_inventory.go#L322
cannot use filter (variable of type primitive.M) as string value in argument to dbadapter.CommonDBClient.RestfulAPIPutOneWithContext
staticcheck: configapi/api_inventory.go#L322
cannot use sc (variable of type mongo.SessionContext) as map[string]interface{} value in argument to dbadapter.CommonDBClient.RestfulAPIPutOneWithContext
docker-build
Process completed with exit code 2.
license-check
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
hadolint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
fossa-check
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
build-ui
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
unit-tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
docker-build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636