Uploaded image for project: 'Insights Experiences'
  1. Insights Experiences
  2. HMS-4932

Api: list module streams for snapshotted repos

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • Content

      Goal: 

      • List modules and their streams for snapshotted repositories

      Acceptance Criteria:

      • Image builder will provide a list of red hat or custom snapshot UUIDs,  
      • We should return a list of modules,  along with the full set of streams available, and which is the default
      • Optionally it can provide a list of packages, and if so, we will only return module streams that include those packages.
      • Should include pagination and searching by module name

       

      • an api:
      • POST /snapshots/module_streams/search

      with input:

      {
         uuids: ["abcde"],
         package_names: ["foo", "bar"],
         search: <optional - module_name>
      }

      and return a list of modules with their streams and profiles:

      {
       data: [
           {
              module_name: "postgresql",
              streams: [
                 {
                   name: "postgreql"
                   stream: "14",
                   profiles: {
                     common: ["pkg1", "pkg2"],
                     client: ["pkg3", "pkg4"]
                   }
                  },
                 {
                   name: "postgresql"
                   stream: "13"
                   profiles: {
                       common: ["pkg1", "pkg2"],
                       client: ["pkg3", "pkg4"]
                   }
                 }
              ]      
           }
       ]
        
      }

      This should include pagination

      This should include name filter (name=postgresql)

       

       

      Within pulp:

      This data is stored in the rpm_modulemd table
      The default is stored in the rpm_modulemddefaults table
      The package join information is stored in the rpm_modulemd_packages table.

              rhn-engineering-adewar Andrew Dewar (Inactive)
              rhn-engineering-jsherrill Justin Sherrill
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: