isawnyu / pleiades-gazetteer

This repository provides a home for tickets and other planning documents for the Pleiades gazetteer of ancient places. Code is kept in multiple other repositories.
https://pleiades.stoa.org
11 stars 0 forks source link

eliminate ATVocabularyManager #371

Open paregorios opened 5 years ago

paregorios commented 5 years ago

Finish removing dependency on ATVocabularyManager and migrate any remaining vocabs to PleiadesSettings (to include surfacing the new vocab in HTML at /vocabularies/ and to include exporting same to JSON).

Remove ATVocabularyManager from the Pleiades buildout. Hunt down and exterminate related cruft.

paregorios commented 5 years ago

Blocker for #374 (upgrade site to Plone 5)

paregorios commented 5 years ago

I believe that these are the vocabularies that are still using ATVM:

alecpm commented 5 years ago

I've created PRs in pleiades.vocabularies and Products.PleiadesEntities, merged those branches to staging, deployed and run the migrations. All the vocabs on staging should now be registry based vocabularies, but otherwise be identical to the ATVM vocabularies. This will require relatively thorough testing because these vocabularies are used extensively, including in the exports.

Additionally, once this is approved I plan on making minor changes to a number of other repositories to remove their dependencies on ATVM. Those are all trivial test or package install time dependencies, so the changes should not have any impact on functionality. I have already tested those changes locally, but didn't want to make a dozen more PRs.

paregorios commented 5 years ago

Below is the testing regime I propose to follow:

Verify I can see and edit all expected vocabularies via the control panel

Verify I can edit all expected vocabularies via the control panel

Verify I can see HTML serializations of all the vocabularies at /vocabularies/

Verify that "hide" checkbox has expected effect

The expected effect is:

The following vocabularies include the ability to "hide" terms (based on the affordances in the settings control panel):

Verify I can use advanced search or a collection criterion to find content items that have had a newly-added term selected

Make a list of content types that depend on each vocabulary and verify I can view, edit, and transition workflows successfully on each

@alecpm can you think of any other steps I should be taking to test this rigorously?

alecpm commented 5 years ago

I believe that's all that should be involved, but you would definitely know better than I do. There are some scripts like Products/PleiadesEntity/skins/PleiadesEntity/getNameFacets.py used for Products/PleiadesEntity/skins/PleiadesEntity/browse_names.pt that make use of the vocabs as well, I'm not sure where those appear on the site though.

paregorios commented 5 years ago

It looks like #394 may be related and so I've marked it as blocking progress on this ticket.

alecpm commented 5 years ago

Definitely related. I believe a fix is on its way to the staging server right now. I also opened up a new PR on pleiades.policy.

alecpm commented 5 years ago

This should no longer be blocked and is ready for review.

alecpm commented 5 years ago

All branches have been merged and deployed to production, and the migration was run.

paregorios commented 5 years ago

Evaluation on production: I cannot see an entry for "archaeological remains" on /vocabularies. Based on the checklist above, I previously saw it on staging after the upgrade, so this looks perhaps like a missed step. I wanted to double-check staging, but it is timing out this morning.

alecpm commented 5 years ago

What's odd is the "archaeological remains" was added as a registry based vocabulary 3 years ago. I'm going to try running the old upgrade steps for that vocab to see if they put it in place, but I don't understand why it would have gone missing. I'll also take a look at staging.

alecpm commented 5 years ago

Looks like the vocabulary is there, but it's not included in the vocabulary view. You can see it by searching the registry (https://pleiades.stoa.org/portal_registry) for "arch_remains". I'll add the vocab id to the listing view.

alecpm commented 5 years ago

It wasn't listed on staging either, but now it's in both. Turns out the vocabs that weren't originally ATVM vocabs need to be hardcoded into the custom listing view to appear there.

paregorios commented 5 years ago

Looks good. Closing as resolved.

paregorios commented 2 years ago

We never did the last bit, but we should: "Remove ATVocabularyManager from the Pleiades buildout. Hunt down and exterminate related cruft."