-
Notifications
You must be signed in to change notification settings - Fork 6
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
Indexer model and User model #218
Comments
I don't see a proofreader field in the chants themselves--only the box about the source (which points to indexers). In OldCantus I can (now that I am a Debra) see "Authoring information", which does point to the users--but nothing about the proofreaders. (Maybe this shows up on NewCantus, if I were to log in...). That said... The people who get pointed to as "indexers" all seem to have been added from the dropdowns in edit-source; the "user" stuff (when it's visible) seems to be for things generated (by Django?), like who created the source. So one is public-facing ("indexers") and one isn't ("users"). Conceivably one could just replace/redirect the indexer information to user information, but I can see reasons to leave them separate; e.g. if somebody indexed the whole manuscript, we would want them under "indexer", but maybe we don't want a "user" who added a tiny thing later to also be listed. |
It makes perfect sense that "indexer" is public-facing and "user" is what we use to keep internal records. However, in the old Cantus, they are two sets of people that do not completely overlap. @annamorphism Do you know how a "user" may become an "indexer" in the old Cantus? For example, I have an account in the old Cantus, so I'm a "user". I have the power to create manuscripts and chants, but I am not in the "indexer" list. |
There's a "Add Indexer" button in accessible to Debras...let me see what it does... |
@jwang44 Indexer Junhao is now inventorying this test source! User Anna created it, but isn't listed as inventorying it. |
It looks like there is no association between indexer and user profiles in old cantus--I can guess that both Junhaos are the same, but there's no way of indicating that. It would probably be a good idea to make the indexer profiles linked to the user profiles... |
Actually I wonder if "indexer" needs to be a separate category at all--what if instead one could choose which of the users already associated with a manuscript were to be publicly visible? |
Have we reached any conclusions with regard to this? |
@jacobdgm probably best to consult with the Debra on how best to keep/merge/modify the user/indexer models. |
Okay - in drafting an email to Debra, I think I've figured out why some fields point to Indexers and some to Users:
A few observations to sum up:
Does this all make sense? |
Yes, this makes sense. Thanks to you both! |
This all makes sense, and more or less corresponds to what I'd worked out myself. It still seems weird and inelegant to me that many people working on Cantus have two associated models and profiles that pop up for different but related things. (I think Cantus Index, for example, makes do with just a user model.) But it sounds like it might be sort of baked in at this point? |
New idea Ich came up with the idea of building a "master list" named "indexers" (or "musicologists", name pending) that is a For displaying a list of contributors to Cantus DB (like the indexer list that we have now), we display the master list. For each individual source, the displayed proofreader, contributor, etc. will all point to the entry in the master list. For internal book keeping, when a logged-in user make changes to the database, we find the master list entry linked to their account, and record that for fields like "created by" or "last_updated_by". This way we use the master list for both public facing things and internal book keeping. Any suggestions and thoughts? |
This is not so very different in practice from what I was imagining, although the implementation is different (so it gets rid of the problem with indexers who aren't users.) But won't a simple union still mean there will be duplicate accounts to get rid of in the master list? |
Yes, that is right. We will need to merge the two entries for people who appear in both lists. Another solution, now that I have put more thoughts into it. seems easier. That is, to make dummy accounts for those who are in "indexers" list but not in "users" list. This way we won't need two lists, we just put everyone into the "users" list. All of them will have their respective login, but some of them (i.e., those with dummy accounts) will never actually use it to log in. |
@jwang44 I was also thinking this! This will mean there will be a lot of "extra" inactive accounts, but as long as that isn't a problem this seems like a pretty clean solution. (For comparison, it seems like CantusIndex assigned all pre-migration user contributions to the user "CantusDatabase", which is sort of like what you are proposing except with only one dummy account.) |
This is done in PR #388. We keep only the To associate a |
The chant objects and source objects have fields like
proofread_by
,melodies_entered_by
, andindexed_by
. These fields are not consistently pointing to the same model.For example, the
proofread_by
field of the chant model points to Users, while theproofreaders
field of the source model points to Indexers.We need to figure out how to unify the two in a way that make sense.
The text was updated successfully, but these errors were encountered: