ManageIQ / ManageIQ/manageiq-api-client

bulk operations on relations

Open
#45 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted
Dominant language
Ruby
Stars
11
Forks
24
PR merge metrics
No merged PRs in 30d

Description

So something like `miq.vms.where(:power_state => "off").stop` would internally call `miq.vms.stop(miq.vms.where(:power_state => "off").pluck(:id))`

This way you can do bulk operations, but not have to that dance manually.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the relation methods represented by `miq.vms.where`, `pluck(:id)`, and `stop`, along with the existing ManageIQ REST API operation for stopping VMs. Done means a filtered relation can invoke `stop` directly and perform the corresponding bulk operation without manually plucking IDs.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.