Project

General

Profile

Bug #8343

API resource_scope ignores options

Added by Ohad Levy almost 5 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
API
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

This leads to ignoring eager loading and other rails AR options.


Related issues

Related to Foreman - Bug #11266: Unnested *_id parameters treated as parent resources in APINew2015-07-31
Related to Foreman - Bug #12201: GET /api/hosts/:host_id/audits errorClosed2015-10-16
Related to Foreman - Bug #12965: Error when trying to get operatingsystem's provisioning templates throuh apiClosed2015-12-31
Related to Foreman - Bug #13775: Not able to change an HG for a host using API callClosed2016-02-17
Related to Foreman - Bug #14000: Non-admin user receives permissions error on config_templates APIClosed2016-03-02
Related to Foreman - Bug #15653: CVE-2016-5390 - access to API host interfaces, parameters etc. are not restricted by view_hosts filtersClosed2016-07-12
Related to Foreman - Refactor #23234: remove friendly_id <5.0 workaroundsNew2018-04-11

Associated revisions

Revision bb39df2a (diff)
Added by Shimon Shtein about 4 years ago

Fixes #8343 - Consolidated code paths, and removed unnecessary DB calls for parent object

History

#1 Updated by Dominic Cleal almost 5 years ago

  • Category set to API

#2 Updated by Ohad Levy over 4 years ago

This actually slows down every api call, as it can't be eager loaded, joins etc.

#3 Updated by Shimon Shtein over 4 years ago

  • Assignee set to Shimon Shtein

#4 Updated by The Foreman Bot over 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2099 added
  • Pull request deleted ()

#5 Updated by Dominic Cleal about 4 years ago

  • Legacy Backlogs Release (now unused) set to 63

#6 Updated by Shimon Shtein about 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#7 Updated by Dominic Cleal about 4 years ago

  • Related to Bug #11266: Unnested *_id parameters treated as parent resources in API added

#8 Updated by Dominic Cleal almost 4 years ago

  • Related to Bug #12201: GET /api/hosts/:host_id/audits error added

#9 Updated by Dominic Cleal over 3 years ago

  • Related to Bug #12965: Error when trying to get operatingsystem's provisioning templates throuh api added

#10 Updated by Dominic Cleal over 3 years ago

  • Related to Bug #13775: Not able to change an HG for a host using API call added

#11 Updated by Dominic Cleal over 3 years ago

  • Related to Bug #14000: Non-admin user receives permissions error on config_templates API added

#12 Updated by Dominic Cleal about 3 years ago

  • Related to Bug #15653: CVE-2016-5390 - access to API host interfaces, parameters etc. are not restricted by view_hosts filters added

#13 Updated by Michael Moll over 1 year ago

Also available in: Atom PDF