dataiku / dataiku/dataiku-api-client-python

dataikuapi/dss/recipe.py : set_code_env fix

未關閉
#110 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

主要語言
Python
星號
44
分支
29
平均合併
3 小時 34 分鐘
30 天內合併 PR
2

描述

Hi,

I don't know if the the post I've made on the Community forum has been reviewed yet.
I haven't seen a commit on it (not in the "master" nor the "dss80-set-code-env-mode") so I post an issue here.

The function set_code_env (from the class CodeRecipeSettings) doesn't set the code env but a string :

if code_env is not None: rp["envSelection"] = {"envMode": "EXPLICIT_ENV", "envName": "code_env"}

Should be :

if code_env is not None: rp["envSelection"] = {"envMode": "EXPLICIT_ENV", "envName": code_env}

Hoping I won't trouble your workspace.

Greetings,
Steven

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

在 dataikuapi/dss/recipe.py 中,從 CodeRecipeSettings.set_code_env 開始,將 envSelection payload 與 issue 預期的值進行比較。使用所提供的程式碼環境名稱,而不是字面字串時即完成;issue 中未提及測試檔案。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
python
領域
api
Issue 類型
缺陷
難度
1/5
預估耗時
1 小時以內
活躍度
停滯
描述清晰度
描述清楚
新手友好度
55/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。