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

Merge develop into staging, 2024 Mar 07 edition #1351

Merged
merged 100 commits into from
Mar 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
a8c5109
Create signal to automatically keep chants/sequences' incipits up-to-…
jacobdgm Feb 15, 2024
db4aafe
Add tests for incipit signals
jacobdgm Feb 15, 2024
94f1559
test_functions: add IncipitSignalTest
jacobdgm Feb 16, 2024
19d339c
UpdateCachedConcordancesCommandTest: Fix test_published_vs_unpublishe…
jacobdgm Feb 16, 2024
b3e0dbe
UpdateCachedConcordancesCommandTest: Fix test_concordances_values to …
jacobdgm Feb 16, 2024
dc205e5
test_models: Remove print statements
jacobdgm Feb 16, 2024
21129bb
SourceInventoryViewTest: fix test_incipit_column_for_chant_source
jacobdgm Feb 16, 2024
dd59bab
JsonCidTest: Fix test_values to account for incipit that is automatic…
jacobdgm Feb 16, 2024
6e79e80
make_fakes: Change make_fake_chant and _sequence to not allow setting…
jacobdgm Feb 16, 2024
f3011c4
AjaxSearchBarTest: Fix test_response to account for automatically cal…
jacobdgm Feb 16, 2024
020e486
AjaxSearchBarTest: Fix test_incipit_search to not set incipit on test…
jacobdgm Feb 16, 2024
086ef99
AjaxSearchBarTest: Fix test_cantus_id_search to not set test chants' …
jacobdgm Feb 16, 2024
34bea0a
Update update_sequence_incipit_field to use MS spelling fulltext when…
jacobdgm Feb 16, 2024
bf84bce
make_fake_sequence: Ensure fake sequences have a manuscript_full_text…
jacobdgm Feb 16, 2024
02b6c08
SourceInventoryViewTest: Update test_incipit_column_for_sequence_sour…
jacobdgm Feb 16, 2024
7698e44
SourceEditChantsViewTest: Fix test_chant_with_volpiano_with_no_fullte…
jacobdgm Feb 16, 2024
01ddb30
SequenceEditViewTest: Fix test_update_sequence to account for automat…
jacobdgm Feb 16, 2024
e5ba46b
ContentOverviewTest: Fix test_source_selected_model to account for au…
jacobdgm Feb 16, 2024
83a61c8
ChantSearchViewTest: Fix test_order_by_volpiano to account for automa…
jacobdgm Feb 16, 2024
672c6c4
ChantSearchViewTest: Fix test_order_by_siglum to account for automati…
jacobdgm Feb 16, 2024
89cd5a1
ChantSearchViewTest: Fix test_order_by_office to account for automati…
jacobdgm Feb 16, 2024
3f9fd26
ChantSearchViewTest: Fix test_order_by_ms_fulltext to account for aut…
jacobdgm Feb 16, 2024
ea0e68a
ChantSearchViewTest: Fix test_order_by_mode to account for automatica…
jacobdgm Feb 16, 2024
c1ccbd0
ChantSearchViewTest: Fix test_order_by_incipit to account for automat…
jacobdgm Feb 16, 2024
db2babf
ChantSearchViewTest: Fix test_order_by_image_link to account for auto…
jacobdgm Feb 16, 2024
5024fec
ChantSearchViewTest: Fix test_order_by_genre to account for automatic…
jacobdgm Feb 16, 2024
b2c8fa3
ChantSearchViewTest: Fix test_order_by_cantus_id to account for autom…
jacobdgm Feb 16, 2024
7f2656a
ChantSearchViewTest: Update test_column_header_links to account for a…
jacobdgm Feb 20, 2024
3eb0b4d
Admin area: make incipit field read-only for Chants, Sequences
jacobdgm Feb 20, 2024
833d368
incipit update hook for Sequences: use title when no fulltext available
jacobdgm Feb 20, 2024
f9a239a
ChantSearchMSViewTest: update test_order_by_volpiano to account for a…
jacobdgm Feb 20, 2024
556e01e
ChantSearchMSViewTest: Update test_order_by_office to account for aut…
jacobdgm Feb 20, 2024
98c54fe
ChantSearchMSViewTest: Update test_order_by_ms_fulltext to account fo…
jacobdgm Feb 20, 2024
052adae
ChantSearchMSViewTest: Update test_order_by_mode to account for autom…
jacobdgm Feb 20, 2024
e99dab1
ChantSearchMSViewTest: Update test_order_by_incipit to account for au…
jacobdgm Feb 20, 2024
ae22695
ChantSearchMSViewTest: Update test_order_by_image_link to account for…
jacobdgm Feb 20, 2024
721bb35
ChantSearchMSViewTest: Update test_order_by_genre to account for auto…
jacobdgm Feb 20, 2024
06b12af
ChantSearchMSViewTest: Update test_order_by_cantus_id to account for …
jacobdgm Feb 20, 2024
c625794
ChantSearchMSViewTest: update test_keyword_search_searching_all_field…
jacobdgm Feb 20, 2024
00d96e7
ChantSearchMSViewTest: Update test_column_header_links to account for…
jacobdgm Feb 20, 2024
9753e03
ChantDetailViewTest: Update test_chant_with_volpiano_with_no_fulltext…
jacobdgm Feb 20, 2024
bda8fb3
Admin area: add date_created and date_updated to readonly_fields for …
jacobdgm Feb 21, 2024
87cd7f9
signals.py: add return annotations for functions
jacobdgm Feb 21, 2024
5d0c713
signals.py: Un-nest several nested function declarations
jacobdgm Feb 21, 2024
997e2f6
signals.py: Change behavior of update_sequence_incipit_field
jacobdgm Feb 21, 2024
e945eb7
SequenceModelTest: Update test_incipit_signal
jacobdgm Feb 21, 2024
e603dc7
signals.py: Update comment in update_sequence_incipit_feild
jacobdgm Feb 21, 2024
2d80d3e
signals.py: Fully update comment in update_sequence_incipit_feild
jacobdgm Feb 21, 2024
a0af4f0
make_fake_sequence: Remove code that sets fake sequences' manuscript_…
jacobdgm Feb 22, 2024
edefa0f
chant detail: display useful placeholder when user's full_name is not…
jacobdgm Feb 22, 2024
d95e6be
indexer list page: display useful placeholder for when user's full_na…
jacobdgm Feb 22, 2024
88cae02
chant detail: add missing endif tag
jacobdgm Feb 22, 2024
0d85b84
source detail: Display useful placeholder for when a user's full_name…
jacobdgm Feb 22, 2024
941ae87
user detail: Add useful placeholder for when a user's full_name is no…
jacobdgm Feb 22, 2024
442551d
user list: Add useful placeholder for when user's full_name is not set
jacobdgm Feb 22, 2024
c6ce4d5
generate_volpiano_notes: Correct return annotation and add additional…
jacobdgm Feb 27, 2024
c7b08a5
generate_volpiano_intervals: Correct return annotation and add additi…
jacobdgm Feb 27, 2024
ccd98c1
Clean up use of get_user_model in make_fakes.py
jacobdgm Feb 29, 2024
e24d9f9
Update make_fakes.py to call refresh_from_db before returning chants/…
jacobdgm Feb 29, 2024
b7a61d2
Remove unnecessary .refresh_from_db calls in test_views.py
jacobdgm Feb 29, 2024
b490a6e
Fix bug in signals.py, in generate_volpiano_intervals
jacobdgm Feb 29, 2024
b3d4f9d
Clean up ChantSearchMSViewTest.test_column_header_links
jacobdgm Feb 29, 2024
d1feed0
ChantSearchMSViewTest: Clean up test_keyword_search_searching_all_fie…
jacobdgm Feb 29, 2024
bf00a85
Merge branch 'develop' into incipit
jacobdgm Feb 29, 2024
c02c70f
Update volpiano-display-utilities to v1.1.2
dchiller Feb 22, 2024
0a89993
Update update_cached_concordances command to comply with new spec
jacobdgm Feb 27, 2024
ace2613
Remove unused imports in update_cached_concordances.py
jacobdgm Feb 27, 2024
8c26911
Remove commented-out code
jacobdgm Feb 27, 2024
77f5341
update_cached_concordances.get_concordances: Update docstring
jacobdgm Feb 27, 2024
6c9c38c
test_functions.UpdateCachedConcordancesCommandTest: Clean up test_pub…
jacobdgm Feb 27, 2024
467dc31
update_cached_concordances command: move DOMAIN constant out of function
jacobdgm Feb 27, 2024
333fab6
Source Detail: add 'with creator=source.created_by' to Contributor se…
jacobdgm Feb 29, 2024
f988462
Chant Detail: Add 'with creator=source.created_by' to Contributor sec…
jacobdgm Feb 29, 2024
44aeba3
add default_server to cantusdb.conf.development
jacobdgm Mar 1, 2024
1260970
remove commented-out lines from cantusdb.conf.*
jacobdgm Mar 1, 2024
53b02eb
Merge pull request #1318 from jacobdgm/incipit
jacobdgm Mar 5, 2024
7a9b409
clean up empty lines in cantusdb.conf.production
jacobdgm Mar 5, 2024
001b364
clean up empty lines in cantusdb.conf.staging
jacobdgm Mar 5, 2024
a75e2dd
cantusdb.conf.production: Add default server block
jacobdgm Mar 5, 2024
ba4b8ec
cantusdb.conf.staging: Add default server block
jacobdgm Mar 5, 2024
70b6b90
Remove unnecessary 'default_server' in cantusdb.conf.development
jacobdgm Mar 5, 2024
18997f7
Merge pull request #1340 from jacobdgm/1326-default-server
jacobdgm Mar 5, 2024
01a8d49
Merge branch 'develop' into 1310-user-placeholder
jacobdgm Mar 5, 2024
fc59af7
Merge pull request #1327 from jacobdgm/1310-user-placeholder
jacobdgm Mar 5, 2024
e66e555
403.html: Clean up formatting
jacobdgm Mar 5, 2024
f98478b
404.html: Clean up formatting
jacobdgm Mar 5, 2024
3d19a31
sequence_list.html: Add table-responsive div around table
jacobdgm Mar 7, 2024
509833e
chant_delete.html: Improve formatting
jacobdgm Mar 7, 2024
d08747f
source_delete.html: Improve formatting
jacobdgm Mar 7, 2024
214e7fb
reset_password.html: Improve formatting
jacobdgm Mar 7, 2024
79321ed
reset_password_confirm.html: Improve formatting
jacobdgm Mar 7, 2024
5dc5c7d
reset_password_sent.html: Improve formatting
jacobdgm Mar 7, 2024
97bcc81
reset_password_complete.html: Improve layout
jacobdgm Mar 7, 2024
6d8516d
change_password.html: Improve formatting
jacobdgm Mar 7, 2024
8202e74
login.html: Improve formatting
jacobdgm Mar 7, 2024
7110e21
400.html: Improve Formatting
jacobdgm Mar 7, 2024
98bf966
400.html: Add simple error message
jacobdgm Mar 7, 2024
9bcc130
404.html: Improve error message
jacobdgm Mar 7, 2024
cf10bd0
content-overview.html: Add table-responsive to table
jacobdgm Mar 7, 2024
043f483
Merge pull request #1350 from jacobdgm/layout-registration-4xx
jacobdgm Mar 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 0 additions & 32 deletions config/nginx/conf.d/cantusdb.conf.development
Original file line number Diff line number Diff line change
@@ -1,41 +1,9 @@
# This file is configured for deployment of the CantusDB project in local development.
# When building the project locally, replace the contents of cantusdb.conf with the
# contents of this file.

# server {
# listen 80;
#
# server_tokens off;
#
# location ^~ /.well-known/acme-challenge/ {
# root /var/www/lego;
# }
#
# location / {
# return 301 https://$host$request_uri;
# }
# }

# server {
# # Redirect all https traffic for mass.cantusdatabase.org to cantusdatabase.org
# listen 443 ssl;
#
# server_name mass.cantusdatabase.org;
#
# ssl_certificate /etc/nginx/ssl/live/certificates/cantusdatabase.org.crt;
# ssl_certificate_key /etc/nginx/ssl/live/certificates/cantusdatabase.org.key;
#
# location / {
# return 301 https://cantusdatabase.org$request_uri;
# }
# }

server {
# listen 443 default_server http2 ssl;
listen 80;

# ssl_certificate /etc/nginx/ssl/live/certificates/cantusdatabase.org.crt;
# ssl_certificate_key /etc/nginx/ssl/live/certificates/cantusdatabase.org.key;

location / {
proxy_pass http://django:8000;
Expand Down
21 changes: 18 additions & 3 deletions config/nginx/conf.d/cantusdb.conf.production
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ server {
}

server {
listen 443 default_server http2 ssl;
listen 443 http2 ssl;

server_name cantusdatabase.org;

ssl_certificate /etc/nginx/ssl/live/certificates/cantusdatabase.org.crt;
ssl_certificate_key /etc/nginx/ssl/live/certificates/cantusdatabase.org.key;

Expand All @@ -56,7 +56,7 @@ server {
alias /resources/api_cache/concordances.json;
expires modified +24h;
}

location = /style.css {
root /;
}
Expand All @@ -79,3 +79,18 @@ server {
root /;
}
}

# Default server to block requests to IP address and non-valid hostnames
server {
access_log off;
server_name _;

listen 80 default_server;
listen 443 default_server;
ssl_reject_handshake on;

# Close connection immediately for requests that don't match a defined
# server name
return 444;
}

25 changes: 17 additions & 8 deletions config/nginx/conf.d/cantusdb.conf.staging
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,8 @@ server {
# The Staging server's subdomain "staging-alias" is analogous to Production's "mass" subdomain.)
listen 443 ssl;

# server_name mass.cantusdatabase.org;
server_name staging-alias.cantusdatabase.org;

# ssl_certificate /etc/nginx/ssl/live/certificates/cantusdatabase.org.crt;
# ssl_certificate_key /etc/nginx/ssl/live/certificates/cantusdatabase.org.key;
ssl_certificate /etc/nginx/ssl/live/certificates/staging.cantusdatabase.org.crt;
ssl_certificate_key /etc/nginx/ssl/live/certificates/staging.cantusdatabase.org.key;

Expand All @@ -35,12 +32,10 @@ server {
}

server {
listen 443 default_server http2 ssl;
listen 443 http2 ssl;

server_name staging.cantusdatabase.org;

# ssl_certificate /etc/nginx/ssl/live/certificates/cantusdatabase.org.crt;
# ssl_certificate_key /etc/nginx/ssl/live/certificates/cantusdatabase.org.key;

ssl_certificate /etc/nginx/ssl/live/certificates/staging.cantusdatabase.org.crt;
ssl_certificate_key /etc/nginx/ssl/live/certificates/staging.cantusdatabase.org.key;

Expand All @@ -62,7 +57,7 @@ server {
alias /resources/api_cache/concordances.json;
expires modified +24h;
}

location = /style.css {
root /;
}
Expand All @@ -85,3 +80,17 @@ server {
root /;
}
}

# Default server to block requests to IP address and non-valid hostnames
server {
access_log off;
server_name _;

listen 80 default_server;
listen 443 default_server;
ssl_reject_handshake on;

# Close connection immediately for requests that don't match a defined
# server name
return 444;
}
8 changes: 4 additions & 4 deletions django/cantusdb_project/main_app/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
READ_ONLY = (
"created_by",
"last_updated_by",
"date_created",
"date_updated",
)


Expand Down Expand Up @@ -61,10 +63,7 @@ def get_source_siglum(self, obj):
"id",
)

readonly_fields = READ_ONLY + (
"date_created",
"date_updated",
)
readonly_fields = READ_ONLY + ("incipit",)

list_filter = (
"genre",
Expand Down Expand Up @@ -170,6 +169,7 @@ def get_source_siglum(self, obj):
"source",
"feast",
)
readonly_fields = READ_ONLY + ("incipit",)
ordering = ("source__siglum",)
form = AdminSequenceForm

Expand Down
Loading
Loading