-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Looking for an example of Variant$update_variant(...)
#199
Comments
Variant$update_variant(...)
Variant$update_variant(...)
Parameters are not configurable nor specifiable using the API. Unfortunately, a Shiny application is currently used for that parameter configuration. Similar to my response to #200, we want to make this entire lifecycle better -- from creating variants to managing their persisted parameter values and also specifying ad-hoc parameter values for a specific render request. We are already tracking this feature request internally; I've referenced this ticket to share what you're attempting. |
Got it. Thanks for your quick responses. What can |
The variant update can manage most of the fields you're seeing in the response -- its name and some of the "who gets email" fields. It is not the way to configure values-used-by-render. |
Thank you. I know it's challenging to promise any specific timelines, but do you anticipate releasing some improvements to the Variants workflow/lifecycle in this calendar year? (Just trying to get a very rough sense of how much ongoing manual work we're signing up for if we start using variants for dozens of reports -- and need to create them, perhaps update params at a later date, etc.) |
Also, I'm just dropping a few errors here, as an FYI. I can open a fresh issue if you want it, but it seems like the general messaging is "there will be significant overhaul in the future; stand by."
When I looked at the source code, it appeared some of these endpoint URLs were missing a call to
|
Howdy @fh-kpikhart ! Thanks so much for the note. It looks like you may have found a legitimate bug, which we can definitely fix! That said, we are definitely still working on refactoring the parameterization experience. Unfortunately that work has just been slowed down by some other work to support maintenance / stability. We are still chugging away though! Although we expect that work to change the experience, we still want to be sure that the product and its available features work as expected today, which would definitely include fixing the issue you found! |
Maybe give #204 a shot and see if it fixes things for you in the short term? |
Can you share a working example of how to use
Variant$update_variant(...)
, and perhaps add that example to the method's documentation? I am trying to useVariant$update_variant(...)
to update Variant parameters, but am struggling to format the call correctly for it to work. My goal is to update the parameters for many Variants, in bulk. I believe this is the appropriate method for that.I don't get any error, but I don't get a standard http response either, and the parameters are unchanged when I look at the content on the Connect server.
Attempt 1:
Result 1:
Attempt 2:
Result 2:
My helper functions
The text was updated successfully, but these errors were encountered: