Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use model file url from ReRunQueryParams to return CombineArchiveContentUrl #4817

Open
github-actions bot opened this issue Apr 25, 2024 · 0 comments
Open
Labels

Comments

@github-actions
Copy link
Contributor

// TODO: Use model file url from ReRunQueryParams to return CombineArchiveContentUrl

    this.createSimulationsArray();
  }

  public prepareModelFile() {
    // TODO: Use model file url from ReRunQueryParams to return CombineArchiveContentUrl
  }

  public prepareSedDoc() {
    /* TODO:
        a.) make a call to introspect original sed file
        b.) use output of a to make another call to introspect editable params (params variables)
        c.) use b to populate the form (default value, new value, etc)
        d.) On user submit, detect changes if any and replace those values in c
        e.) Replace original model changes field in a with d
        f.) Return a
    */
  }

  public compileArchive() {
    // TODO: gather archive members and prepare API call submission form here.
    const formData = new FormData();
    const modelFile = this.prepareModelFile();
    const sedDoc = this.prepareSedDoc();
  }

  public createCustomArchive() {
    // TODO: make a call to combine-api/create using the output of this.compileArchive, return url/file
    this.compileArchive();
  }

  public runCustomSimulation() {
    /* TODO:
        a.) create custom archive
        b.) use a to make a call to api/run and navigate to runs/<ID>/view
    */
    const archive = this.createCustomArchive();
  }

  // original rerun project method:
  public rerunProject(id: string): void {
    this.httpClient
@github-actions github-actions bot added the todo label Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants