Skip to content

fix: update model viz to work with latest language#6

Open
Vic-Dev wants to merge 1 commit into
mainfrom
fix/bump-language
Open

fix: update model viz to work with latest language#6
Vic-Dev wants to merge 1 commit into
mainfrom
fix/bump-language

Conversation

@Vic-Dev

@Vic-Dev Vic-Dev commented Jul 7, 2026

Copy link
Copy Markdown

Description

What problem is being solved?

Latest language has updated types. Updated the language package and added the types so they can be rendered.

Old:
image (3)

New:
Screenshot 2026-07-07 at 5 05 25 PM

References

Review Checklist

  • I have clicked on "allow edits by maintainers".
  • I have added documentation for new/changed functionality in this PR or in a PR to openfga.dev [Provide a link to any relevant PRs in the references section above]
  • The correct base branch is being used, if not main
  • I have added tests to validate that the change in functionality is working as expected

Copilot AI review requested due to automatic review settings July 7, 2026 21:06
@Vic-Dev Vic-Dev requested a review from a team as a code owner July 7, 2026 21:06
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedgithub.com/​openfga/​language/​pkg/​go@​v0.2.0-beta.2.0.20250428093642-7aeebe78bbfe ⏵ v0.3.1100 +1100100100100

View full report

@socket-security

Copy link
Copy Markdown

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Action Severity Alert  (click "▶" to expand/collapse)
Warn High
License policy violation: golang gonum.org/v1/gonum under SunPro

License: SunPro - The applicable license policy does not permit this license (5) (THIRD_PARTY_LICENSES/Sun-LICENSE)

From: ?golang/github.com/openfga/language/pkg/go@v0.3.1golang/gonum.org/v1/gonum@v0.17.0

ℹ Read more on: This package | This alert | What is a license policy violation?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Find a package that does not violate your license policy or adjust your policy to allow this package's license.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore golang/gonum.org/v1/gonum@v0.17.0. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

View full report

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the model visualizer to stay compatible with the latest OpenFGA language package by aligning the backend’s translated node/edge types and updating the UI’s operator-node detection.

Changes:

  • Bump github.com/openfga/language/pkg/go to v0.3.1 and refresh related indirect dependencies.
  • Extend backend translation to emit updated node/edge type strings (including new logical grouping types).
  • Update the UI to treat "OperatorNode" as the operator node type.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 3 comments.

File Description
ui/index.html Updates operator-node detection to match the backend’s new NodeType string value.
cmd/main.go Updates translated node/edge type strings and adds support for new language graph node/edge variants.
go.mod Bumps Go version and updates the language dependency plus indirect requirements.
go.sum Updates dependency checksums consistent with the module upgrades.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread go.mod
Comment on lines +3 to +5
go 1.25.0

require github.com/openfga/language/pkg/go v0.2.0-beta.2.0.20250428093642-7aeebe78bbfe
require github.com/openfga/language/pkg/go v0.3.1
Comment thread cmd/main.go
Comment thread cmd/main.go
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.

3 participants