hil icon indicating copy to clipboard operation
hil copied to clipboard

Project related CLI calls

Open SahilTikale opened this issue 7 years ago • 4 comments

Following calls are required for project. Should list resources allocated to the project like <node>, <networks>, <users> For Networks it should show which the project owns versus which are shared with the project For Users it should show which are admin vs which are regular

This call should be accessed by administrator and by any user that belongs to the <project>

hil project show <project_name>

For Administrator: Following call should list all projects. For Users: Following call should list all the projects that the user is part of.

hil project list 

SahilTikale avatar Apr 12 '18 14:04 SahilTikale

adding a project show sounds good to me.

The admin_only variant of the project list call already exists. I don't like things that have different behavior (besides allow/deny) based on the identity of the caller, so I'm not a fan of extending it for the user case. But we can just get that info from the user show call you suggest in #994, which can either require admin access or being the user in question. I'm vaguely uncomfortable with that design, since we don't otherwise use user as the unit of authentication, just project, but maybe it's okay if it's scoped to the user based auth backend anyway (the call would just not exist when we're not doing users). Not sure how I feel about that.

zenhack avatar Apr 12 '18 22:04 zenhack

https://github.com/CCI-MOC/hil/issues/949

xuhang57 avatar Apr 13 '18 01:04 xuhang57

Okay, yeah, looks like this is just a duplicate of #949; I'm going to close it to centralize the discussion.

zenhack avatar Apr 26 '18 17:04 zenhack

Ack, no, it's not quite the same, reopening. Still waking up :/...

zenhack avatar Apr 26 '18 17:04 zenhack