informatics-isi-edu / ermrestjs

ERMrest client library in JavaScript
Apache License 2.0
4 stars 3 forks source link

Phsids map and lookup helper #954

Closed jrchudy closed 2 years ago

jrchudy commented 2 years ago

This PR creates an extra object in the $session templating variable to iterate over the $session.client.extensions.ras_dbgap_permissions array and use each phs_id as a key in the created object with true as the value. This is being done for a CFDE use case to prevent looping over a potentially large array for every single generated template.

This PR also adds the lookup helper to our templating environment.