Bug 1463633 - [RFE] Provide support for data aggregation when fetching entities
Summary: [RFE] Provide support for data aggregation when fetching entities
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: RestAPI
Version: 4.1.3.3
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ovirt-4.2.0
: 4.2.0
Assignee: Ori Liel
QA Contact: samuel macko
URL:
Whiteboard:
Depends On:
Blocks: 1436206
TreeView+ depends on / blocked
 
Reported: 2017-06-21 11:35 UTC by Martin Perina
Modified: 2017-12-20 11:06 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-12-20 11:06:58 UTC
oVirt Team: Infra
Embargoed:
rule-engine: ovirt-4.2+
lsvaty: testing_plan_complete-
mgoldboi: planning_ack+
mperina: devel_ack+
lsvaty: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 77793 0 master MERGED Generate doGet, doList methods 2017-07-03 08:56:13 UTC
oVirt gerrit 79993 0 None None None 2017-08-03 16:48:34 UTC

Description Martin Perina 2017-06-21 11:35:08 UTC
Description of problem:

Currently when someone wants to fetch resources (for example VMs) using RESTAPI, he will need additional requests to fetch also its sub resources (like NICs or disk attachments). But inside RESTAPI we already return links to those subresources, so it would not be hard to provide parameter 'follow' to define which subresources should be fetched along with main resource using single request, for example:

  GET /ovirt-engine/api/vms?follow="nics,disk_attachments"

RESTAPI will also provide default "naive" subresource fetching (which of course is not optimized for performance), but we will provide infrastructure for engine developers to easily add performance optimized implementations for common use cases (for example BZ1436206)

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 3 samuel macko 2017-08-24 14:40:02 UTC
Verified in ovirt version 4.2.0-0.0.master.20170823165744.git116f435.el7.centos

Tested with:
  GET /ovirt-engine/api/vms?follow=disk_attachments,nics

Result:
<vms>
 <vm>
  <disk_attachments>
  </disk_attachments>
  ...
  <nics>
  </nics>
 </vm>
</vms>

Comment 5 Sandro Bonazzola 2017-12-20 11:06:58 UTC
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017.

Since the problem described in this bug report should be
resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.