AdminData#last_updated is not being used. It gets populated in an actor that is not part of the actor stack, and no record on AMS currently has a value for it. Same with AdminData#needs_update
The function of AdminData#last_updated is almost identical to AdminData#updated_at
Possible Solution
Remove the needs_update and last_updated fields from admin_data table.
Create AdminData#needs_update? method that returns true if AdminData#last_pushed date comes before the system_updated_dtsi of the Assets's Solr record, or any of the Asset's childrens' solr records.
Done when
admin_data.last_updated and admin_data.needs_update fields are removed from DB schema.
All code made obsolete by the removal of those two fields is also removed.
AdminData#needs_update? method is added and accurately returns true if the Asset, or any of it's children, has been updated since the the date stored in AdminData#last_pushed
Because
AdminData#last_updated
is not being used. It gets populated in an actor that is not part of the actor stack, and no record on AMS currently has a value for it. Same withAdminData#needs_update
AdminData#last_updated
is almost identical toAdminData#updated_at
Possible Solution
needs_update
andlast_updated
fields fromadmin_data
table.AdminData#needs_update?
method that returns true ifAdminData#last_pushed
date comes before thesystem_updated_dtsi
of the Assets's Solr record, or any of the Asset's childrens' solr records.Done when
admin_data.last_updated
andadmin_data.needs_update
fields are removed from DB schema.AdminData#needs_update?
method is added and accurately returns true if the Asset, or any of it's children, has been updated since the the date stored inAdminData#last_pushed