X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Factions.py;h=46c69190d26875832e6cda6a3486bd23e16a463a;hb=852d40d9f77788e0f1ecb5ae886c8ae78ee1d177;hp=a96dfd63e0bd9c67a3f84bba6e673373faa147dd;hpb=4abf1ba38cc3be9f76f085857e0bff0e799cba19;p=unfold.git diff --git a/portal/actions.py b/portal/actions.py index a96dfd63..46c69190 100644 --- a/portal/actions.py +++ b/portal/actions.py @@ -686,6 +686,10 @@ def portal_validate_request(wsgi_request, request_ids): user_email = a.email PendingAuthority.objects.get(id=request['id']).delete() + + # Clear Admin Cache as it is used to display the list of authorities in Registration page + query = Query.update('myslice:authority').filter_by('authority_hrn', '==', sfa_authority_params['authority_hrn']).set({'authority_hrn':sfa_authority_params['authority_hrn']}).select('authority_hrn') + res = execute_admin_query(request, query) elif request['type'] == 'project': hrn = request['authority_hrn'] + '.' + request['project_name'] @@ -712,6 +716,11 @@ def portal_validate_request(wsgi_request, request_ids): PendingProject.objects.get(id=request['id']).delete() + # Clear Admin Cache as it is used to display the list of projects in Slice request page + query = Query.update('myslice:authority').filter_by('authority_hrn', '==', sfa_authority_params['authority_hrn']).set({'authority_hrn':sfa_authority_params['authority_hrn']}).select('authority_hrn') + res = execute_admin_query(request, query) + + elif request['type'] == 'join': # Add user as a PI of the project # Clear user's Credentials