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
Merge staging into production, 2024 Feb 22 edition #1326
Conversation
Note: No changes were needed to test cases
Note: No tests needed to be modified. All relevant to this view pass.
Note: All relevant tests are passing. No changes need to be made.
where we used to return a chant's siglum rather than the chant's source's siglum
which was accidentally committed
which is no longer used and has been superseded by the SourceInventoryView
Optimize SourceInventoryView queries
Write tests for AjaxMelodyView
Change `user_can_edit_sequences` permissions
…to cantusdatabase.org
Specify server names in nginx configuration
Redirect http traffic directly to https://cantusdatabase.org
Merge develop into staging, 2024 Feb 22 edition
While testing these changes, I've hit several 502 Bad Gateways on pages that shouldn't be expensive to load (e.g. https://staging.cantusdatabase.org/source/123641) - @dchiller, are you able to take a look at the logs to see whether there's something systematic going on here, and that it's not just The Alliance having a bad day or something? |
|
I updated the dev_env file on the internal wiki to add the IP addresses to |
The issue is with I'm going to get rid of the grafana logging now, because it doesn't make sense for only me to have access. |
I'm guessing this particular error message was a result of my attempts to debug (see my couple of messages in Slack). Things seem to be working now. |
Ah, ok. Well, once containers are restarted (if not already) docker logs should be back to normal and not sent to grafana. |
I think this probably shouldn't be necessary. |
You responded to me on slack about this but responding here so we can all see... what is the issue that this solves? I understand that something is requesting something with that host, but why is it an issue...whatever is requesting it probably shouldn't be requesting it. On the other hand, this made me realize that since we don't have a default server block in our nginx config, requests to the IP are getting through to django even though we've specified server_name's in all blocks in |
I think I was conflating two different requests that both timed out. Thanks for probing for information/clarification on this - I'm coming to the conclusion too that these IP addresses should not be included. I'll take them out of the
I've opened #1331 - please feel free to expand on this there. Thank you! |
These changes are now running on Production! All tests are passing, and everything seems to be behaving as expected! |
A list of places where code has been touched:
ajax_melody_list
function-based view (Search-by-melody page)volpiano-display-utilities
volpiano-display-utilities
volpiano-display-utilities
server_name
s incantusdb.conf
www.cantusdatabase.org
is now redirected tocantusdatabase.org
https://cantusdatabase.org
http://{alternate}.cantusdatabase.org
->https://{alternate}.cantusdatabase.org
->http://cantusdatabase.org
requirements.txt
volpiano-display-utilities
dependency added