higlass / higlass-manage

A utility script to manage local docker instances of HiGlass
http://docs.higlass.io
MIT License
22 stars 9 forks source link

old viewconf-s not working after migrating higlass instance #53

Closed sergpolly closed 4 years ago

sergpolly commented 4 years ago
pkerpedjiev commented 4 years ago

Good questions!

is there a script/pulg-in/tutorial for migrating a higlass ?

Not currently.

if not, would it be cool to have one ? as part of higlass-manage ?

Yes. But the first step it should do is back up the old database.

would a solution based on manual sqlite's database UPDATE ... table ... replace be ok e.g. https://stackoverflow.com/questions/10532656/sqlite-replace-part-of-a-string ?

I think that would be fine.

sergpolly commented 4 years ago

yay ! finally submitted a PR - but it's WIP - "in progress" , mostly because there is a nice and native way to backup sqlite in python>=3.7 - which would be to limiting to require I feel like - so what do we do about it ?...

also - more "philosophical" question - is there any way to make those tileset-URLs in the viewconf relative ? just to avoid the whole migration thing with replacing origin to destination... I don't really know much about web, so not sure if relative URL is even a thing, ... also PORT messes things up, i guess