-
Task
-
Resolution: Unresolved
-
Undefined
-
None
-
None
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.
- is cloned by
-
HMS-4934 Api: list module streams for introspected repos
-
- Closed
-
- mentioned on