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 staging into production - 2024-Jan-12 edition #1257

Merged
merged 162 commits into from Feb 13, 2024
Merged

Conversation

jacobdgm
Copy link
Contributor

@jacobdgm jacobdgm commented Jan 12, 2024

Merge staging into production - 2024-Jan-12 edition:

  • APIs
    • provenance json export API has been created
    • notation json export API has been created
    • concordances json export API has been created (concordances for all cantus IDs are saved in a single JSON object, which is updated daily by cron)
  • Chant Create page
    • autocomplete widgets are now the same width as nearby fields
  • Chant Edit page
  • Chant by Cantus ID page
    • This view has been refactored/optimized to minimize database calls
  • Chant Detail page
    • links to Chant List page have been reworked
  • Chant Inventory page
    • URIs for this page are now constructed in the format /source/<source ID>/inventory/ instead of /index/?source=<source ID>
  • Chant List page
    • URIs for this page are now constructed in the format /source/<source ID>/chants/ instead of /chants/?source=<source ID>
    • links to the Chant List page have been reworked
    • links to the Full Inventory page have been reworked
  • Feast Detail page
    • links to the Chant List page have been reworked
  • (Full Index page - we now call this the Full Inventory page)
  • Full Inventory page
    • This view has been refactored/optimized to minimize database calls
  • Source Create page
    • autocomplete widgets are now the same width as nearby fields (this appears to not be strictly true, but they look a lot better than they were -JdGM)
  • Source Detail page
    • In sidebar, replace "image gallery" with "images"
    • Under "Full Source/Fragment", "Fragment" has been updated to read "Fragment or Fragmented"
    • links to the Chant List page have been reworked
    • links to the Full Inventory page have been reworked
  • Source Edit page
    • links to the Chant List page have been reworked
    • autocomplete widgets are now the same width as nearby fields
    • links to the Full Inventory page have been reworked
  • Source List page:
    • Title column has been moved to the left of the Siglum column
    • An unnecessary </a> in the template was removed
  • Network configuration
    • traffic to mass.cantusdatabase.org is now redirected to cantusdatabase.org
  • Under the hood:
    • https certificate renewal is now done using Lego rather than Certbot, and is now run monthly rather than weekly
    • our backup cron/shell jobs have been fixed and refactored
    • Our Postgres configuration, which was being overwritten during the building of our docker containers, is now properly set up
    • ujson added to requirements.txt, and ijson removed
    • several unnecessary shell scripts related to fixtures have been removed
    • AjaxSearchBarTest has been refactored so as to not fail at random anymore
    • duplicate test in SourceEditChantsViewTest has been removed
    • our deployment process has been streamlined, with separate development vs. staging vs. production versions of various configuration files
    • settings.py now reads the site's ALLOWED_HOSTS and CSRF_TRUSTED_ORIGINS from environment variables, and our env file has been updated to specify these hosts/origins explicitly

jacobdgm and others added 30 commits December 18, 2023 20:19
- Uses docker rather than docker-compose (needed for cp command)
- Fixes copy -> cp command
Source Detail/Edit, Chant List: in sidebar, replace 'image gallery' with 'images'
…urce-detail

Change "Fragment" to "Fragment or Fragmented" on source detail page
Add css styling for autocomplete widgets
Move source title to the left of source siglum
jacobdgm and others added 14 commits February 6, 2024 11:58
Merge jacobdgm's develop into CantusDB's develop
Merge develop into staging, 2024 Feb 06 edition
Make separate production and staging versions of cron.txt
Bumps [django](https://github.com/django/django) from 4.2.3 to 4.2.10.
- [Commits](django/django@4.2.3...4.2.10)

---
updated-dependencies:
- dependency-name: django
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
…oject/django-4.2.10

Bump django from 4.2.3 to 4.2.10 in /django/cantusdb_project
Add postgres command with path to config file to docker-compose staging
Merge develop into staging, 2024 Feb 08 edition
@jacobdgm jacobdgm marked this pull request as ready for review February 8, 2024 18:13
@jacobdgm
Copy link
Contributor Author

jacobdgm commented Feb 8, 2024

I just opened #1308, which should fix the issue discovered at #1288 (comment). We should fix this before deploying these changes to Production.

jacobdgm and others added 5 commits February 8, 2024 20:16
Ensure CSRF_TRUSTED_ORIGINS and ALLOWED_HOSTS are specified
Change URI construction for Chant List and Chant Inventory
Merge develop into staging, 2024 Feb 09 edition
@jacobdgm
Copy link
Contributor Author

jacobdgm commented Feb 9, 2024

update_cached_concordances failed to run again this morning. Perhaps I missed a step when pulling changes yesterday? But the running crontab should not change based on docker containers coming down and going up.... This is a thing to check in on again early next week.

@dchiller
Copy link
Contributor

dchiller commented Feb 9, 2024

update_cached_concordances failed to run again this morning.

The file that just downloaded when I went to staging.cantusdatabase.org/concordances has this at the end:

"metadata":{"last_updated":"2024-02-09T04:10:12.812415"}

Isn't that what we would expect if it had run successfully this morning?

@jacobdgm
Copy link
Contributor Author

update_cached_concordances failed to run again this morning.

The file that just downloaded when I went to staging.cantusdatabase.org/concordances has this at the end:

"metadata":{"last_updated":"2024-02-09T04:10:12.812415"}

Isn't that what we would expect if it had run successfully this morning?

Checking again this morning, it seems to be doing fine. I had files named concordances, concordances-1, concordances-2, etc. in my Downloads folder - current hypothesis is that I inspected concordances, i.e. an older version of the download, when I was writing this comment on Friday.

@jacobdgm
Copy link
Contributor Author

Everything looks good to go! Going to deploy these changes to the Production VM.

@jacobdgm jacobdgm merged commit 07be678 into production Feb 13, 2024
@jacobdgm
Copy link
Contributor Author

These changes have been deployed, and are running on the Production server! All tests are passing! Good job everyone!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants