sforgcompare icon indicating copy to clipboard operation
sforgcompare copied to clipboard

Compare not working anymore ?

Open nvuillam opened this issue 2 years ago • 1 comments

I'm trying to compare a production and a pre-production org, and except for labels, all items are declared to be existing on one side and not on the other, whereas they clearly physically exist on both sides

image

Is there some workaround ?

Thanks !

nvuillam avatar Oct 20 '21 12:10 nvuillam

Running locally I think it has to do with concurrent read/write to metadata.zip. I did something like this for [email protected]

os.makedirs("meta/{}/{}".format(slugify(org.username), component_type), exist_ok=True)
zipname = "meta/{}/{}/{}.zip".format(slugify(org.username), component_type, component_type)
if os.path.isfile(zipname):
	os.remove(zipname)
	
# Save the zip file result to server
zip_file = open(zipname, 'wb')

...

metadata = ZipFile(zipname, 'r')

bskiefer avatar Jun 13 '23 21:06 bskiefer