icgc-argo / song-search

Song Search - GQL microservice for searching maestro generated song indexes
GNU General Public License v3.0
0 stars 0 forks source link

Mutation to Inject Song Analysis into A kafka Topic #83

Open Buwujiu opened 1 year ago

Buwujiu commented 1 year ago

Detailed Description

This is for automation ingest. Need a new API as part of the wf api, so that rdpc admin can request analysis id to be sent to the automation system.

Exit Criteria

  1. A new mutation api that accepts analysis id, only accessible to rdpc admins.
  2. Reads analysis data from song
  3. creates a kafka msg same to song_analysis topic
  4. sends the new msg to a topic from config.
UmmulkiramR commented 1 year ago

The mutation query here can be used to send a kafka message to the ingest:

mutation{
    startAutomation(analysisId:""){
        message
        analysis{
          analysisId
          analysisType
          analysisState
        }
    }
}
Buwujiu commented 1 year ago

@lindaxiang @edsu7 to test in QA.

Buwujiu commented 1 year ago

This needs to be deployed to Prod for automation to trigger manually.

lindaxiang commented 1 year ago

@Buwujiu @UmmulkiramR
Tested in QA, and the alignment job can be successfully triggered by providing an analysisId by using the above mutation query.

UmmulkiramR commented 1 year ago

Deployed on Prod