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, 2023-Aug-08 edition #955

Merged
merged 123 commits into from Aug 14, 2023
Merged

Conversation

jacobdgm
Copy link
Contributor

@jacobdgm jacobdgm commented Aug 8, 2023

The staging server has been updated, tests have been run (all are passing), and the password reset link has been tested.

Pages with changes:

  • All pages
    • When serving pages on Staging or when developing locally, there's now a small message displayed in the footer saying "STAGING" or "DEVELOPMENT"
    • When serving pages on Production, we add a small script which allows Google Analytics to track traffic on the site
    • When serving pages on Staging, we add an instruction telling search engine crawlers not to index the page.
    • Pagination links: instead of displaying links to the "previous" and "next" pages, we now display numbers for a bunch of nearby pages
  • Admin Area
    • Source List: in the search box at the top of the page, you can now search by source ID.
    • Source Change
      • For fields relating to indexers, they are now properly labelled (they used to all say "Chosen Centuries" and "Available Centuries" rather than "available melodies-entered-by" etc.)
      • Names of available indexers are now sorted alphabetically
    • User Change: We now display a message telling site administrators that users' first_name and last_name are never used on the main site, and that they should use the full_name field instead.
  • Chant Create
    • We've added a "Copy full text below" button between the two full text fields, modelled on the button on the Chant Edit page.
  • Chant Delete
    • path has changed from /chant-delete/<id>/ to /chant/<id>/delete/
    • Formatting has been much improved, and we no longer display the date-created and date-last-updated
  • Chant Edit
    • Formatting has been changed, improving the spacing of the save/delete buttons
  • Chant Search
    • When a user arrives on the Chant Search page via a global search bar search, the keyword field or Cantus ID field is automatically populated
    • When searching for a Cantus ID via the search bar, we now return chants whose Cantus ID contains the search term, rather than only returning exact matches (this is now the same behavior as using the main Cantus ID field)
  • Content Overview
    • For chants and sequences, we now display the object's incipit rather than its fulltext
    • On the Chant and Source Create pages, when a user creates an object, we update the Most-Recently-Updated-By in addition to the Created-By for the object (new objects created since this update will no longer have "Last Updated By: None")
  • Feast List
    • Ordering is now case-insensitive
  • Genre List page
    • /genre path (à la OldCantus) now redirects to /genres
  • Office List page
    • Fixed typo in page title (i.e. the text displayed in the browser tab)
    • /office path (à la OldCantus) now redirects to /offices
  • Sequence Detail, Edit
    • refactored permissions check for who can access the Sequence Edit page - permissions should be the same, but the code is now clearer
  • Source Create
    • Added missing fields that list users/indexers. All such fields are now filterable lists / autocomplete fields.
  • Source Delete
    • This page has been added! It looks similar to the Chant Delete page, but also lists any chants/sequences that will be deleted as a result of deleting the given source. It should be accessible to anyone who has access to the Edit page for a given source.
  • Source Edit
    • Added a button to delete the source, next to the existing save button.
    • Fixed bug where non-logged in users would be shown an error message if they tried to visit the Source Edit page directly - now they're redirected to a login page, as they should be.
    • Added missing fields that list users/indexers. All such fields are now filterable lists / autocomplete fields.
    • Refactored permissions check - permissions should be the same, but the code is now clearer
    • RISM siglum field is now a dropdown selector, rather than an unusable enter-the-ID-of-a-RISM-Siglum field
  • Source List
    • When a user enters a search term, we now look at unaccented versions of our various fields (i.e. now "krakow" and "kraków" both return the same set of sources)
  • Articles-List API
    • Implemented new API listing the URLs of all articles on the site, accessible at /articles-list/
  • Flatpages-List API
    • Implemented new API listing the URLs of all flat pages on the site, accessible at /flatpages-list/
  • In the background
    • we've set up cron jobs to:
      • regularly back up the database
      • populate chants' next_chant and is_last_chant_in_feast fields
      • run the certbot script to update our certificates

jacobdgm and others added 30 commits July 26, 2023 13:24
content-overview: use chant incipit in table
update widgets for indexer fields in source admin area
Add contributor information to source and chant detail sidebars
header: change link from /field-descriptions/ to /description/
jacobdgm and others added 29 commits August 10, 2023 10:15
Create redirects for old document paths
Merge develop into staging, 2023-Aug-10 edition (version two)
(it was introduced by a sloppy merge conflict resolution)
add missing closing parenthesis in urls.py
Merge develop into staging, 2023-Aug-10 edition (version three!)
Add user to last_updated_by when creating a source/chant
Create redirects from `office/` -> `offices/` and from `genre/` to `genres/`
Ensure Source Search page unaccents source fields it's matching against
Add autocomplete fields for source create/edit pages
Source Edit: update Rism Siglum field to use ModelChoiceField
Merge Develop into Staging, 2023-Aug-11 edition
@jacobdgm jacobdgm merged commit 7d4d7f9 into production Aug 14, 2023
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

3 participants