Skip to content

docs: Fix the permissions import in the multi-site guide, which cannot run - #7308

Open
VenishPaneliya wants to merge 1 commit into
feast-dev:masterfrom
VenishPaneliya:docs-permissions-import
Open

VenishPaneliya wants to merge 1 commit into
feast-dev:masterfrom
VenishPaneliya:docs-permissions-import

Conversation

@VenishPaneliya

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

The permission snippet in the multi-site guide cannot run. feast/permissions/__init__.py is empty, so from feast.permissions import Permission, RoleBasedPolicy raises ImportError. Permission lives in feast.permissions.permission and RoleBasedPolicy in feast.permissions.policy, and feast/__init__.py re-exports neither.

The same snippet already uses the submodule form on its very next line (from feast.permissions.action import AuthzedAction), and the rest of the docs agree:

feast/permissions/__init__.py : 0 bytes -> exports nothing
  Permission       defined in feast.permissions.permission   True
  RoleBasedPolicy  defined in feast.permissions.policy       True
  feast/__init__.py exports Permission: False

docs: correct submodule imports=29 | broken package imports=1

docs/how-to-guides/production-deployment-topologies.md:830-831 imports these exact two classes the correct way.

Which issue(s) this PR fixes:

None.

Checks

  • I've made sure the tests are passing.
  • My commits are signed off (git commit -s)
  • My PR title follows conventional commits format

Testing Strategy

  • Unit tests
  • Integration tests
  • Manual tests
  • Testing is not required for this change

…t run

feast/permissions/__init__.py is empty, so importing Permission and
RoleBasedPolicy from the package raises ImportError. Permission lives in
feast.permissions.permission and RoleBasedPolicy in
feast.permissions.policy, and feast/__init__.py re-exports neither. The
same snippet already uses the submodule form on its next line for
AuthzedAction, and 29 other documented imports under docs/ use it too.

Signed-off-by: VenishPaneliya <141703684+VenishPaneliya@users.noreply.github.com>
@VenishPaneliya
VenishPaneliya requested a review from a team as a code owner December 5, 2026 15:09

This branch has not been deployed

No deployments
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.

1 participant