Skip to content

Status filter on /node/network/nodes does not match enum #2334

Closed
@lynshi

Description

@lynshi

Describe the bug
Recently, enum values have been PascalCased. As defined here, NodeStatus is Trusted/Pending/Retired. However, /node/network/nodes still expects full capitalization for the status filter. Thus, passing status=Trusted results in an HTTP error "Query parameter 'Trusted' is not a valid node status".

Expected behavior
Acceptable values for the filter should match the NodeStatus enum values.

Environment information
CCF 0.19.2

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions