Use paths rather than IDs when submitting job
mike-jt79 opened this issue · comments
Mike Turner commented
It would be nice to pass the input data and any excluded folders by path rather than ID when submitting a job.
Lewis Bell commented
I'm pretty sure we already do this?
The directory is taken in as a string here:
working_dir = str(raw_input("Base Directory: "))
Then processed in the backend with
def resolve_working_dir(dir_name, request):
team = get_team_from_request(request)
location = get_data_location(userprofile=request.user.userprofile,
team=team,
use_active_team=False)
key = location.s3_obj_key
folder = Folder.objects.get(obj_key=key + dir_name + '/')
return folder.pk