data-explorer
data-explorer copied to clipboard
Fixes for being able to run mldeploy, create TDE from query, and logi…
…n/click search as search-user Fixes for issue #197
- Upgraded build.gradle to use https for the the repos. In the past we've used http because I think the java keystore didn't have the correct cert to do https. But now when I tried to do an mldeploy it said HTTPS was required. Note: this requires adding the correct cert or using a newer java (I used JDK11)
- Upgraded to use the most recent versions ml-gradle and ml-app-deployer (3.17.0). The version of ml-gradle being used was not deploying the modules (see issue).
- Added a triggers and schemas database config and updated the content-database.json to use them because there was no schemas database configured and TDE creation recommends using a specific one rather than the Schemas database that is installed by default. With this, at least our sample data will have a schemas database to hold TDEs.
- Added the tde-admin and tde-view roles to the data-explorer-wizard role since they are required to use the protected collection for TDEs and to view TDEs.
- Updated calls to xdmp:invoke-function in the tde-lib.xqy library to use xu:invoke-function (from /root/server/lib/xdmp-utils.xqy) because that function is amped with the anyuri priv which allows the TDEs to be written. Wasn't able to create the TDE without this due to URI-PRIV error.
- Updated adhoc.controller.js to only call the /api/sample-filtetypes endpoint if the user has the wizard-user role. Otherwise was auto logging the user out (see issue)
- Updated user/role definitions that had ferret in the description with Data Explorer instead