Skip to content

Conversation

@benflexcompute
Copy link
Collaborator

@benflexcompute benflexcompute commented Jan 13, 2026

Reverts #1614

The migration was not completed yet on PROD env.


Note

Restores the internal reporting system and integrates cloud report submission.

  • Re-adds flow360.plugins.report (templates, 2D/3D charts, cameras, LaTeX doc, utils) with assets and README
  • Introduces cloud models and interfaces for reports (NewReportRequest, Report, ReportDraft), plus image rendering via shutter
  • Exposes reporting from the root (flow360.report) and adds get_default_report_summary_template()/get_default_report_config()
  • Project.run_case now triggers creation of a default summary report in cloud
  • Updates examples and tutorials to generate reports (automotive_report.py, geometry_to_report.py, sweep templates, BET/CHT scripts, notebook)

Written by Cursor Bugbot for commit d4b9077. This will update automatically on new commits. Configure here.

@benflexcompute benflexcompute merged commit f97c32c into main Jan 13, 2026
21 checks passed
@benflexcompute benflexcompute deleted the revert-1614-BenY/MoveReportImplOut branch January 13, 2026 20:06
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d4b9077d33

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +2219 to +2223
report_template.create_in_cloud(
name=f"{name}-summary",
cases=[case],
solver_version=solver_version if solver_version else self.solver_version,
)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Avoid failing run_case on report submission errors

The new unconditional create_in_cloud call means run_case now depends on the report API succeeding; if the report service is unavailable or the user lacks report permissions, create_in_cloud will raise and run_case fails even though the case has already been created. This can make callers think the case submission failed and trigger retries/duplicates. Consider making report creation optional or catching/reporting Flow360WebError so run_case still returns the created case when report creation fails.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants