ESDet / esdportal_profile

drupal install profile for portal.excellentschoolsdetroit.org
0 stars 4 forks source link

Create teacher entity & import initial records #29

Closed bnchdrff closed 9 years ago

bnchdrff commented 9 years ago
bnchdrff commented 9 years ago

sample teacher data is in goodrive

anderoy commented 9 years ago

@bnchdrff For the purposes of the auto complete function (which will work off of the Title field) we should input the full name into the title field but still add the firstname and lastname fields which will make for better sorting, filtering, and data export. I have resent the csv.

bnchdrff commented 9 years ago

See https://www.drupal.org/node/2500341 and https://www.drupal.org/node/2563245 :cry:

anderoy commented 9 years ago

What (in layman's terms) is the benefit of having the entity types exportable as features and why is it a show stopper in your mind?

What is lost by not being able to control these things in code?

bnchdrff commented 9 years ago

It guarantees that things work if someone messes them up -- there will be custom code relying on these entities acting a certain way, and we need to ensure that they are in a certain state in order for that code to function reliably.

anderoy commented 9 years ago

So how are the entities stored, how do they work currently with eck?

bnchdrff commented 9 years ago

They're stored in the database according to the entity definition... I'll be working through this more this evening & will figure out a solution!

bnchdrff commented 9 years ago

reference material:

bnchdrff commented 9 years ago

Created entities & bundles as described in https://docs.google.com/document/d/1L3WWBA_Y7HMr4k_GL7PZTrpHj3mWyUO9YsrKBa_whz4/edit#

(this is a new doc, where we're documenting the state of the ESD E3 data management system as it is implemented in code, as opposed to https://docs.google.com/document/d/1_tApwQ24lR0xwd0kbgFjqIKfT9eePxWycD2mE27gOnA/edit# where we have ideas & imaginary things.)

Exported all of @anderoy's field bases from the dev site, so some work is saved in creating all of those fields -- still need to add the field groups & field instances.

Tested to ensure that the user (coach) and related EC can be referenced in views for the contact type -- successful. Everything's ready to be used for site-building!

Big question that isn't quite resolved -- we have a start & end date field in the e3_note entity, but I didn't set up a widget for it yet... what sort of granularity do these input widgets need?

I created a snapshot of the 28-e3entities environment & set up a new testbed for this branch, 29-e3teachers.

Eric, play around at https://29-e3teachers-3mhev6qb5ihtc.us.platform.sh/ -- you can add fields and groups; just be sure to document your additions in https://docs.google.com/document/d/1L3WWBA_Y7HMr4k_GL7PZTrpHj3mWyUO9YsrKBa_whz4/edit# and also leave notes here.