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

APP_DEFAULT_{EVENTS,PERMISSIONS} are incompatible #7

Open
sodre opened this issue Apr 1, 2020 · 1 comment
Open

APP_DEFAULT_{EVENTS,PERMISSIONS} are incompatible #7

sodre opened this issue Apr 1, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@sodre
Copy link
Member

sodre commented Apr 1, 2020

The default parameters are incompatible. A push event requires more than just the metadata=read permission.

The list of available events is here.
The list of available permissions is TBD.

with env.prefixed("DEFAULT_"):
APP_DEFAULT_EVENTS = env.list(
"EVENTS", "push", validate=ContainsOnly(valid_events)
)
APP_DEFAULT_PERMISSIONS = env.dict("PERMISSIONS", "metadata=read")

This is the error message:
image

@sodre sodre added the bug Something isn't working label Apr 1, 2020
@sodre
Copy link
Member Author

sodre commented May 1, 2020

It looks like switching the default events to "public" is the safest option.

sodre added a commit that referenced this issue May 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant