Closed vladimir-mencl-eresearch closed 2 months ago
I have tested this carefully and it solves the issues with CAT eDB updates.
@zmousm , @ghalse , any comments on this? OK to merge?
I've had a quick look through it, and it seems to make sense. But I'm not going to get a chance to properly test it for some time :(
Thanks @ghalse !
Has been now running in PROD at member.eduroam.net.nz for a week - with eDB ingesting the feed and timestamps being updated.
Fix pending issues identified in #92 ( this comment ) to avoid eDB ignoring updates to Institution or Realm data because
ts
has not changed:(1) For an Institution, where
InstServer
andServiceLoc
objects track their own timestamps, return institutionts
as maximum overts
of institution itself and its subordinate objects.(2) In data manipulation of subordinate objects included in the export, update
Institution
ts
whenever a subordinate object is added, updated or deleted.max
calculation.post_save
andpost_delete
signals.Contact
objects (linked via aManyToManyField
), use apre_delete
signal instead to still see the links.Institution.institutiondetails
navigation withInstitutionDetails.DoesNotExist
(in case the details object does not exist).parse_institution_xml
same as other update-related signals are suppressed (to avoid too high churn updating institution timestamp).