Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
 
Answered
Is there a way to programmatically update Wedge address configs?

In the docs on configuration for our SDK extensions, it says to use Wedge address configs for putting dynamic config data in the database. This data can be set to different values depending on the environment that we are in (Sandbox, Staging, Production). In a portion of our extension, we would like to change one of these config values based on a user's actions and have those changes saved in the database. Is there a simple way to programmatically change a Wedge address config value using the SDK extension code?

For instance, this is a sample of the code we would like to implement:

if self.wedge_address_configs['mock_api_calls'] and self.wedge_address_configs['use_wedge_configs']:
  # Code to change self.wedge_address_configs['someRandomValue'] from True to False
else:
  # Continues code normally with no changes to Wedge address configs
Posted 2 years ago
Votes Newest

Answers


Hi Ethan,

The WedgeAddress DBObject can be utilized to update your wedge address configurations. You can utilize self.db.wedge_address and provide the expected parameters for the update method, if this is for a tecton server extension. Otherwise, the same call can be invoked by initializing a WedgeAddress DBObject, passing in the logger and hq credentials, and then calling the update function. See https://docs.q2developer.com/api_references/q2_sdk/db/db_objects/wedge_address.html for more info.

Thanks,

Solène

Posted 2 years ago
179 Views
1 Answer
2 years ago
2 years ago