fabric8-launcher/ngx-launcher

Find a nice way to handle blank mission flow

ia3andy opened this issue · 3 comments

They are currently handled by this hack and maybe some others I haven't seen:

handleBlankMissionFlow(): void {
    if (this.launcherComponent.summary.mission && this.launcherComponent.summary.runtime &&
      this.launcherComponent.summary.mission.id === 'blank-mission') {
      let runtimeSp: any = this.launcherComponent.summary.runtime;
      if (runtimeSp && runtimeSp.boosters && runtimeSp.boosters.length > 0) {
        let supportedMission: any = runtimeSp.boosters[0];
        this.launcherComponent.summary.mission.meta = supportedMission.mission.id;
      }
    }
  }

cc: @invincibleJai @jyasveer @bartoszmajsak

This will take the first booster of the selected runtime and set that as mission.meta in most cases it will be 'health-check'? I'm seriously doubting that this is needed.

@edewit I dont get what you mean?

blank mission flow has been removed