Skip to content

Add GremlinServiceAvailable alert rule

codefactor.io / CodeFactor failed Mar 6, 2024 in 5s

10 issues found.

Annotations

Check notice on line 49 in python/graphscope/flex/rest/models/data_source.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

python/graphscope/flex/rest/models/data_source.py#L49

unresolved comment '# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead' (C100)

Check notice on line 63 in python/graphscope/flex/rest/models/edge_data_source.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

python/graphscope/flex/rest/models/edge_data_source.py#L63

unresolved comment '# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead' (C100)

Check warning on line 81 in flex/coordinator/gs_flex_coordinator/core/insight/groot.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

flex/coordinator/gs_flex_coordinator/core/insight/groot.py#L81

Pickle and modules that wrap it can be unsafe when used to deserialize untrusted data, possible security issue. (B301)

Check notice on line 286 in flex/coordinator/gs_flex_coordinator/core/insight/graph.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

flex/coordinator/gs_flex_coordinator/core/insight/graph.py#L285-L286

Try, Except, Pass detected. (B110)

Check notice on line 59 in python/graphscope/flex/rest/models/vertex_data_source.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

python/graphscope/flex/rest/models/vertex_data_source.py#L59

unresolved comment '# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead' (C100)

Check warning on line 62 in flex/coordinator/gs_flex_coordinator/core/interactive/hqps.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

flex/coordinator/gs_flex_coordinator/core/interactive/hqps.py#L62

Pickle and modules that wrap it can be unsafe when used to deserialize untrusted data, possible security issue. (B301)

Check warning on line 71 in flex/coordinator/gs_flex_coordinator/core/insight/groot.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

flex/coordinator/gs_flex_coordinator/core/insight/groot.py#L71

Pickle and modules that wrap it can be unsafe when used to deserialize untrusted data, possible security issue. (B301)

Check notice on line 123 in flex/coordinator/gs_flex_coordinator/core/alert/builtin_rules.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

flex/coordinator/gs_flex_coordinator/core/alert/builtin_rules.py#L122-L123

Try, Except, Pass detected. (B110)

Check notice on line 60 in python/graphscope/flex/rest/models/groot_dataloading_job_config.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

python/graphscope/flex/rest/models/groot_dataloading_job_config.py#L60

unresolved comment '# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead' (C100)

Check notice on line 48 in python/graphscope/flex/rest/models/groot_dataloading_job_config_edges_inner.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

python/graphscope/flex/rest/models/groot_dataloading_job_config_edges_inner.py#L48

unresolved comment '# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead' (C100)