Sage-Bionetworks / projectLive_NF

Live view of projects of funding partners
2 stars 3 forks source link

Move modules #139

Closed andrewelamb closed 3 years ago

andrewelamb commented 3 years ago

mostly! could you also make sure oauth and the funding agency selection is still working correctly?

jaybee84 commented 3 years ago

Re OAuth: The funding agency selection on the landing page works i.e. I get to see only the org in the dropdown which I am affiliated with but the rest of the app does not work.

getting the following error for all plots/modules:

Warning: Error in py_call_impl: SynapseHTTPError: 403 Client Error: 
You lack READ access to the requested entity.

Detailed traceback:
  File "/home/jbanerjee/.local/lib/python3.6/site-packages/synapseclient/client.py", line 724, in get
    bundle = self._getEntityBundle(entity, version)
  File "/home/jbanerjee/.local/lib/python3.6/site-packages/synapseclient/client.py", line 1253, in _getEntityBundle
    bundle = self.restPOST(uri, body=json.dumps(requestedObjects))
  File "/home/jbanerjee/.local/lib/python3.6/site-packages/synapseclient/client.py", line 3904, in restPOST
    response = self._rest_call('post', uri, body, endpoint, headers, retryPolicy, requests_session, **kwargs)
  File "/home/jbanerjee/.local/lib/python3.6/site-packages/synapseclient/client.py", line 3871, in _rest_call
    self._handle_synapse_http_error(response)
  File "/home/jbanerjee/.local/lib/python3.6/site-packages/synapseclient/client.py", line 3841, in _handle_synapse_http_error
    exceptions._raise_for_status(res [... truncated]
  129: <Anonymous>

My guess is that the step where we filter all the tables according to team affiliation is not working.

andrewelamb commented 3 years ago

Is this currently on the testing sever? It's working for me it seems...

jaybee84 commented 3 years ago

yes, this is on testing server. It is working for all accounts who have global/admin permissions (works for my Sage account). But does not work for my test account which is only added to the NTAP Admin team.

The live app works for the test account and shows content consistent with the team affiliation

andrewelamb commented 3 years ago

Could you give my test user account the same permission your test account does(in terms of NF funding teams)

user_id: 3398509

jaybee84 commented 3 years ago

done

andrewelamb commented 3 years ago

OK this should work now