Project

General

Profile

Actions

Feature #14201

closed

[API] Accept "exclude_home_project" flag in groups#contents

Added by Tom Clegg over 5 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
API
Target version:
Story points:
1.0
Release:
Release relationship:
Auto

Description

If a truthy exclude_home_project query parameter is given,
  • include only items that are not otherwise reachable by the current user via project tree -- i.e., items whose parents are not visible to the current user, or are users other than the current user, or are non-project groups (see #13146)
  • return a "bad request" error if parent/owner uuid is also given

Subtasks 1 (0 open1 closed)

Task #14238: Review 14201-exclude-home-projectResolvedLucas Di Pentima10/01/2018Actions

Related issues

Related to Arvados - Idea #13146: [API] Endpoint to get projects shared with meResolvedPeter Amstutz08/15/2018Actions
Actions #1

Updated by Tom Clegg over 5 years ago

  • Description updated (diff)
Actions #2

Updated by Tom Clegg over 5 years ago

  • Related to Idea #13146: [API] Endpoint to get projects shared with me added
Actions #3

Updated by Tom Morris over 5 years ago

  • Target version set to To Be Groomed
  • Story points set to 1.0
Actions #4

Updated by Tom Clegg over 5 years ago

  • Description updated (diff)
Actions #5

Updated by Tom Clegg over 5 years ago

  • Description updated (diff)
Actions #6

Updated by Tom Morris over 5 years ago

  • Target version changed from To Be Groomed to 2018-10-03 Sprint
Actions #7

Updated by Lucas Di Pentima over 5 years ago

  • Assigned To set to Lucas Di Pentima
Actions #8

Updated by Tom Clegg over 5 years ago

  • Subject changed from [API] Accept "shared with me" flag in groups#contents to [API] Accept "exclude_home_project" flag in groups#contents
  • Description updated (diff)
Actions #9

Updated by Peter Amstutz over 5 years ago

  • Status changed from New to In Progress
  • Assigned To changed from Lucas Di Pentima to Peter Amstutz
Actions #10

Updated by Peter Amstutz over 5 years ago

14201-exclude-home-project @ 15f312dfec5cf19c2c71508b2ed7a9d65758eeb0

  • Added "exclude_home_project" to "contents" endpoint
  • Updated documentation
  • Added tests

https://ci.curoverse.com/view/Developer/job/developer-run-tests/909/

Actions #11

Updated by Lucas Di Pentima over 5 years ago

A couple of comments:

  • On file services/api/app/controllers/arvados/v1/groups_controller.rb, lines 115, 266: In case owners var contain lots of repeated uuids, would it be convenient to get the de-duplicated version before passing it to que query? (I’m not sure if Active Record already does this)
  • Should exclude_home() be a protected method?
  • Fuse tests seem to have halted on test_safer_realpath, don't know if it's related to this update.
Actions #12

Updated by Peter Amstutz over 5 years ago

Lucas Di Pentima wrote:

A couple of comments:

  • On file services/api/app/controllers/arvados/v1/groups_controller.rb, lines 115, 266: In case owners var contain lots of repeated uuids, would it be convenient to get the de-duplicated version before passing it to que query? (I’m not sure if Active Record already does this)

Now converts to Set() (which will deduplicate entries) and then back to Array.

  • Should exclude_home() be a protected method?

Fixed.

  • Fuse tests seem to have halted on test_safer_realpath, don't know if it's related to this update.

Seems unlikely but anything is possible, let's see what happens on the next run.

14201-exclude-home-project @ 8cfec0701cd01994502b53dbaf73cd86a24ff72e

https://ci.curoverse.com/view/Developer/job/developer-run-tests/911/

Actions #13

Updated by Lucas Di Pentima over 5 years ago

This LGTM, please merge.

Actions #14

Updated by Peter Amstutz over 5 years ago

  • Status changed from In Progress to Resolved
Actions #15

Updated by Tom Morris over 5 years ago

  • Release set to 14
Actions

Also available in: Atom PDF