-
Notifications
You must be signed in to change notification settings - Fork 4
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
Management commands (and other improvements) #232
Conversation
Do not use update, since it empties the queryset.
Todo: data migration.
Remove analysis sessions without session requests.
Add verbose names, use lists for ordering, unnest unique_together.
Use already analysed trigger time. Get traces from datastore.
For more consistent tests this would benefit from HiSPARC/sapphire#186 |
This allows SAPPHiRE in the tests to access the test server.
Use localhost for test VM.
Validate detector offsets have been created.
Wow! +1 |
I think this is about ready to be merged. I did not actually test 5ea7973 with an actual local VM, but it seems correct. Additional tests might be nice, for example for the jobs for coincidences/reconstructions/station offsets.. but that can be done later. @tomkooij Could you review this? (and merge & deploy if you wish). |
The tests with actual data are mostly important for a transition to Python 3, to ensure that that all keeps working as expected.. |
There are problems with 5ea7973. The
because of these lines in provisioning/roles/publicdb/defaults/main.yml
Both uses of |
Good catch, thanks! |
Thanks @153957! |
Use get_queryset, earliest, and get_absolute_url.
Separately specify Python version which conda installs. Use https for conda script.
Use Django management commands for frequently executed tasks instead of a separate script and an endpoint.
Benefits: Cleaner cron jobs, easier to test, use Django logging to guide log output, easier to build in options, no publicly available endpoint.
Todo:
make devinstall
)verbose_name(_plural)
, use lists etc..{% url name link.0 link.1 … %}
reverse lookups byget_absolute_url
moreutils
package (available via yum/EPEL)