EUDAT-B2STAGE / http-api

RESTful HTTP-API for the B2STAGE service inside the EUDAT project
https://eudat-b2stage.github.io/http-api/
MIT License
7 stars 7 forks source link

iRODS rules B2SAFE compliant #63

Closed muccix closed 6 years ago

muccix commented 7 years ago

To be able to test the "pids" endpoint and the "GET registered", we need the b2safe docker container to trigger rules for object registration (and deregistration on delete).

We need to add these rules in "etc/irods/core.re":

acPostProcForPut
{
  ON($objPath like "/tmpZone/home/guset/*")
  {
    EUDATCreatePID("None", $objPath, "None", "None", "false", *PID);
    writeLine("serverLog","PID Created: *PID for object $objPath");
  }
}

and

acPostProcForObjRename(*sourceObject,*destObject)
{
  ON(*sourceObject like "/tmpZone/home/guset/*")
  {
    EUDATePIDremove(*sourceObject, "true");
    writeLine("serverLog","PID removed for object: *sourceObject");
  }
}
pdonorio commented 7 years ago

A little more info to decide if this is important for the first release or is more related to the `B2SAFE dockerized development?

pdonorio commented 6 years ago

To be investigated soon, hopefully with the help of @chStaiger

chStaiger commented 6 years ago

The python API does not seem to trigger any actions or peps in the irods core.re. I will investigate this a bit, hopefully until Friday.

pdonorio commented 6 years ago

This was implemented during the seadata project, see here