holandes22 / rafee

1 stars 1 forks source link

After deleting a repo, you can't add it to the db again #85

Open tzurE opened 9 years ago

tzurE commented 9 years ago

After building the frontend GUI of the repositories, if you delete a repo and than try to add it again - it won't let you do that. it's like the db doesn't want to accept that. so even if you save it and all - doesn't work. tried even from the REST-api, because I thought there was a problem with ember.store, but it still doesn't work. tried running migrations or something - nada. any ideas? I'm lost here. (btw, it doesnt happen with users or teams, because they have a unique id. so each of them is different)

holandes22 commented 9 years ago

Should be a task. Did you check it was removed from the file system? otherwise it won't be able to clone again under the same path

tzurE commented 9 years ago

how can I check if it was removed from the file system?

holandes22 commented 9 years ago

At the django settings files, check the value of RAFEE_REPO_DIR, that determines the location of the repos.

BTW, can you change the title of the issue? is too generic

tzurE commented 9 years ago

it wasn't removed from the file path, it's still there. I can manually delete it but how can we fix this? can we tell the backend to delete it from the file system as well?

holandes22 commented 9 years ago

It is supposed to delete it from file system. Check RepositoryDetailAPIView for the implementation. So this is a bug

tzurE commented 9 years ago

ok, everything works. I checked celery and all the code and everything was fine. didn't change anything, it just...works now. not sure how that happened actually. maybe Its was something in my system. after a restart and a clean "up" command, everything works fine now. you can close this,

holandes22 commented 9 years ago

hmm, strange. Probably the problem was that celery was not up, thus failing the task to run? Did you check the celery logs or the task state via flower?