Skip to content

Conversation

@jacalata
Copy link
Contributor

@jacalata jacalata commented Mar 6, 2023

need to figure out how to test this before merging

@jacalata jacalata force-pushed the jac/query-tagging branch from 4c679cb to e782c29 Compare March 8, 2023 23:14
@jacalata jacalata changed the title WIP: add query-tagging attribute to connection add query-tagging attribute to connection Mar 8, 2023
@jacalata
Copy link
Contributor Author

jacalata commented Mar 8, 2023

Validated this locally using one hyper datasource (cannot change the value for queryTagging) and one postgres connection (attribute successfullyl updated)

connection_item.server_address = connection_xml.get("serverAddress", None)
connection_item.server_port = connection_xml.get("serverPort", None)
connection_item.username = connection_xml.get("userName", None)
connection_item._query_tagging = connection_xml.get("queryTaggingEnabled", None)

Choose a reason for hiding this comment

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

Just double checking we don't need to use string_to_bool() here like we did on connection_item.embed_password

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch. Added that and tests to cover it.

@jacalata jacalata merged commit ec37de2 into development Mar 9, 2023
@jacalata jacalata deleted the jac/query-tagging branch March 9, 2023 04:52
jacalata added a commit that referenced this pull request Mar 16, 2023
* Implement custom view objects (#1195)
* Fix bug in update-datasources before 3.15 (#1203) (fixes #1072)
* catch exceptions from ServerInfo (#1204)
* add query-tagging attribute to connection (#1202) (add explanation for why it doesn't work on hyper)

---------

Co-authored-by: Marwan Baghdad <[email protected]>
Co-authored-by: jorwoods <[email protected]>
Co-authored-by: Brian Cantoni <[email protected]>
Co-authored-by: TrimPeachu <[email protected]>
Co-authored-by: Stu Tomlinson <[email protected]>
Co-authored-by: Jeremy Harris <[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.

3 participants