TACC / tup-ui

React client for TACC User Portal
2 stars 0 forks source link

Add plugin for rapid generation of staff pages - manually squash migrations #304

Closed wesleyboar closed 1 year ago

wesleyboar commented 1 year ago

Overview & Changes

  1. Reduce post_nomials to 50 characters.
  2. Manually squash all migrations into one.

Related

Testing

  1. Have CMS running on this branch.
  2. Migrate everything for this plugin.
    1. git checkout 2b3f0a1 (first new commit for this branch, new migration)
    2. docker exec -it tup_cms /bin/bash
      python manage.py migrate staff_profile
  3. Update database to use new squashed migration.
    1. git checkout task/TUP-125--staff-page-plugin--squash-migrations
    2. rm -rf apps/tup-cms/src/apps/staff_profile/migrations/__ pycache__ Removes old migration cache to avoid error.
    3. docker exec -it tup_cms /bin/bash
      python manage.py migrate --fake staff_profile 0001_squashed_for_release
  4. Restart CMS server.
  5. Open http://localhost:8000/.
  6. Review any existing Staff Profile plugin instances you have.
  7. Confirm the data is all still present. Depending on your CMS history, the images may be gone. I do not know if this is related to migrations. If you edit the image (or go in Filer to the folder where it should be), all your image files may be present but data to render them as images is unavailable.[^1]

UI

All my various staff profile plugin instances retained their data. (But images are broken.)[^1]

a b c d
Screenshot 2023-08-24 at 3 41 24 PM Screenshot 2023-08-24 at 3 41 30 PM Screenshot 2023-08-24 at 3 41 40 PM Screenshot 2023-08-24 at 3 41 47 PM

[^1]: Maybe the broken images are form me taking down my containers and starting new ones for other CMS projects.

wesleyboar commented 1 year ago

Deployed in dev successfully. Plugin is working.