Project

General

Profile

Actions

Bug #22277

closed

Missing can_read and can_write in "included" when "select" is used

Added by Peter Amstutz over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assigned To:
-
Category:
API
Target version:
-
Story points:
-

Description

Without select, can_manage and can_write are returned on the included objects:

$ arv group contents --filters '[["uuid","is_a","arvados#containerRequest"]]' --count none --limit 1 --include=owner_uuid 
{
 "included":[
  {
   "can_manage":true,
   "can_write":true,
   "created_at":"2020-07-14T14:18:56.798684000Z",
   "email":"peter.amstutz@curii.com",
   "etag":"3uupzr98lifu5vdly2xkbhnqy",
   "first_name":"Peter",
   "full_name":"Peter Amstutz",
   "href":"/users/jutro-tpzed-a4qnxq3pcfcgtkz",
   "identity_url":null,
   "is_active":true,
   "is_admin":true,
   "is_invited":true,
   "kind":"arvados#object",
   "last_name":"Amstutz",
   "modified_at":"2023-12-07T18:33:23.089186000Z",
   "modified_by_client_uuid":"pirca-ozdt8-nn0fyqphhusmtoy",
   "modified_by_user_uuid":"pirca-tpzed-000000000000000",
   "owner_uuid":"pirca-tpzed-000000000000000",
   "prefs":{
    "profile":{
     "organization":"Curii",
     "organization_email":"",
     "role":"Software Developer",
     "website_url":"" 
    }
   },
   "username":"peteramstutz",
   "uuid":"jutro-tpzed-a4qnxq3pcfcgtkz",
   "writable_by":[
    "pirca-tpzed-000000000000000",
    "jutro-tpzed-a4qnxq3pcfcgtkz",
    "pirca-j7d0g-000000000000000" 
   ]
  }
 ],
 "items":[
  {
   "command":[
    "arv-cluster-activity",
    "--prometheus-auth",
    "prometheus.env",
    "--days",
    "180",
    "--html-report-file",
    "report.html",
    "--cost-report-file",
    "cost.csv" 
   ],
   "container_count":1,

When select is added, even if can_manage and can_write are selected, it doesn't return them the included objects:

$ arv group contents --filters '[["uuid","is_a","arvados#containerRequest"]]' --count none --limit 1 --include=owner_uuid --select '["uuid", "owner_uuid", "can_manage", "can_write"]'  
{
 "included":[
  {
   "kind":"arvados#object",
   "owner_uuid":"pirca-tpzed-000000000000000",
   "uuid":"jutro-tpzed-a4qnxq3pcfcgtkz" 
  }
 ],
 "items":[
  {
   "kind":"arvados#containerRequest",
   "owner_uuid":"jutro-tpzed-a4qnxq3pcfcgtkz",
   "uuid":"pirca-xvhdp-w6jpka1va2g04hv" 
  }
 ],
 "kind":"arvados#objectList",
 "limit":1,
 "offset":0
}
Actions #1

Updated by Peter Amstutz over 1 year ago

  • Description updated (diff)
Actions #2

Updated by Peter Amstutz over 1 year ago

  • Target version deleted (Development 2024-11-20)
  • Status changed from New to Closed

After putting this in, I realized I was testing against 2.7 and found out this was actually fixed in 3.0.

Actions

Also available in: Atom PDF