FlatFilers / Guides

Flatfile's Documentation
7 stars 20 forks source link

Add multiple agents info #1132

Closed meritmalling closed 2 months ago

meritmalling commented 2 months ago

Summary by CodeRabbit

coderabbitai[bot] commented 2 months ago

Walkthrough

The changes in this update enhance the flexibility of deploying and updating agents in the system, focusing on managing multiple agents within the same environment to prevent conflicts and streamline event handling.

Changes

File Path Change Summary
developer-tools/deploying.mdx Introduces redeployment with specified slugs to manage multiple agents, enhancing deployment flexibility.
orchestration/listeners.mdx Refines event handling descriptions and instructions, emphasizing configurability and conflict avoidance strategies for multiple agents.

Possibly related issues


Recent Review Details **Configuration used: CodeRabbit UI** **Review profile: CHILL**
Commits Files that changed from the base of the PR and between f2cd3081b3123702c2c929d9bd7e52be974591ee and 29fd13e81e289773cfe7620484e5a7a6d8f987f6.
Files selected for processing (1) * orchestration/listeners.mdx (3 hunks)
Additional Context Used
LanguageTool (45)
orchestration/listeners.mdx (45)
Near line 9: Possible spelling mistake found. Context: ...istener? Listeners are the core of the Flatfile Platform. All of your configurations, f... --- Near line 9: Possible spelling mistake found. Context: ...tener. They hold the logic backing your Flatfile Spaces, defining the functionality of y... --- Near line 14: Possible spelling mistake found. Context: ...f an Event. ## An Event-Driven System Flatfile is an event-driven system, meaning inte... --- Near line 15: Possible spelling mistake found. Context: ...riven system, meaning interactions with Flatfile (clicking a button, editing a record, u... --- Near line 15: In American English, abbreviations like “etc.” require a period. Context: ...on, editing a record, uploading a file, etc) trigger the publication of an [Event](... --- Near line 19: Possible typo: you repeated a whitespace Context: ... and optionally, a payload. | Component | Description ... --- Near line 19: Possible typo: you repeated a whitespace Context: ...oad. | Component | Description | Example ... --- Near line 19: Possible typo: you repeated a whitespace Context: ... | Example | | ------------------ | ---------------... --- Near line 21: Possible typo: you repeated a whitespace Context: ...----------------------------- | | Domain | the jurisdiction of the event ... --- Near line 21: Possible typo: you repeated a whitespace Context: ... | the jurisdiction of the event | record, sheet, workbook, space, file, ... --- Near line 21: Possible typo: you repeated a whitespace Context: ...sheet, workbook, space, file, job, agent | | Topic | a combination o... --- Near line 22: Possible typo: you repeated a whitespace Context: ..., job, agent | | Topic | a combination of a domain and an actio... --- Near line 22: Possible typo: you repeated a whitespace Context: ... a combination of a domain and an action | `workbook:created` `workbook:updated` ... --- Near line 22: Possible typo: you repeated a whitespace Context: ...d` `workbook:updated` `workbook:deleted` | | Context | detailed inform... --- Near line 23: Possible typo: you repeated a whitespace Context: ...`workbook:deleted` | | Context | detailed information about context of ... --- Near line 23: Possible typo: you repeated a whitespace Context: ...d information about context of the event |
`{ spaceId: "us_sp_1234", fileId:...

---

Near line 23: Don’t put a space before the closing parenthesis.
Context: ...ormation about context of the event   | 
`{ spaceId: "us_sp_1234", fileId: "us_fl_1234", ... }`
| | Payload (optional) | detail... --- Near line 23: Possible typo: you repeated a whitespace Context: ...234", fileId: "us_fl_1234", ... }`
| | Payload (optional) | detailed inform... --- Near line 24: Don’t put a space before the closing parenthesis. Context: ...ormation about execution of the event |
`{ status: "complete", workbookId: "us_wb_1234", ... }`
| # Anatomy of a Listener A Li... --- Near line 58: The words ‘to are’ do not usually occur together. Consider replacing them with one of the suggestions. Context: ...but the Events that a Listener responds to are configurable. You can target which even... --- Near line 156: Possible spelling mistake found. Context: ...d everywhere from your local machine to Flatfile's secure cloud. The location of your li... --- Near line 158: Possible typo: you repeated a whitespace Context: ... the type of listener it is. | Listener | Location | Description ... --- Near line 158: Possible typo: you repeated a whitespace Context: ...istener it is. | Listener | Location | Description |... --- Near line 158: Possible typo: you repeated a whitespace Context: ... | Location | Description | | ----------- | --------------------- ... --- Near line 160: Possible typo: you repeated a whitespace Context: ...---- | | development | developer machine | local listener for development |... --- Near line 160: Possible typo: you repeated a whitespace Context: ...ine | local listener for development | | client-side | user machine ... --- Near line 161: Possible typo: you repeated a whitespace Context: ...ent | | client-side | user machine | browser embedded listener |... --- Near line 161: Possible typo: you repeated a whitespace Context: ...ine | browser embedded listener | | Agent | Flatfile secure cloud ... --- Near line 162: Possible typo: you repeated a whitespace Context: ...r embedded listener | | Agent | Flatfile secure cloud | Flatfile hoste... --- Near line 162: Possible spelling mistake found. Context: ...d listener | | Agent | Flatfile secure cloud | Flatfile hosted server-s... --- Near line 162: Possible spelling mistake found. Context: ...| Agent | Flatfile secure cloud | Flatfile hosted server-side listener | | server-... --- Near line 163: Possible typo: you repeated a whitespace Context: ...ner | | server-side | your secure server | self-hosted server-side listener |... --- Near line 163: Possible typo: you repeated a whitespace Context: ...er | self-hosted server-side listener | Flatfile Listeners can be either clie... --- Near line 164: Possible spelling mistake found. Context: ...self-hosted server-side listener | Flatfile Listeners can be either client-side or ... --- Near line 169: Please check whether ‘were’ (second-person singular simple past of ‘be’, e.g. ‘you were’) might be the correct word here instead of ‘where’ (at what place, e.g. ‘Where are you?’). Context: ...nt page URL. Server-side listeners run where deployed, either on your own servers or... --- Near line 169: Possible spelling mistake found. Context: ...loyed, either on your own servers or on Flatfile's secure cloud, and can perform more co... --- Near line 175: Possible spelling mistake found. Context: ... of a server environment. ## Agent In Flatfile, an Agent refers to a server-side liste... --- Near line 175: Possible spelling mistake found. Context: ...r-side listener bundled and deployed to Flatfile to be hosted in our secure cloud. You ... --- Near line 195: After the expression ‘for example’ a comma is usually used. Context: ... listener is configured to act on. For example if your listener code only listens to `... --- Near line 207: Use a comma before ‘and’ if it connects two independent clauses (unless they are closely connected and short). Context: ...ame Environment. If no slug is provided and you already have a single Agent deploye... --- Near line 209: A comma might be missing here. Context: ... to the same environment and no slug is provided the CLI will prompt you to select which... --- Near line 211: Possible spelling mistake found. Context: ...ke to update. Please see [Deploying to Flatfile](/developer-tools/deploying) for more i... --- Near line 216: Possible spelling mistake found. Context: ...g an Agent. ## Agent Logs When using Flatfile's secure cloud to host your listener, y... --- Near line 224: Consider removing ‘would’. (Usually, ‘would’ does not occur in a conditional clause, unless to make a request or give a polite order.) Context: ... will not be marked as failures. If you would prefer to see them marked this way, re-throw y... --- Near line 257: Possible spelling mistake found. Context: ...p> ## Learn More Learn more about the Flatfile Platform in our other concept guides: ...
Additional comments not posted (3)
orchestration/listeners.mdx (3)
`55-61`: > :memo: **NOTE** > This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [58-134] The updates to event filtering and the use of namespaces are well-explained and demonstrated with clear examples. --- `175-210`: The section on managing multiple agents provides essential strategies for conflict avoidance and effective deployment, which are crucial for maintaining system integrity when scaling. --- `195-211`: The deployment instructions are comprehensive and include important details for managing multiple agents, enhancing the deployment flexibility as intended by the PR.
---
Tips ### Chat There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai): - Review comments: Directly reply to a review comment made by CodeRabbit. Example: - `I pushed a fix in commit .` - `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.` 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 a review. This is useful when automatic reviews are disabled for the repository. - `@coderabbitai resolve` resolve all the CodeRabbit review comments. - `@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](https://docs.coderabbit.ai/guides/configure-coderabbit) 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](https://coderabbit.ai/docs) for detailed information on how to use CodeRabbit. - Join our [Discord Community](https://discord.com/invite/GsXnASn26c) to get help, request features, and share feedback. - Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.