Project

General

Profile

Actions

Bug #4311

closed

Name searches don't work when there are other parameters in the search route

Added by Tomáš Strachota about 10 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Category:
Hammer core
Target version:
Difficulty:
Triaged:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

Search by name works fine when the resource is searchable globally.
Eg.

hammer architecture info --name i386
# hits /api/architectures?search= ...

The problem occurs when the name must be searched in scope of some other resource, eg. org:

hammer sync_plan info --name test --organization-id ACME_Corporation
# hits /api/organizations/ACME_Corporation/sync_plans?search= ...

The search function doesn't have access to the organization id and the api call fails with "missing parameter" exception.


Related issues 1 (0 open1 closed)

Has duplicate Hammer CLI - Bug #4306: Unable to successfully perform a CLI command that uses a nested resource.Closed02/10/2014Actions
Actions #1

Updated by Tomáš Strachota almost 10 years ago

  • Target version set to 1.8.4
Actions #3

Updated by Tomáš Strachota almost 10 years ago

  • Status changed from Assigned to Ready For Testing
Actions #4

Updated by Tomáš Strachota almost 10 years ago

  • Has duplicate Bug #4306: Unable to successfully perform a CLI command that uses a nested resource. added
Actions #5

Updated by Anonymous almost 10 years ago

  • Target version changed from 1.8.4 to 1.8.3
Actions #6

Updated by Anonymous almost 10 years ago

  • Target version changed from 1.8.3 to 1.8.4
Actions #7

Updated by Anonymous almost 10 years ago

  • Target version changed from 1.8.4 to 1.8.3
Actions #8

Updated by Anonymous almost 10 years ago

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

Applied in changeset hammer-cli-foreman|commit:d31f0a4718b6b6e31a1a860747f6d509d0b61f93.

Actions

Also available in: Atom PDF