Skip to content

Need graceful exit when invalid list parameters are provided #137

Description

@jeff-schnitter

I ran this command in my workspace today:

cortex workflows list --table -S Tag:asc

It resulted in this output:

<MANY LINES TRUNCATED due to full JSON dump showing up in output>
.
.
.
│ │                    │   },                                                                                                                                                │                                  │
│ │                    │   {                                                                                                                                                 │                                  │
│ │                    │   │   'name': 'Whoami?',                                                                                                                            │                                  │
│ │                    │   │   'tag': 'whoami',                                                                                                                              │                                  │
│ │                    │   │   'description': 'My updated description.  More update.  More update.',                                                                         │                                  │
│ │                    │   │   'isDraft': True,                                                                                                                              │                                  │
│ │                    │   │   'filter': {'type': 'GLOBAL'},                                                                                                                 │                                  │
│ │                    │   │   'runResponseTemplate': None,                                                                                                                  │                                  │
│ │                    │   │   'failedRunResponseTemplate': None,                                                                                                            │                                  │
│ │                    │   │   'restrictActionCompletionToRunnerUser': False,                                                                                                │                                  │
│ │                    │   │   'actions': [],                                                                                                                                │                                  │
│ │                    │   │   'runRestrictionPolicies': [],                                                                                                                 │                                  │
│ │                    │   │   ... +2                                                                                                                                        │                                  │
│ │                    │   },                                                                                                                                                │                                  │
│ │                    │   ... +51                                                                                                                                           │                                  │
│ │                    ]                                                                                                                                                     │                                  │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯                                  │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
TypeError: '<' not supported between instances of 'NoneType' and 'NoneType'

Tag is not a valid column name, but tag is. The CLI needs to handle this condition and fail gracefully.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions