Skip to content
Snippets Groups Projects
Commit 76a1a7fe authored by Charlotte Hausman's avatar Charlotte Hausman
Browse files

Merge branch 'wtf-happened-to-carta' into 'main'

let's make WS QA-type CARTA not use a list of actual user emails....

See merge request !1641
parents 2bc9d38d f28fb336
No related branches found
No related tags found
2 merge requests!1669Catchup with main,!1641let's make WS QA-type CARTA not use a list of actual user emails....
Pipeline #15316 passed
Pipeline: workspaces

#15317

    ......@@ -50,6 +50,7 @@ export class RequestOperationsComponent implements OnInit {
    public hasBeenClicked: boolean = false;
    public cartaEmail: string;
    public defaultCC: string;
    public analystList: string;
    public emailParams: any;
    // Observer for submitting capability request objects (returns a capability execution)
    ......@@ -111,8 +112,15 @@ export class RequestOperationsComponent implements OnInit {
    };
    launchCarta($event) {
    // In this case we do actually want the user_email from the parent version, it should (currently) be the analyst list
    if (this.selectedVersion.parameters["user_email"] !== null &&
    this.selectedVersion.parameters["user_email"] === this.analystList ) {
    this.cartaEmail = this.analystList;
    } else {
    this.cartaEmail = null;
    }
    let email = this.cartaEmail != null ? this.cartaEmail : "n/a"
    let email = this.cartaEmail !== null ? this.cartaEmail : "n/a"
    let params = {
    need_data: false,
    notify_ready: true,
    ......@@ -173,6 +181,8 @@ export class RequestOperationsComponent implements OnInit {
    } else {
    this.defaultCC = "schedsoc@nrao.edu," + response.resp;
    }
    // keep around on it's own for general use
    this.analystList = response.resp
    }
    },
    error: (error) => {
    ......@@ -188,14 +198,12 @@ export class RequestOperationsComponent implements OnInit {
    const getEmailObserver = {
    next: (response) => {
    if (response.resp) {
    this.cartaEmail = response.resp;
    this.emailParams = {
    "destination_email": response.resp,
    "version": this.selectedVersion,
    "workflow_metadata": this.selectedVersion.workflow_metadata
    };
    } else {
    this.cartaEmail = null;
    this.emailParams = {
    "destination_email": null,
    "version": this.selectedVersion,
    ......@@ -205,7 +213,6 @@ export class RequestOperationsComponent implements OnInit {
    },
    error: (error) => {
    console.error("Failed to load destination email:", error);
    this.cartaEmail = null;
    this.emailParams = {
    "destination_email": null,
    "version": this.selectedVersion,
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment