ManageIQ / ManageIQ/manageiq-api-client
bulk operations on relations
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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