Closed kurtkanaskie closed 4 years ago
Great! Works for me based on this PR: $ grunt exportApps Running "exportApps" task
Retrieved 248 developers Retrieved TOTAL of 248 developers, waiting for callbacks to complete [...] Exported 126 apps for 248 developers
Up to here fixes for:
Previously, KVMs tried to export all KVMs from all Environments, which didn't work because done() was being called prematurely. Now, it just exports the KVMs for the environment in config.js.
Fixed importKeys, the flow to migrate Apps and their existing keys is: exportApps - includes original keys importApps - Edge ignores original keys and creates new keys, importApps then deletes them. importKeys - to import original keys.
The iterateOverDevs function was calling done() when it needed to still wait for callbacks to finish.
Testing by adjusting the count param on GET /developers (default is 1000) for boundary conditions.