Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-31808

ForemanTasks scoped search filter by organization_id always has too many results

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 6.16.z, 6.17.0
    • Repositories
    • Phoenix - Content
    • False
    • None
    • None
    • None
    • None

      Description of problem: ForemanTasks controller autocomplete filter is not working specially if use organization_id along with search query

       

      How reproducible: Always in 6.17.0

       

      Is this issue a regression from an earlier version: 

       

      Steps to Reproduce:

      1. Create a 2 different organizations 
      example: 

      1. hammer organization list
        {}{}|{}{}---------------{}{}{}|{}{}{}--------------{}{}{}|{}{}{}-----{}{}{}|{}{}{}-----------------
        ID | TITLE                | NAME                 | DESCRIPTION | LABEL               
        {}{}|{}{}---------------{}{}{}|{}{}{}--------------{}{}{}|{}{}{}-----{}{}{}|{}{}{}-----------------
        1  | Default Organization | Default Organization |             | Default_Organization
        5  | qlFvsNIPOIB          | qlFvsNIPOIB          |             | qlFvsNIPOIB         
        7  | wNGXqXSoI            | wNGXqXSoI            |             | wNGXqXSoI           
        {}{}|{}{}---------------{}{}{}|{}{}{}--------------{}{}{}|{}{}{}-----{}{}{}|{}{}{}-----------------

      2. Create a product, a repository and sync it on each of the orgs.

      3. For any of organization, navigate to Monitor > Satellite Tasks > Tasks and 

      4. Search for a query using filter "Metadata generate organization_id = 5"

      Actual behavior:
      Task table shows all the Actions across the organization.

      Expected behavior:
      Task table should show only Actions from "qlFvsNIPOIB" organization whos org_id=5

      Business Impact / Additional info: 

      1. Attached screenshot-1 showing all tasks from all the organization
        Search query - Metadata generate organization_id = 5
      2. Attached screenshot-2 showsing only tasks from specific org
        Search query - Metadata generate organization ' wNGXqXSoI'

              Unassigned Unassigned
              rhn-support-visawant Vijaykumar Sawant
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: