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

Configurable snapshot --all temp directory #177

Open
github-actions bot opened this issue Jan 3, 2025 · 0 comments
Open

Configurable snapshot --all temp directory #177

github-actions bot opened this issue Jan 3, 2025 · 0 comments
Assignees
Labels
msar packages/myschoolapp-reporting snapshot msar snapshot

Comments

@github-actions
Copy link

github-actions bot commented Jan 3, 2025

// TODO Configurable snapshot --all temp directory

  }

  const errors: typeof groups = [];
  const data: Data = [];

  async function snapshotGroup(i: number) {
    const tempPath = path.join(TEMP, `${pad(i)}.json`);
    try {
      const snapshot = await Single.snapshot({
        session,
        ...options,
        groupId: groups[i].lead_pk,
        quit: true
      });
      data[i] = snapshot;
      // TODO Configurable snapshot --all temp directory
      // TODO Optional snapshot --all temp files
      common.output.writeJSON(tempPath, snapshot);
      progressBars.log(
        `Wrote snapshot ${snapshot?.SectionInfo?.Teacher}'s ${snapshot?.SectionInfo?.SchoolYear} ${snapshot?.SectionInfo?.GroupName} ${snapshot?.SectionInfo?.Block} to ${cli.colors.url(outputPath)}\n`
@battis battis added msar packages/myschoolapp-reporting snapshot msar snapshot labels Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
msar packages/myschoolapp-reporting snapshot msar snapshot
Projects
None yet
Development

No branches or pull requests

1 participant