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

Add capability introspection to url operations framework #542

Open
mih opened this issue Nov 23, 2023 · 0 comments
Open

Add capability introspection to url operations framework #542

mih opened this issue Nov 23, 2023 · 0 comments

Comments

@mih
Copy link
Member

mih commented Nov 23, 2023

There are a number of issues that point out that capabilities of different URL handlers is different (and maybe will remain different). This installs a challenge for client-code. Users can configure handlers to use and client-code need to adjust to such choices. Without knowing of a, e.g., deletion can be forced (#454), or performed recursively, complex try-except logic is the only way to mitigate.

I propose to have handlers report their capabilities. This could be done with a simple enum that defines particular features (and the docs would communicate exactly what their definition is), and each handler would expose a set of feature labels.

With this setup in place, client-code can determine whether it is possible to perform one or the other algorithm, or whether individual aspects can be left to optimized implementations in specialized handlers.

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