Closed andrewatfornax closed 11 years ago
Slowly making progress on this issue; there have been quite a few issues to resolve with the sync server code to get things operational on a new server. New server is not deployed yet, but code is just about there. Screenshot attached from local development instance, showing that it can do the job.
Looks like there's no existing system for enforcing a configuration setting change at a specific upgrade point? On upgrade to Revive Adserver 3.0.0, we'll need to change the sync server settings, but so far I haven't seen a system in the code to do this. Looks like the last item on the list to change along with updating the default server info for new installations.
Oh, tests are broken too: https://revive.beccati.com/bamboo/browse/REV-AD3-4
I will need to fix those.
We can build a migration package (e.g. at version 2.99) that removes unnecessary configuration entries and updates the sync server settings.
Ideally that same package could/should remove m2m/adnetwork/advsignup database fields
Deprecated configuration entries are now already being removed (in the #17 branch) as a result of https://github.com/openx/openx-source/commit/bcd55fc850ae323bef13370648bd6c36bdfd7ad0 - once it is merged into master, we can update and extend to remove other fields. I will ticket that so we don't forget. Still need a migration for changing the sync server settings, though. Thanks for the suggestion, will do.
Oh, wait, no - those database fields need to actually be removed, not just dropped from the configuration. I've created a correct ticket for this!
Tests fixed - new methods needed to be mocked.
Any specific reason why we need to provide a full deprecated.conf.php config file with values as well?
I'm just thinking out loud here, but providing a method and calling it from the migration package would probably be more future proof (e.g. plugins could benefit from it as well).
Yeah, you're right - I created the deprecated config file to subconsciously avoid having to re-learn the upgrade package system, I bet :-) I'll remove that system, and move the changes to the upgrade package.
Update the details of the sync server that is contacted for upgrade messages.