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

document script tasks #1890

Merged
merged 1 commit into from
Jul 8, 2024
Merged

document script tasks #1890

merged 1 commit into from
Jul 8, 2024

Conversation

burnettk
Copy link
Contributor

@burnettk burnettk commented Jul 8, 2024

thank you @fharmusial, much of this content was taken directly from the issue you filed, #1882

FYI, @usama9500

Summary by CodeRabbit

  • Documentation
    • Expanded Script Tasks documentation to include capabilities, restrictions, and a list of available custom functions.
    • Updated FAQ with new and revised entries on using SpiffWorkflow, integrating workflows with Python, and more.
    • Added myst_heading_anchors setting to improve heading anchors in the documentation.

Copy link
Contributor

coderabbitai bot commented Jul 8, 2024

Walkthrough

Walkthrough

The recent changes improve the documentation, adding new functions for script tasks, enhancing FAQ entries, and updating settings in the conf.py file. The new custom functions allow more effective script task handling, while updated FAQs and configurations aim to assist users in simplifying workflows and integration processes.

Changes

File Path Change Summary
docs/Building_Diagrams/Script_Tasks.md Added details about what can and cannot be done in Script Tasks. Listed new custom functions available for script tasks.
docs/Support/FAQ.md Added and modified FAQ entries related to running SpiffWorkflow, integrating workflows with Python code, and other common support topics.
docs/conf.py Added myst_heading_anchors with value 2 to enhance heading anchors behavior in the documentation.

Sequence Diagram(s)

The changes are predominantly documentation updates and do not directly impact control flow or add new functionalities that would necessitate sequence diagrams.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Outside diff range and nitpick comments (4)
docs/Building_Diagrams/Script_Tasks.md (1)

118-123: Clarify the JSON serializable requirement.

The note about variables needing to be JSON serializable is important. Consider expanding this section with examples of common non-serializable types and how to handle them.

-  As such, they must be JSON serializable. This means that you can't store sets, for example.
+  As such, they must be JSON serializable. For example, you can't store sets or complex objects. If you need to store such data, consider converting it to a serializable format (e.g., lists, dictionaries).
docs/Support/FAQ.md (3)

6-6: Clarify the setup instructions.

The instructions for running SpiffWorkflow within PyCharm could benefit from more detail or a direct link to a detailed guide.

-  For detailed settings, refer to the provided screenshot of Flask server details.
+  For detailed settings, refer to the provided screenshot of Flask server details. Additionally, you can follow the step-by-step guide available [here](link_to_guide).

16-16: Clarify the use of connectors.

The section mentions using a service task for email but could benefit from a brief explanation of what a connector proxy is.

-  If you're using SpiffArena, a connector proxy can provide a nice integration into the UI.
+  If you're using SpiffArena, a connector proxy (a middleware that facilitates communication between SpiffWorkflow and external services) can provide a seamless integration into the UI.

45-45: Provide direct links to references.

Consider providing direct links to the referenced articles and videos for easier access.

-  Here are some references to help you understand and implement "Data Object Reference" and "Data Store Reference" in SpiffWorkflow:
+  Here are some references to help you understand and implement "Data Object Reference" and "Data Store Reference" in SpiffWorkflow:
+  - [Understanding BPMN's Data Objects with SpiffWorkflow](https://medium.com/@danfunk/understanding-bpmns-data-objects-with-spiffworkflow-26e195e23398)
+  - [Data Encapsulation with SpiffWorkflow Video](https://youtu.be/0_PgaaI3WIg)
Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between e784bf3 and a753aa0.

Files selected for processing (3)
  • docs/Building_Diagrams/Script_Tasks.md (2 hunks)
  • docs/Support/FAQ.md (20 hunks)
  • docs/conf.py (1 hunks)
Files skipped from review due to trivial changes (1)
  • docs/conf.py
Additional context used
LanguageTool
docs/Building_Diagrams/Script_Tasks.md

[style] ~136-~136: As an alternative to the over-used intensifier ‘very’, consider replacing this phrase.
Context: ... Returns the encoded file data. This is a very expensive call. ...

(EN_WEAK_ADJECTIVE)


[grammar] ~148-~148: Did you mean the formatting language “Markdown” (= proper noun)?
Context: ...le_download_link | Returns a markdown format string for a file download link....

(MARKDOWN_NNP)

docs/Support/FAQ.md

[style] ~244-~244: This phrase is redundant. Consider using “outside”.
Context: ... IO Extensions**: If you prefer to work outside of SpiffArena, you can use the BPMN IO ext...

(OUTSIDE_OF)


[style] ~245-~245: Style-wise, it’s not ideal to insert an adverb (‘effectively’) in the middle of an infinitive construction (‘to integrate’). Try moving the adverb to avoid split infinitives.
Context: ...his documentation will guide you on how to effectively integrate service tasks into your workflow. 4. **Defining Custo...

(SPLIT_INFINITIVE)

Markdownlint
docs/Support/FAQ.md

226-226: null
Spaces inside code span elements

(MD038, no-space-in-code)


267-267: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

Additional comments not posted (3)
docs/Building_Diagrams/Script_Tasks.md (2)

125-152: Correct weak adjective usage.

The phrase "very expensive call" can be improved for clarity.
[style]

-  Returns the encoded file data. This is a very expensive call.
+  Returns the encoded file data. This call is computationally intensive.
Tools
LanguageTool

[style] ~136-~136: As an alternative to the over-used intensifier ‘very’, consider replacing this phrase.
Context: ... Returns the encoded file data. This is a very expensive call. ...

(EN_WEAK_ADJECTIVE)


[grammar] ~148-~148: Did you mean the formatting language “Markdown” (= proper noun)?
Context: ...le_download_link | Returns a markdown format string for a file download link....

(MARKDOWN_NNP)


148-148: Capitalize 'Markdown'.

The term "markdown" should be capitalized as "Markdown".
[grammar]

-  Returns a markdown format string for a file download link.
+  Returns a Markdown format string for a file download link.
Tools
LanguageTool

[grammar] ~148-~148: Did you mean the formatting language “Markdown” (= proper noun)?
Context: ...le_download_link | Returns a markdown format string for a file download link....

(MARKDOWN_NNP)

docs/Support/FAQ.md (1)

226-226: Remove spaces inside code span elements.

There are spaces inside the code span elements that should be removed.
[style]

-  'SPIFFWORKFLOW_BACKEND_PERMISSIONS_FILE_NAME: "example.yml"`
+  `SPIFFWORKFLOW_BACKEND_PERMISSIONS_FILE_NAME: "example.yml"`
Tools
Markdownlint

226-226: null
Spaces inside code span elements

(MD038, no-space-in-code)

@burnettk burnettk merged commit 5f8f42c into main Jul 8, 2024
24 checks passed
@burnettk burnettk deleted the document-script-tasks branch July 8, 2024 18:23
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