Repository navigation
Enhancing Report Generation by Adding Story-teller Ai based on Ai flag - #2816
Merged
Merged
Conversation
修改了原来的checkAiAssistantEnabled();
xudongwu-0
force-pushed
the
report-ai-pr
branch
2 times, most recently
from
September 4, 2024 04:56
ec3c6c4 to
c74cb25
Compare
xudongwu-0
force-pushed
the
report-ai-pr
branch
from
September 5, 2024 02:21
c74cb25 to
7c5ba24
Compare
xudongwu-0
force-pushed
the
report-ai-pr
branch
from
September 5, 2024 03:21
043432c to
0aaeca4
Compare
bobbai00
reviewed
Sep 5, 2024
xudongwu-0
force-pushed
the
report-ai-pr
branch
from
September 18, 2024 12:55
e0c5d2e to
b1d8bb9
Compare
xudongwu-0
force-pushed
the
report-ai-pr
branch
from
September 18, 2024 13:04
56375bc to
03869fd
Compare
make it general
xudongwu-0
force-pushed
the
report-ai-pr
branch
from
September 30, 2024 21:00
c9ff813 to
1aa0a06
Compare
xudongwu-0
force-pushed
the
report-ai-pr
branch
from
October 9, 2024 17:32
d999ca6 to
8748018
Compare
bobbai00
reviewed
Oct 9, 2024
bobbai00
left a comment
Contributor
There was a problem hiding this comment.
Add another batch of comments
xudongwu-0
force-pushed
the
report-ai-pr
branch
from
October 9, 2024 21:22
7ae6bf3 to
3c3323c
Compare
bobbai00
reviewed
Oct 10, 2024
bobbai00
approved these changes
Oct 14, 2024
bobbai00
left a comment
Contributor
There was a problem hiding this comment.
Left one minor comment. LGTM!
xudongwu-0
force-pushed
the
report-ai-pr
branch
from
October 14, 2024 19:56
bb18e2d to
38284f3
Compare
xudongwu-0
force-pushed
the
report-ai-pr
branch
from
October 15, 2024 21:08
bd8bf09 to
6e08d4a
Compare
chenlica
approved these changes
Oct 15, 2024
chenlica
left a comment
Contributor
There was a problem hiding this comment.
Jiadong and I met and discussed the details of the PR. It looks good to me.
xudongwu-0
force-pushed
the
report-ai-pr
branch
from
October 15, 2024 21:33
f55bc18 to
8704a2e
Compare
xudongwu-0
force-pushed
the
report-ai-pr
branch
from
October 15, 2024 21:37
0d5727e to
d90365d
Compare
PurelyBlank
pushed a commit
that referenced
this pull request
Dec 4, 2024
#2816) This PR enhances the report generation functionality by addingStory-teller Ai based on Ai flag. This PR is a continuation and enhancement of the previous PR: Adding a button to generate a report for a workflow: #2770 Enhancing Report Generation by adding Operator Results: #2792 Enhancing Report Generation by Adding Operator Json and Comments Section : #2807 Ai Flag: #2818 and #2808 **New Methods:** checkAiAssistantEnabled(): Validates whether the AI Assistant feature is enabled by checking the availability of the required API key. This function ensures that subsequent AI-based functionalities are executed only when the AI Assistant is available. generateComment(operatorInfo: any): Generates insightful comments for each operator using OpenAI’s GPT model, tailored for a highly educated audience but one that might not have deep statistical knowledge. The comments are plain text, enhancing the overall readability and value of the report. generateSummaryComment(operatorInfo: any): Produces a concise, insightful summary comment that highlights key findings, trends, and areas of improvement across the workflow, focusing particularly on UDFs. This function is crucial for providing a comprehensive understanding of the workflow to users. **Enhanced Methods:** retrieveOperatorInfoReport(operatorId: string, allResults: { operatorId: string; html: string }[]): Implements the checkAiAssistantEnabled, generateComment, and generateSummaryComment functions to enrich the operator information section in the generated reports. The function now adds a "Toggle Detail" button beneath each operator, allowing users to expand and view the operator’s corresponding JSON, formatted using a JSON viewer. Additionally, a comments section is added below each operator, enabling users to leave or view AI-generated comments. generateReportAsHtml(workflowSnapshot: string, allResults: string[], workflowName: string): Generates a comprehensive HTML file containing the workflow snapshot, all operator results, operator details, and comments. This method integrates AI-generated comments and a summary section at the end of the report. It also introduces a "Download Workflow JSON" button, allowing users to download the entire workflow JSON file directly from the report. **Operation Process:** Click the button below to generate the report with detailed operator results and the workflow snapshot.  To turn on the ai feature, you need to modify the following sections in application.udf  For example, to turn on the openai:  Here is a part of the example report.  
SarahAsad23
pushed a commit
to madisonmlin/texera
that referenced
this pull request
May 20, 2026
apache#2816) This PR enhances the report generation functionality by addingStory-teller Ai based on Ai flag. This PR is a continuation and enhancement of the previous PR: Adding a button to generate a report for a workflow: apache#2770 Enhancing Report Generation by adding Operator Results: apache#2792 Enhancing Report Generation by Adding Operator Json and Comments Section : apache#2807 Ai Flag: apache#2818 and apache#2808 **New Methods:** checkAiAssistantEnabled(): Validates whether the AI Assistant feature is enabled by checking the availability of the required API key. This function ensures that subsequent AI-based functionalities are executed only when the AI Assistant is available. generateComment(operatorInfo: any): Generates insightful comments for each operator using OpenAI’s GPT model, tailored for a highly educated audience but one that might not have deep statistical knowledge. The comments are plain text, enhancing the overall readability and value of the report. generateSummaryComment(operatorInfo: any): Produces a concise, insightful summary comment that highlights key findings, trends, and areas of improvement across the workflow, focusing particularly on UDFs. This function is crucial for providing a comprehensive understanding of the workflow to users. **Enhanced Methods:** retrieveOperatorInfoReport(operatorId: string, allResults: { operatorId: string; html: string }[]): Implements the checkAiAssistantEnabled, generateComment, and generateSummaryComment functions to enrich the operator information section in the generated reports. The function now adds a "Toggle Detail" button beneath each operator, allowing users to expand and view the operator’s corresponding JSON, formatted using a JSON viewer. Additionally, a comments section is added below each operator, enabling users to leave or view AI-generated comments. generateReportAsHtml(workflowSnapshot: string, allResults: string[], workflowName: string): Generates a comprehensive HTML file containing the workflow snapshot, all operator results, operator details, and comments. This method integrates AI-generated comments and a summary section at the end of the report. It also introduces a "Download Workflow JSON" button, allowing users to download the entire workflow JSON file directly from the report. **Operation Process:** Click the button below to generate the report with detailed operator results and the workflow snapshot.  To turn on the ai feature, you need to modify the following sections in application.udf  For example, to turn on the openai:  Here is a part of the example report.  
yangzhang75
pushed a commit
to yangzhang75/texera
that referenced
this pull request
Jun 22, 2026
apache#2816) This PR enhances the report generation functionality by addingStory-teller Ai based on Ai flag. This PR is a continuation and enhancement of the previous PR: Adding a button to generate a report for a workflow: apache#2770 Enhancing Report Generation by adding Operator Results: apache#2792 Enhancing Report Generation by Adding Operator Json and Comments Section : apache#2807 Ai Flag: apache#2818 and apache#2808 **New Methods:** checkAiAssistantEnabled(): Validates whether the AI Assistant feature is enabled by checking the availability of the required API key. This function ensures that subsequent AI-based functionalities are executed only when the AI Assistant is available. generateComment(operatorInfo: any): Generates insightful comments for each operator using OpenAI’s GPT model, tailored for a highly educated audience but one that might not have deep statistical knowledge. The comments are plain text, enhancing the overall readability and value of the report. generateSummaryComment(operatorInfo: any): Produces a concise, insightful summary comment that highlights key findings, trends, and areas of improvement across the workflow, focusing particularly on UDFs. This function is crucial for providing a comprehensive understanding of the workflow to users. **Enhanced Methods:** retrieveOperatorInfoReport(operatorId: string, allResults: { operatorId: string; html: string }[]): Implements the checkAiAssistantEnabled, generateComment, and generateSummaryComment functions to enrich the operator information section in the generated reports. The function now adds a "Toggle Detail" button beneath each operator, allowing users to expand and view the operator’s corresponding JSON, formatted using a JSON viewer. Additionally, a comments section is added below each operator, enabling users to leave or view AI-generated comments. generateReportAsHtml(workflowSnapshot: string, allResults: string[], workflowName: string): Generates a comprehensive HTML file containing the workflow snapshot, all operator results, operator details, and comments. This method integrates AI-generated comments and a summary section at the end of the report. It also introduces a "Download Workflow JSON" button, allowing users to download the entire workflow JSON file directly from the report. **Operation Process:** Click the button below to generate the report with detailed operator results and the workflow snapshot.  To turn on the ai feature, you need to modify the following sections in application.udf  For example, to turn on the openai:  Here is a part of the example report.  
This was referenced Oct 22, 2026
renovate-bot
pushed a commit
to renovate-bot/apache-_-texera
that referenced
this pull request
Oct 24, 2026
) ### What changes were proposed in this PR? Removes three unused members from `ReportGenerationService`: the private `isAIAssistantEnabled` field, the injected `http: HttpClient`, and the `AI_ASSISTANT_API_BASE_URL` constant. The now-unused `HttpClient` and `AppSettings` imports go too. **+2/−11 lines.** There is no behaviour change. Nothing reads any of them, and nothing builds the service by hand; Angular DI creates it, so dropping a constructor parameter is safe. The spec drops its empty `HttpClient` stub, whose comment already noted that `http` is "injected by the service and never used". ### History | | | | --- | --- | | **Introduced by** | apache#2816 (2024-10-15), "Enhancing Report Generation by Adding Story-teller Ai based on Ai flag", which added all three to this service. Its HTTP calls live in `AiAnalystService` | | **Usage removed by** | **never used** | They have been unused for the two years since they were added. ### Any related issues, documentation, discussions? Closes apache#9084 ### How was this PR tested? No new tests. From `frontend/`: - `npx ng test --watch=false --include='**/report-generation.service.spec.ts' --include='**/menu.component.spec.ts'`: 2 files, 169 tests, all pass. These are the only specs that provide or inject the service. - `npx tsc --noEmit -p src/tsconfig.app.json` and `-p src/tsconfig.spec.json`: clean. - `yarn format:ci`: clean. - `npx ng build`: success. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (Claude Opus 5.5) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
renovate-bot
pushed a commit
to renovate-bot/apache-_-texera
that referenced
this pull request
Oct 25, 2026
…9112) ### What changes were proposed in this PR? Removes `AiAnalystService`'s unused `workflowActionService` constructor injection and its import. **+2/−9 lines.** There is no behaviour change. The field is public, but nothing reads it: not the service, its one consumer `ReportGenerationService` (which uses its own `WorkflowActionService`), any template or any spec. Nothing builds the service by hand; Angular DI creates it, and `WorkflowActionService` is provided in root, so dropping the parameter is safe. The spec drops its empty `WorkflowActionService` stub, whose comment already said it existed only for this unused dependency. ### History | | | | --- | --- | | **Introduced by** | apache#2816 (2024-10-15), "Enhancing Report Generation by Adding Story-teller Ai based on Ai flag" | | **Usage removed by** | **never used** | It has been unused for the two years since it was added. ### Any related issues, documentation, discussions? Closes apache#9109 ### How was this PR tested? No new tests. From `frontend/`: - `npx ng test --watch=false --include='**/ai-analyst.service.spec.ts' --include='**/report-generation.service.spec.ts' --include='**/menu.component.spec.ts'`: 3 files, 178 tests, all pass. The last two specs cover the service's consumer. - `npx tsc --noEmit -p src/tsconfig.app.json` and `-p src/tsconfig.spec.json`: clean. - `yarn format:ci`: clean. - `npx ng build`: success. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (Claude Opus 5.5) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR enhances the report generation functionality by addingStory-teller Ai based on Ai flag. This PR is a continuation and enhancement of the previous PR:
Adding a button to generate a report for a workflow: #2770
Enhancing Report Generation by adding Operator Results: #2792
Enhancing Report Generation by Adding Operator Json and Comments Section : #2807
Ai Flag: #2818 and #2808
New Methods:
checkAiAssistantEnabled():
Validates whether the AI Assistant feature is enabled by checking the availability of the required API key. This function ensures that subsequent AI-based functionalities are executed only when the AI Assistant is available.
generateComment(operatorInfo: any):
Generates insightful comments for each operator using OpenAI’s GPT model, tailored for a highly educated audience but one that might not have deep statistical knowledge. The comments are plain text, enhancing the overall readability and value of the report.
generateSummaryComment(operatorInfo: any):
Produces a concise, insightful summary comment that highlights key findings, trends, and areas of improvement across the workflow, focusing particularly on UDFs. This function is crucial for providing a comprehensive understanding of the workflow to users.
Enhanced Methods:
retrieveOperatorInfoReport(operatorId: string, allResults: { operatorId: string; html: string }[]):
Implements the checkAiAssistantEnabled, generateComment, and generateSummaryComment functions to enrich the operator information section in the generated reports. The function now adds a "Toggle Detail" button beneath each operator, allowing users to expand and view the operator’s corresponding JSON, formatted using a JSON viewer. Additionally, a comments section is added below each operator, enabling users to leave or view AI-generated comments.
generateReportAsHtml(workflowSnapshot: string, allResults: string[], workflowName: string):
Generates a comprehensive HTML file containing the workflow snapshot, all operator results, operator details, and comments. This method integrates AI-generated comments and a summary section at the end of the report. It also introduces a "Download Workflow JSON" button, allowing users to download the entire workflow JSON file directly from the report.
Operation Process:

Click the button below to generate the report with detailed operator results and the workflow snapshot.
To turn on the ai feature, you need to modify the following sections in application.udf

For example, to turn on the openai:

Here is a part of the example report.

