Skip to content

Fix: explicit opt_article relationship declaration in retail_planning_local.py#73

Merged
nikolaoszygouras-rai merged 1 commit into
retail_planning_v2from
fix/retail-planning-explicit-opt-article-relationship
May 21, 2026
Merged

Fix: explicit opt_article relationship declaration in retail_planning_local.py#73
nikolaoszygouras-rai merged 1 commit into
retail_planning_v2from
fix/retail-planning-explicit-opt-article-relationship

Conversation

@nikolaoszygouras-rai
Copy link
Copy Markdown
Contributor

The ProdCapacity.opt_article relationship was used without being explicitly
declared, triggering a RAI SDK "potential typo" warning (it resembles pc_article_id).
Added an explicit model.Relationship(...) declaration before the model.define() call to suppress the warning.

No behavioral change — the code already worked correctly.

@github-actions
Copy link
Copy Markdown

The docs preview for this pull request has been deployed to Vercel!

✅ Preview: https://relationalai-docs-2ozduohuz-relationalai.vercel.app/build/templates
🔍 Inspect: https://vercel.com/relationalai/relationalai-docs/3EnKyvqL5EHWbdb8ukfdQYrH737A

@nikolaoszygouras-rai nikolaoszygouras-rai changed the base branch from main to retail_planning_v2 May 21, 2026 09:47
@nikolaoszygouras-rai nikolaoszygouras-rai merged commit 28547a5 into retail_planning_v2 May 21, 2026
2 checks passed
@nikolaoszygouras-rai nikolaoszygouras-rai deleted the fix/retail-planning-explicit-opt-article-relationship branch May 21, 2026 09:48
cafzal pushed a commit that referenced this pull request May 21, 2026
* Update retail_planning README for predictive reasoner setup

- Bump minimum relationalai SDK version to 1.3.1 (required for predictive reasoner)
- Replace `rai init` quickstart step with instructions to edit raiconfig.yaml directly,
  since the SDK now prioritizes .yaml over the .toml that rai init produces
- Add quickstart step with SQL commands to create the experiment database/schema
  in Snowflake and grant required permissions to the RAI Native App
- Remove inapplicable has_time_column=True troubleshooting entry

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Bump minimum relationalai version to 1.4.1

The predictive reasoner requires relationalai >= 1.4.1. Updates both the
pyproject.toml dependency and the README prerequisites line.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Install relationalai with [gnn] extra

The predictive reasoner requires GNN dependencies, which are pulled in via
the [gnn] extra.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Pin relationalai to ==1.4.1 and revert configure step to rai init

- pyproject.toml and README now pin relationalai[gnn]==1.4.1 (exact)
- Quickstart step 4 reverted to `rai init`

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Merge pull request #73 from RelationalAI/fix/retail-planning-explicit-opt-article-relationship

Fix: explicit opt_article relationship declaration in retail_planning_local.py

* Add ensure_change_tracking note after rai init step

Tell users to add `data.ensure_change_tracking: true` to raiconfig.yaml
after rai init generates it.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: nikolaoszygouras-rai <nikolaos.zygouras@relational.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant