Skip to content

Feature/poc #2

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

Merged
merged 24 commits into from
Apr 12, 2025
Merged

Feature/poc #2

merged 24 commits into from
Apr 12, 2025

Conversation

shakil1819
Copy link
Owner

No description provided.

shakil1819 and others added 24 commits March 29, 2025 05:47
@shakil1819 shakil1819 requested a review from Copilot April 12, 2025 17:45
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 39 out of 44 changed files in this pull request and generated 1 comment.

Files not reviewed (5)
  • .env.example: Language not supported
  • .python-version: Language not supported
  • Dockerfile: Language not supported
  • Makefile: Language not supported
  • app/diagram/arch.dio: Language not supported

Comment on lines +86 to +89
if not os.path.exists("visualizations"):
os.makedirs("visualizations")
vis_path = "visualizations/analysis_result.html"
results.get("plotly_graph").write_html(vis_path)
Copy link
Preview

Copilot AI Apr 12, 2025

Choose a reason for hiding this comment

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

Both the SQL and visualization agents use the same file name for saving HTML visualizations. Consider using unique file names (e.g., by appending a timestamp or unique identifier) to prevent potential file conflicts during concurrent executions.

Suggested change
if not os.path.exists("visualizations"):
os.makedirs("visualizations")
vis_path = "visualizations/analysis_result.html"
results.get("plotly_graph").write_html(vis_path)
if not os.path.exists("visualizations"):
os.makedirs("visualizations")
unique_id = datetime.now().strftime("%Y%m%d%H%M%S%f") # Generate a timestamp-based unique ID
vis_path = f"visualizations/analysis_result_{unique_id}.html"
results.get("plotly_graph").write_html(vis_path)

Copilot uses AI. Check for mistakes.

@shakil1819 shakil1819 merged commit 3150875 into main Apr 12, 2025
2 of 5 checks passed
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.

1 participant