"On demand" formulas
メンテナーはふだん 1 日以内に返信
@jqnatividad がすでに取り組んでいます。
2025年5月29日 から。
評価
この issue はまだ評価されていません。
説明
DP+ DRUF currently supports two formula types:
formula(aka "direct formulas")
the Jinja2 expression is evaluated at package creation/update and "directly" stored into the designated package/resource field.suggestion_formula
the Jinja2 expression is evaluated at package creation/update, and is stored in thedpp_suggestionspackage field (as a JSON object). Thedpp_suggestionspackage field is used to power the Bootstrap-powered Suggestion UI popover
We should create a third formula type - On demand, which is a variant of suggestion_formula.
It is indicated by a new scheming keyword - ondemand_formula.
As the name implies, an ondemand formula is calculated on demand, i.e. while entering metadata in CKAN.
When an ondemand_formula is used, the Suggestion UI will have an "Recalculate" button in addition to "Apply Suggestion" button.
To enable this, DP+ will have a new Action API endpoint - dpp_ondemand_formula:
def dpp_ondemand_formula(context, data_dict):
'''
Evaluate the on_demand formula for the given package/resource field
:param formula: the Jinja2 expression to evaluate.
:param track_invocation: track the formula/result pair with a timestamp (default: false)
'''
When the "Recalculate" button is pressed, the Suggestion UI calls the dpp_ondemand_formula API for the associated field.
Ondemand formulas will be initially used for AI-powered formulas - as they often need repeated invocations while entering metadata.
We offer the ability to "track_invocation", so the user can possibly use/consult previous invocations.
Eventually, ondemand formulas can be also used to have "formula presets", similar to scheming's "presets".
"Formula presets" are traditional jinja2 templates that can render a custom UI for an associated formula that may require additional form controls beyond the generic Suggestion UI (e.g. a field picker to select which fields to use in a formula during data entry).
cc @minhajuddin2510 @samibaig @wardi
- 主要言語
- Python
- スター
- 47
- フォーク
- 33
- 平均マージ
- 2時間 28分
- マージ済み PR(30日)
- 10
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
dathere/datapusher-plus のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
dathere/datapusher-plus#359 ·
メンテナーはふだん 1 日以内に返信
-
"Total elapsed time" in the JOB DONE line is ~1.79 billion seconds (perf_counter overwrites the time.time() start)対応中かも @tino097 が 14 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
dathere/datapusher-plus#355 ·
メンテナーはふだん 1 日以内に返信
-
FormulaProcessing stage always skipped on CKAN 2.10+: ckan.plugins is a list, stage calls .split() on it対応中かも @tino097 が 14 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
dathere/datapusher-plus#354 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
dathere/datapusher-plus#340 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 53/100
dathere/datapusher-plus#338 ·
メンテナーはふだん 1 日以内に返信
dathere/datapusher-plus の issue をすべて見る
似ている issue
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
gke-labs/kube-agents#5671 ·
メンテナーはふだん 1 日以内に返信
-
docs(auth): Method B step 4 should tell users to tick "Use this client for an AI-powered agent"オープンdocumentation next-release v0.9.6
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
khuisman/mcp-gee-sweet#1446 ·
メンテナーはふだん 1 日以内に返信
-
model:sonnet runtime:claude security size:S
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
FootprintAI/Containarium#3671 ·
メンテナーはふだん 1 日以内に返信
-
HolidayBase: reassigning `language` does not re-initialize translations or re-populate holidays対応中かも @shikhabhadoria が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
vacanza/holidays#4116 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug CLI exec
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信