Make sure mandatory settings are set in the module #464
Labels
No labels
automation
backend
bug
contributor experience
data
deployment
documentation
duplicate
good first issue
help wanted
nice to have
notifications
package maintainer
performance
skin
tech debt
user story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-community/nix-security-tracker#464
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently we hard-code some settings in the Django app (such as the GitHub org and repo). When merely testing and not using the staging configuration as a template, this will crash with an inscrutable error. It would be better if we could notify the user that the settings must be set in the module, and give a hint on finding out how/where to do that.
The inscrutable errors are due to the replies given by the GitHub API, which won't be fixed unless they are rewrapped.
However, what this is hinting at is that settings.py shouldn't have values for 3rd party integrations and we should move them to an existence check.
Also, as opposed to dumb key-values in Python, in the module we can extensively document what we need to have set there and check types.