Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Menu bar: namespace-switching: fall back to verbatim completion when don't have namespace listing privileges #182

Open
jinnovation opened this issue Apr 13, 2024 · 2 comments

Comments

@jinnovation
Copy link
Owner

Overview

In #181 we fixed namespace completion for situations in which the user does not have permission to list namespaces. We need to do something similar for the menu bar.

image

For the menu bar, when the user doesn't have namespace-list permission, we should also provide an option for user to simply enter the namespace verbatim that they'd like to switch to.

@jinnovation
Copy link
Owner Author

We should do this in a way that does not require menu-bar-update-hook to spin up a proxy server every single time it runs.

This means caching can-i values.

@jinnovation
Copy link
Owner Author

caching can-i values

Can we use something like skeeto/emacs-memoize to handle caching? For can-i auth and other use cases in general.

For example, this could allow us to do away w/ the "create a specialized cache var" pattern we've been doing for stuff like namespace caching to date.

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

No branches or pull requests

1 participant