Repository navigation
docs: Fix the permissions import in the multi-site guide, which cannot run - #7308
Open
VenishPaneliya wants to merge 1 commit into
Open
VenishPaneliya wants to merge 1 commit into
VenishPaneliya wants to merge 1 commit into
Conversation
…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>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
The permission snippet in the multi-site guide cannot run.
feast/permissions/__init__.pyis empty, sofrom feast.permissions import Permission, RoleBasedPolicyraisesImportError.Permissionlives infeast.permissions.permissionandRoleBasedPolicyinfeast.permissions.policy, andfeast/__init__.pyre-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:docs/how-to-guides/production-deployment-topologies.md:830-831imports these exact two classes the correct way.Which issue(s) this PR fixes:
None.
Checks
git commit -s)Testing Strategy