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

Include lifecycle dates in module stream responses for rpm search

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

      Goal: 

      • Include start_date and end_Date for module streams as part of  rpm search for repositories and snapshots
      • Pull these dates from the lifecycle api

      Acceptance Criteria:

      • Auth to the lifecycle api will just forward the identity header of the current user
      • Lifecycle Api information is cached with an expiration of once a day
      • Rpm search still performs well
      • We may want to also support basic auth to support running locally in dev
      • Should be optional so we can have it enabled in stage but not prod

       

      Lifecycle api example:

       

      curl https://console.stage.redhat.com/api/roadmap/v1/lifecycle/app-streams/9   -u $USER:$PASSWORD --proxy $PROXY | jq

       

      example module stream:

          {
            "module_name": "maven",
            "rhel_major_version": 9,
            "streams": [
              {
                "arch": "x86_64",
                "context": "470dcefd",
                "description": "Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information.",
                "end_date": "2025-11-30",
                "name": "maven",
                "profiles": {
                  "common": [
                    "maven-openjdk11"
                  ]
                },
                "rolling": false,
                "start_date": "2022-05-18",
                "stream": "3.8",
                "version": "9040020240210002822"
              }
            ],
            "type": "module"
          }
       

              rverdile@redhat.com Ryan Verdile
              rhn-engineering-jsherrill Justin Sherrill
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: