Skip to content

Update CLI docs to reflect TE3 PR 3254 bpa run resolution chain#327

Merged
MariaJoseFF merged 3 commits into
mainfrom
user-mjf/te-cli-bpa-rules-rename
Jun 3, 2026
Merged

Update CLI docs to reflect TE3 PR 3254 bpa run resolution chain#327
MariaJoseFF merged 3 commits into
mainfrom
user-mjf/te-cli-bpa-rules-rename

Conversation

@MariaJoseFF
Copy link
Copy Markdown
Collaborator

Summary

Corrects three stale references in the freshly-released CLI docs (PR #313) to match the behaviour shipped in TE3 PR 3254 (fix(cli): te bpa run honours bpa.rules config and TE_BPA_PATH env var) and the follow-up env-var rename:

  • te-cli-limitations.md -- rename two remaining TE_BPA_PATH references to TE_BPA_RULES. The env var was renamed in CLI commit 138136976; the rest of the docs already use the new name.
  • te-cli-config.md -- note te bpa run alongside the deploy/save gate as a consumer of every bpa.rules entry. Previously the doc implied only the gate loaded every entry.
  • te-cli-commands.md -- clarify the te bpa run --rules description (it replaces the user-rule layer; it is not "additional") and add a new Rule sources and resolution subsection that walks through the three rule layers, the priority chain --rules > TE_BPA_RULES > bpa.rules config, and the Rules loaded: attribution line.

End-to-end behaviour was verified live against te.exe built from origin/main of the TE3 repo (HEAD = 29ed35188) using the bundled model-with-bpa.bim fixture. All five user-story scenarios (no source / bpa.rules config / TE_BPA_RULES env var / --rules flag / --no-defaults) attribute correctly.

Test plan

  • Render te-cli-commands.md and confirm the new Rule sources and resolution anchor links resolve.
  • Render te-cli-config.md and confirm the bpa.rules row reads correctly.
  • Render te-cli-limitations.md and confirm no TE_BPA_PATH strings remain in the BPA section.

- Rename two remaining TE_BPA_PATH references to TE_BPA_RULES in
  te-cli-limitations.md (env var was renamed in CLI commit 138136976).
- Note te bpa run alongside the deploy/save gate as a consumer of every
  bpa.rules entry in te-cli-config.md.
- Clarify te bpa run --rules description (replaces user-rule layer,
  not "additional") and add a "Rule sources and resolution" subsection
  covering the priority chain --rules > TE_BPA_RULES > bpa.rules config
  and the layered model used by the Rules loaded: output line.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 1, 2026

Azure Static Web Apps: Your stage site is ready! Visit it here: https://delightful-mud-081affe03-327.westeurope.azurestaticapps.net

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates Tabular Editor CLI documentation to match TE3 PR 3254 behavior for BPA rule-source resolution (including the TE_BPA_RULES env var rename) and clarifies how te bpa run composes rules from multiple layers.

Changes:

  • Renames stale TE_BPA_PATH references to TE_BPA_RULES in CLI limitations.
  • Clarifies that te bpa run (in addition to the deploy/save gate) loads every existing bpa.rules entry.
  • Refines te bpa run --rules semantics and adds a “Rule sources and resolution” subsection documenting layer priority and attribution output.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
content/features/te-cli/te-cli-limitations.md Updates BPA env var name references to TE_BPA_RULES.
content/features/te-cli/te-cli-config.md Clarifies bpa.rules consumers (adds te bpa run alongside the gate).
content/features/te-cli/te-cli-commands.md Improves --rules description and documents rule-layer resolution and priority.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread content/features/te-cli/te-cli-commands.md Outdated
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

Azure Static Web Apps: Your stage site is ready! Visit it here: https://delightful-mud-081affe03-327.westeurope.azurestaticapps.net

1 similar comment
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

Azure Static Web Apps: Your stage site is ready! Visit it here: https://delightful-mud-081affe03-327.westeurope.azurestaticapps.net

The xref anchor #bpa-gate-keys does not correspond to any heading in te-cli-config.md (the closest relevant section is ### Built-in BPA rules).

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

Azure Static Web Apps: Your stage site is ready! Visit it here: https://delightful-mud-081affe03-327.westeurope.azurestaticapps.net

Comment thread content/features/te-cli/te-cli-commands.md Outdated
@jeroenterheerdt
Copy link
Copy Markdown
Contributor

@MariaJoseFF looks good to me, feel free to merge when the release that contains this PR goes live

- Change <file-or-url> (line 410) and <path-or-url> (line 441) to <rules>,
  matching what te bpa run --help prints. The placeholder is auto-derived
  from the option name in TabularEditor3.CLI/Commands/BpaCommand.cs and no
  HelpName override is set, so <rules> is the canonical label users see.
- Preserve the path-or-URL clarification: line 410's description already
  reads "path(s) or URL(s) to BPA rule file(s) in JSON format"; line 441's
  priority-list entry now reads "flag, accepts a file path or URL (highest)"
  so the clarification is retained without duplicating it in the placeholder.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 3, 2026

Azure Static Web Apps: Your stage site is ready! Visit it here: https://delightful-mud-081affe03-327.westeurope.azurestaticapps.net

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 3, 2026

Azure Static Web Apps: Your stage site is ready! Visit it here: https://delightful-mud-081affe03-327.westeurope.azurestaticapps.net

@MariaJoseFF
Copy link
Copy Markdown
Collaborator Author

Merging this PR since TE_BPA_RULES already appears as the env var in the latest CLI release.

@MariaJoseFF MariaJoseFF merged commit 51ac725 into main Jun 3, 2026
6 checks passed
@MariaJoseFF MariaJoseFF deleted the user-mjf/te-cli-bpa-rules-rename branch June 3, 2026 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants