thoughtspot / cs_tools

Scale your ThoughtSpot adoption with tools created by the ThoughtSpot Solutions Consulting organization.
https://thoughtspot.github.io/cs_tools/
Other
8 stars 6 forks source link

ValidationError with weekly exports #105

Closed paulkaefer closed 6 months ago

paulkaefer commented 6 months ago

First Stop

Platform Configuration

cs-tools-info-2024-03-04

Description

I've been running a cs_tools tools searchable gather and a cs_tools tools searchable bi-server weekly. Today, I got the below issues with both:

ValidationError: 4 validation errors for LoggedInUser                           
privileges -> 8                                                                 
  value is not a valid enumeration member; permitted: 'AUTHORING',              
'ADMINISTRATION', 'USERDATAUPLOADING', 'DATADOWNLOADING', 'DEVELOPER',          
'SHAREWITHALL', 'DATAMANAGEMENT', 'EXPERIMENTALFEATUREPRIVILEGE', 'RANALYSIS',  
'SYNCMANAGEMENT', 'PREVIEW_THOUGHTSPOT_SAGE', 'JOBSCHEDULING', 'A3ANALYSIS',    
'BYPASSRLS', 'DISABLE_PINBOARD_CREATION', 'LIVEBOARD_VERIFIER'                  
(type=type_error.enum; enum_values=[<GroupPrivilege.innate: 'AUTHORING'>,
...
🤓  This is an unhandled error!  🤓
...

The traceback points to:

╭───────────────────── Traceback (most recent call last) ──────────────────────╮
│ /Users/paulkaefer/Library/Application                                        │
│ Support/cs_tools/.cs_tools/lib/python3.11/site-packages/cs_tools/cli/main.py │
│ :144 in run                                                                  │
│                                                                              │
│   141 │   app.add_typer(_log.app)                                            │
│   142 │                                                                      │
│   143 │   try:                                                               │
│ ❱ 144 │   │   return_code = app(standalone_mode=False)                       │
│   145 │                                                                      │
│   146 │   except (click.Abort, typer.Abort):                                 │
│   147 │   │   return_code = 0   

It looks like it relates to the ctx.obj.thoughtspot.login() call in thoughtspot.py. I just verified that I can still log-in to our ThoughtSpot account via the web.

boonhapus commented 6 months ago

Hey @paulkaefer , if you upgrade to v1.4.16, you should be able to get past this issue. In prior versions, we were too strict about the privilege enumeration.

paulkaefer commented 6 months ago

@boonhapus that worked! thank you!