systopia / de.systopia.committees

Extension to synchronise committee structures, such as parliaments, sessions, boards, etc
Other
2 stars 2 forks source link

Feature Request - Import committee info from US Github Congressional dataset ... #10

Open privaterra opened 1 year ago

privaterra commented 1 year ago

Good day!

The recent mid-term election in the US elected the 118th congress. As a result, new committee assignments will shortly be announced.

The assignments will be public, and updated by volunteers that maintain the US Congress Congressional GitHub repository.

As someone who maintains a Congressional Contacts (members & staff) using CRM, I'm in need to update my data. In the past I've done so manually, but would prefer to instead use this civicrm extension?

What would it take to create the code required so that data from the committees-current (YAML or JSON) data set in the US Congressional Members GitHub Data repository be imported by this module?

regards, Robert

bjendres commented 1 year ago

Hi @privaterra. Thanks for you interest. The import usually consists of two parts:

  1. An "importer" to import your yaml file format into the extension's internal data structure
  2. A "syncer" to apply the data model to the CiviCRM that the extension is installed on.

It looks the importer would have be developed from scratch - we currently only have spreadsheet and CSV importers, but no yaml. The syncer depends on how exactly you want the data to be mapped/represented in CiviCRM. But you could try Oxfam's implementation and either extend id, or copy and amend it to your needs.

We could probably get in contact and give you an estimate for the work, but seeing that the winter holidays are ahead, it probably wouldn't happen anytime soon.

On the other hand, this is a open source project, and if you can find somebody to do the work, I can probably give some pointers to get him/her started.