Skip to content

Conversation

Siddhant-K-code
Copy link
Member

@Siddhant-K-code Siddhant-K-code commented Jun 16, 2025

Description

  • Update configuration documentation to reference v1.8.16
  • Update resolveNodeBreadthLimit default value from 100 to 10
  • Update dependencies to latest versions

References

Review Checklist

Summary by CodeRabbit

  • Documentation

    • Updated OpenFGA configuration documentation to reflect version 1.8.16 changes, including new options for secondary datastore connections and iterator cache features.
    • Revised default values and reorganized configuration sections for clarity.
  • Chores

    • Upgraded multiple dependencies to their latest versions for improved stability and compatibility.
  • Chores

    • Enhanced deployment workflow with explicit permissions and automated commits of updated documentation files.

- Update configuration documentation to reference v1.8.15
- Update resolveNodeBreadthLimit default value from 100 to 10
- Update dependencies to latest versions
@Siddhant-K-code Siddhant-K-code requested review from a team as code owners June 16, 2025 07:25
Copy link

socket-security bot commented Jun 16, 2025

No dependency changes detected. Learn more about Socket for GitHub.

👍 No dependency changes detected in pull request

aaguiarz
aaguiarz previously approved these changes Jun 18, 2025
@ewanharris
Copy link
Member

@Siddhant-K-code the config update script does get run as part of the build process which runs nightly so we do have the latest v1.8.16 config out now which unfortunately makes the contents of this PR outdated,

What do you think about reworking this PR to integrate something like stefanzweifel/git-auto-commit-action so that the rebuild in CI is then pushed back to the repo?

Copy link
Contributor

coderabbitai bot commented Jun 23, 2025

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

## Walkthrough

The changes update OpenFGA configuration documentation to reflect version 1.8.16, adding new datastore and cache options, revising defaults, and reordering configuration sections. Additionally, project dependencies in `package.json` are upgraded, including Docusaurus, OpenFGA SDK, and various TypeScript and linting packages. The GitHub Actions deployment workflow was enhanced with explicit permissions and an auto-commit step for updated documentation. No code or public API changes are present.

## Changes

| File(s)                                         | Change Summary                                                                                       |
|------------------------------------------------|----------------------------------------------------------------------------------------------------|
| docs/content/getting-started/setup-openfga/configuration.mdx | Updated OpenFGA configuration documentation to v1.8.16: added secondary datastore and cache options, changed default values, reordered options, and updated version references. |
| package.json                                    | Upgraded dependencies: Docusaurus (3.7.0→3.8.1), OpenFGA SDK (^0.8.1→^0.9.0), TypeScript, linting, and other packages.                    |
| .github/workflows/deploy.yml                    | Added explicit permissions for deployment job and a new step to auto-commit updated Markdown docs after build.                         |

## Sequence Diagram(s)

*No sequence diagrams generated as the changes are limited to documentation, dependency updates, and CI workflow enhancements.*

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ 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>, please review it.
    • Explain this complex logic.
    • 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 explain this code block.
    • @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 gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @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.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

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 using 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 generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this 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.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration 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: 1

🧹 Nitpick comments (1)
docs/content/getting-started/setup-openfga/configuration.mdx (1)

202-202: Add description and default for sharedIterator

The sharedIterator row is missing Type, Description, and Default Value. Please verify whether this option is supported in the schema and populate the table accordingly or remove it if it’s not valid.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 3f4d874 and 4f6d6a1.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (2)
  • docs/content/getting-started/setup-openfga/configuration.mdx (4 hunks)
  • package.json (2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (5)
  • GitHub Check: Socket Security: Pull Request Alerts
  • GitHub Check: Test deployment
  • GitHub Check: markdown-link-check-md
  • GitHub Check: Run Checks
  • GitHub Check: markdown-link-check
🔇 Additional comments (6)
docs/content/getting-started/setup-openfga/configuration.mdx (3)

119-119: Correct default for resolveNodeBreadthLimit

The default value is accurately set to 10 according to the v1.8.15 schema.


137-141: Document secondary datastore connection parameters

The added entries for datastore.secondaryUri, datastore.secondaryUsername, and datastore.secondaryPassword correctly reflect the new secondary‐datastore fields in config-schema v1.8.15.


191-197: ListObjects iterator cache and dispatch throttling options

The listObjectsIteratorCache and updated listObjectsDispatchThrottling fields match the v1.8.15 schema changes.

package.json (3)

28-31: Upgrade core and OpenFGA SDK dependencies

The @docusaurus/* packages and @openfga/sdk have been bumped to their latest versions, aligning the docs site with OpenFGA v1.8.15. The version changes look correct.

Also applies to: 34-34


43-44: Bump sanitize-html and swagger-ui-react

Upgrading these packages to newer minor releases improves security and feature support.


47-57: Update devDependencies for TypeScript and ESLint

Dev dependencies (@typescript-eslint, eslint, @types/react, etc.) have been updated to match Docusaurus v3.8.1 and modern linting requirements. Please verify that CI lint and type-check tasks pass after these upgrades.

@Siddhant-K-code
Copy link
Member Author

@ewanharris, I've updated it in 42e947a

@Siddhant-K-code Siddhant-K-code changed the title docs: update OpenFGA configuration for v1.8.15 docs: update OpenFGA configuration for v1.8.16 & CI automation Jun 23, 2025
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

🧹 Nitpick comments (1)
.github/workflows/deploy.yml (1)

41-49: Refine the auto-commit step

  • Narrow the file pattern to only target docs (docs/content/**/*.mdx) to avoid unintended commits.
  • Add skip_empty_commit: true (or the correct field name per your action version) to prevent empty commits when no docs have changed.

Apply this diff within lines 41–49:

-          file_pattern: '*.mdx'
+          file_pattern: 'docs/content/**/*.mdx'
+          skip_empty_commit: true
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 4f6d6a1 and 42e947a.

📒 Files selected for processing (2)
  • .github/workflows/deploy.yml (2 hunks)
  • docs/content/getting-started/setup-openfga/configuration.mdx (4 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • docs/content/getting-started/setup-openfga/configuration.mdx
⏰ Context from checks skipped due to timeout of 90000ms (3)
  • GitHub Check: deploy-preview
  • GitHub Check: markdown-link-check-md
  • GitHub Check: Test deployment
🔇 Additional comments (1)
.github/workflows/deploy.yml (1)

18-21: Ensure minimal required permissions
Verify whether each scope is strictly necessary. For example, if the auto-commit and Pages deployment steps don’t leverage OIDC, you can drop or reduce id-token: write to adhere to least-privilege principles.

"docusaurus-plugin-module-alias": "0.0.2",
"eslint": "8.57.0",
"eslint-config-prettier": "10.1.2",
"eslint": "9.29.0",
Copy link
Member

Choose a reason for hiding this comment

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

Looks like there's some migration needed as part of the eslint 9 update as the lint step in CI is now failing, I think we need to migrate the existing .eslintrc.json to eslint.config.js

ESLint: 9.29.0

ESLint couldn't find an eslint.config.(js|mjs|cjs) file.

Copy link
Member

@rhamzeh rhamzeh left a comment

Choose a reason for hiding this comment

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

@Siddhant-K-code do you think it would be OK to split this PR?

  1. updating to openfga 1.9.0
  2. adding the GH Action
  3. Updating the dependencies

1 and 3 should be easy to approve and merge (keeping in mind @ewanharris's comment re eslint v9), 2 still thinking about it

@Siddhant-K-code
Copy link
Member Author

Siddhant-K-code commented Jul 10, 2025

@ewanharris, @rhamzeh sure, i can split these PRs this weekend!

@Siddhant-K-code
Copy link
Member Author

@Siddhant-K-code Siddhant-K-code deleted the docs/update-openfga-v1.8.15 branch July 12, 2025 07:06
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.

4 participants