Title: JSONPatch for off_variation doesn't work, result unchanged · Issue #17 · launchdarkly/api-client-python · GitHub
Open Graph Title: JSONPatch for off_variation doesn't work, result unchanged · Issue #17 · launchdarkly/api-client-python
X Title: JSONPatch for off_variation doesn't work, result unchanged · Issue #17 · launchdarkly/api-client-python
Description: I'm trying to patch off_variation in a specific environment(test in this case) The following doesn't work(Note that i've taken this example from auto generated examples: patch_off_variation = PatchWithComment( patch=JSONPatch([ PatchOper...
Open Graph Description: I'm trying to patch off_variation in a specific environment(test in this case) The following doesn't work(Note that i've taken this example from auto generated examples: patch_off_variation = Patch...
X Description: I'm trying to patch off_variation in a specific environment(test in this case) The following doesn't work(Note that i've taken this example from auto generated examples: patch_off_varia...
Opengraph URL: https://github.com/launchdarkly/api-client-python/issues/17
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"JSONPatch for off_variation doesn't work, result unchanged","articleBody":"I'm trying to patch off_variation in a specific environment(test in this case)\r\n\r\nThe following doesn't work(Note that i've taken this example from auto generated examples:\r\n```python\r\npatch_off_variation = PatchWithComment(\r\n patch=JSONPatch([\r\n PatchOperation(\r\n op=\"replace\",\r\n path=\"/environments/test/off_variation\",\r\n value=1,\r\n ),\r\n ]),\r\n comment=f\"{project_key}-patch-off_variation\",\r\n )\r\napi_response = api_instance.patch_feature_flag(project_key, feature_flag_key, patch_off_variation)\r\n``` \r\nThis however works with other fields such as `on` or `fallthrough.variation`\r\n\r\nI've tried int and str, expected an error but operation returns 200.\r\n\r\nVersion(from pip freeze)\r\nlaunchdarkly-api @ git+https://github.com/launchdarkly/api-client-python.git@9bdc16d79381a1f03c8a51dd69323c80a13a286d","author":{"url":"https://github.com/GeosMeos","@type":"Person","name":"GeosMeos"},"datePublished":"2024-03-10T14:48:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/17/api-client-python/issues/17"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d42fd1e6-9906-54e8-3f7a-472c613c6bc8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E212:177E05:1399FF:197DAA:69920A56 |
| html-safe-nonce | 6b63e06149d0188a9ea694d2135ae9a2bad1eb854c01d1aa56952378c5773fdc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjEyOjE3N0UwNToxMzk5RkY6MTk3REFBOjY5OTIwQTU2IiwidmlzaXRvcl9pZCI6IjI5Nzk2NzEyMDAxNjk1OTM0MzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ae60f0d5f0550e71511bea61d5f4cb2dd1eb4bb7c0312b413d5e577c29cf53b2 |
| hovercard-subject-tag | issue:2177754086 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/launchdarkly/api-client-python/17/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bfb491890d6cf6e0e5a818a2da29759974c9d8483b6c53fa40c6795c808ab8f1/launchdarkly/api-client-python/issues/17 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bfb491890d6cf6e0e5a818a2da29759974c9d8483b6c53fa40c6795c808ab8f1/launchdarkly/api-client-python/issues/17 |
| og:image:alt | I'm trying to patch off_variation in a specific environment(test in this case) The following doesn't work(Note that i've taken this example from auto generated examples: patch_off_variation = Patch... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | GeosMeos |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/launchdarkly/api-client-python git https://github.com/launchdarkly/api-client-python.git |
| octolytics-dimension-user_id | 8039656 |
| octolytics-dimension-user_login | launchdarkly |
| octolytics-dimension-repository_id | 102905895 |
| octolytics-dimension-repository_nwo | launchdarkly/api-client-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 102905895 |
| octolytics-dimension-repository_network_root_nwo | launchdarkly/api-client-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width