Skip to content

Conversation

@jacalata
Copy link
Contributor

@jacalata jacalata commented Jan 4, 2023

Set the user agent of the new TSC.Server object, including the version.
This will not show up in requests until we use the newest version of TSC.

@github-actions
Copy link

github-actions bot commented Jan 4, 2023

Coverage

Coverage Report
FileStmtsMissCoverMissing
tabcmd
   __main__.py888 0%
   tabcmd.py151515 0%
   version.py633 50%
tabcmd/commands
   commands.py101010 0%
   constants.py721212 83%
   server.py1262525 80%
tabcmd/commands/auth
   session.py3214848 85%
tabcmd/commands/datasources_and_workbooks
   datasources_and_workbooks_command.py1103030 73%
   delete_command.py601616 73%
   export_command.py1272727 79%
   get_url_command.py1906262 67%
   publish_command.py661919 71%
   runschedule_command.py2177 67%
tabcmd/commands/extracts
   create_extracts_command.py4388 81%
   decrypt_extracts_command.py2722 93%
   delete_extracts_command.py3766 84%
   encrypt_extracts_command.py2722 93%
   reencrypt_extracts_command.py2722 93%
   refresh_extracts_command.py682626 62%
tabcmd/commands/group
   create_group_command.py2955 83%
   delete_group_command.py2722 93%
tabcmd/commands/project
   create_project_command.py4688 83%
   delete_project_command.py3544 89%
   publish_samples_command.py2844 86%
tabcmd/commands/site
   create_site_command.py3455 85%
   delete_site_command.py2822 93%
   edit_site_command.py3822 95%
   list_command.py341818 47%
   list_sites_command.py3022 93%
tabcmd/commands/user
   create_site_users.py571010 82%
   create_users_command.py601010 83%
   delete_site_users_command.py4355 88%
   user_data.py2203030 86%
tabcmd/execution
   _version.py222 0%
   global_options.py1472525 83%
   localize.py6788 88%
   logger_config.py4266 86%
   tabcmd_controller.py3755 86%
TOTAL254248181% 

# proxy, --no-proxy,
# cert
http_options = {}
http_options = {"headers": {"User-Agent": "Tabcmd" + version}}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jacalata jacalata merged commit 02edb28 into development Jan 6, 2023
@jacalata jacalata deleted the jac/user-agent branch January 6, 2023 23:30
jacalata added a commit that referenced this pull request Feb 20, 2023
* make usernames case sensitive in import
* Set user agent (#219)
* add logging to check signin failure
* add flows and --detail option to listing output
* encoding filter values to handle spaces and special chars in filters, added new --filter option to pass in un-encoded value for simpler input
* add --url, --include-all/--embedded-datasources for create/refresh/delete extract commands
* replace polling code with library call

---------

Co-authored-by: Bhuvnesh Singh <[email protected]>
jacalata added a commit that referenced this pull request Jul 28, 2023
Fixes, code enhancements
* remove lowercase call while parsing csv for adding users
* set user agent (#219)
* Add and clean up logging, always include version in logs (#234, #224)
* Encoding filter values to handle spaces and special chars in filters  (#225)
* replace polling code with library call
* readme updates (#235)
* Read and warn when user sets thumbnail options. (including 'not yet implemented' message for --thumbnail-group)
* freeze tsc dependency (#248)

New functionality
* added new --filter option to pass in un-encoded value for simpler input
* Add --url, --include-all/--embedded-datasources for create/refresh/delete extract commands (#227)
* Add new command for listing content on the site (#230)
* Implement publishing options overwrite/append/replace arguments (including not-yet-implemented message for --replace) (#236)
* implement --proxy, --no-proxy,  --use-certificate option  (#241)
* add --token-file option (#243)

---------

Co-authored-by: Bhuvnesh Singh <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants