LCOGT / snex2

Repo for the updated Supernova Exchange, built with the TOM Toolkit and used by the Global Supernova Project collaboration
https://test.supernova.exchange
GNU General Public License v3.0
0 stars 5 forks source link

Automatically sync users between SNEx1 and SNEx2 #31

Open crpellegrino opened 2 weeks ago

crpellegrino commented 2 weeks ago

This PR introduces changes to sync new users and modifications to existing users between SNEx1 and SNEx2. The commits so far lay out the groundwork for automatically syncing user information added in SNEx1 to SNEx2, as well as modifications to the base TOM Toolkit to migrate user modifications made in SNEx2 to SNEx1. Still left to do is setting up mysql triggers in the SNEx1 database to populate the db_changes table with new, modified, or deleted user rows. Also left on the SNEx2 side is to set up user registration in SNEx2 and integrate those additions with this machinery to sync newly registered users with SNEx1, although this may be left to another PR in the future.