-
Notifications
You must be signed in to change notification settings - Fork 70
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
Automatic submission(s) page refreshing on status update #145
Conversation
Isn't the status fetched only every 5 minutes for non-superusers? |
Right, I forgot to check how often it happens for standard users. I'll look into this notifications module |
Do you know how to get notifications working in local environment? |
I will write the deployment instructions later today. |
Got notifications working in really unconvienient way (set up and run rabbitmq and notifications_server in web container's bash), and they work alright, automatic refresh can be easily implemented. |
Ideally, the new submission/result would be inserted into the list, otherwise refreshing the page should be decent. I'm not sure whether the other submissions for given problem below should refresh the page in the second case. I checked, and it seems you're right: notifications on szkopuł are broken. Someone responsible should be informed. The settings I use to enable notifications for local deployment:
Other defaults are fine I think. You don't have to run another rabbitmq instance. |
Thanks! I'll go with implementing the automatic updates at the weekend. |
I have no experience with readthedocs, but I think the notifications/README.rst should be updated instead, at least to mention the port exposure and to clear up what settings need to be changed. It seems that the readthedocs stuff is more directed at APIs and the inner workings of oioioi. Nevertheless, it wouldn't hurt to mention the README there. I don't know where the default settings for the rabbitmq connection should be changed, but it would be safest to add it to the sed command in the Dockerfile, where other docker-specific configuration changes reside, though it isn't too consistent with the deprecation of non-docker deployments. |
Sure, tbh I'm gonna make another one because these changes are going to trash |
Moved to #146 |
Resolves #104
Musiałem minimalnie dostosować testy, bo dodanie nowej funkcji "status_registry" czasem zwiększa liczbę zapytań