Feature/migrate measurements

fixes emerged from the smoke test of the  measurements -> partitioned_measurements migration