Peculiar feature when importing method configurations from another workspace

Post author
Liudmila Elagina

Hello,

I encountered very peculiar behavior when importing method configurations through Terra using the "Copy to another workspace" button:

The namespace of the method changes to the namespace of the workspace method it is imported to. make_forcecall_intervals tool is the one that I am importing from another workspace which has dlivitz_dev namespace. Below is the output from Fiss when this method imported through Firecloud:

Below is the screenshot of the same output but when the method is imported through Terra. The method now has the namespace of the workspace's namespace.

 

Is this a purposeful feature?

 

Thank you,

Luda

Comments

3 comments

  • Comment author
    Adelaide Rhodes

    Hi Luda -

    I think this has something to do with how FISS was originally set up.  The methods repository had a methods namespace and the workspace had a workspace namespace.  These are two separate values in Firecloud.  To see how this is labeling your methods, you could try the following commands in a notebook in your workspace:

    #get the billing project for the workspace 
    BILLING_PROJECT_ID = os.environ['GOOGLE_PROJECT']

    BILLING_PROJECT_ID
    #get the workspace name
    WORKSPACE = os.path.basename(os.getcwd())
    WORKSPACE
    #List the Firecloud methods associated with the workspace
    fiss.fapi.list_workspace_configs(BILLING_PROJECT_ID, WORKSPACE).json()

    Try those items out and pay attention to how the value for

    'methodNamespace'

    differs from the value for 

    'namespace'

    Try that and let us know if that resolves the discrepancy.

    0
  • Comment author
    Liudmila Elagina

    Hello Adelaide,

     

    Great, I tried this code and see the correct method namespace in methodNamespace variable.

    But except with Fiss I see this similar behavior in Firecloud GUI. The highlighted method was imported through Terra from another workspace and now in Firecloud the namespace for this method is workspace's namespace.

    0
  • Comment author
    Adelaide Rhodes

    Yes, the Terra namespace becomes the method namespace once you import it into Terra and look at it in Firecloud.

    0

Please sign in to leave a comment.