Closed UcDust closed 5 months ago
The API code essentially updates grant visibility in these stages:
For development, we'll need to make sure a 500 error in step 1 doesn't change the visibility in the ui (this might be hard to replicate on test, but we can replicate locally, or deploy an update to sandbox with some intentionally failing code). A 500 error for step 2 and 3 should still update visibility in the ui for what elasticsearch has been updated to.
@UcDust , On changing the visibility of a grant, I see the message
Error: Update Failed
Changes to the visibility of (Travel Support for Participants in the 2015 New Security Paradigms Workshop) could not be done through Aggie Experts right now. Please, try again later, or make changes directly in the UC Publication Management System.
For more help, see troubleshooting tips.
Still need to test visibility when connecting to Elements
@Vensberg this should be ready to test once the code has been deployed.
I checked one of John Madigan's grants. On the second try it worked as expected, with a time wheel while the visibility changed. The relationship on QA also changed as expected. The grants are hidden from search as well. The number of hidden grants is correctly reflected as well. Looks great!
The timing out happens a bit too fast.
@Vensberg can you explain what you mean about the timing out issue?
Works in production.
Tests for hiding/showing grants.
Test for scenario when Aggie Experts cannot connect to Elements to change the visibility of a grant.