8000 rename galaxy to root and guardian to superadmin by mangalaman93 · Pull Request #9396 · hypermodeinc/dgraph · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

rename galaxy to root and guardian to superadmin #9396

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

Merged
merged 2 commits into from
Apr 28, 2025
Merged

Conversation

mangalaman93
Copy link
Member

No description provided.

Base automatically changed from aman/go to main April 24, 2025 18:48
@github-actions github-actions bot< 8000 /span> added area/testing Testing related issues area/schema Issues related to the schema language and capabilities. area/graphql Issues related to GraphQL support on Dgraph. area/bulk-loader Issues related to bulk loading. area/live-loader Issues related to live loading. area/acl Related to Access Control Lists area/core internal mechanisms go Pull requests that update Go code labels Apr 24, 2025
@mangalaman93 mangalaman93 marked this pull request as ready for review April 24, 2025 18:59
@Copilot Copilot AI review requested due to automatic review settings April 24, 2025 18:59
@mangalaman93 mangalaman93 requested a review from a team as a code owner April 24, 2025 18:59
Copy link
@Copilot Copilot AI left a comment

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 replaces references to “galaxy” with “root” and “guardian” with “superadmin” across the access authorization logic and tests. The changes update namespace constants, error messages, function names, and related test assertions.

  • Changed predicate prefix functions and namespace constants from Galaxy to Root.
  • Updated account upsert and authorization functions from Guardian to SuperAdmin.
  • Modified test files to use the new Root namespace and SuperAdmin identifiers.

Reviewed Changes

Copilot reviewed 101 out of 101 changed files in this pull request and generated no comments.

Show a summary per file
File Description
edgraph/access.go Renamed constant functions and error messages to use Root/SuperAdmin.
dgraphtest/local_cluster.go Updated login namespaces from Galaxy to Root.
dgraphtest/load.go Updated login namespaces from Galaxy to Root.
dgraph/cmd/zero/* Replaced Galaxy namespace usage with Root namespace in various handlers.
dgraph/cmd/live/run.go Modified logic and error messages to reflect superadmin usage.
dgraph/cmd/alpha/* and acl/* Updated login and messaging for ACL tests from Galaxy to Root.
Comments suppressed due to low confidence (1)

edgraph/access.go:1138

  • [nitpick] Consider updating the error message to use 'superadmin' instead of 'guardians' for consistency with the new naming convention.
s.Code(), "AuthSuperAdmin: failed to authorize guardians. " + s.Message()

@mangalaman93 mangalaman93 enabled auto-merge (squash) April 24, 2025 19:04
Copy link
trunk-io bot commented Apr 24, 2025

Static BadgeStatic BadgeStatic BadgeStatic Badge

Flaky Test Failure Summary Logs
TestLiveLoadAndExportRDFFormat Error reading from server: EOF Logs ↗︎

View Full Report ↗︎Docs

@mangalaman93 mangalaman93 merged commit 7893305 into main Apr 28, 2025
13 checks passed
@mangalaman93 mangalaman93 deleted the aman/root branch April 28, 2025 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/acl Related to Access Control Lists area/bulk-loader Issues related to bulk loading. area/core internal mechanisms area/graphql Issues related to GraphQL support on Dgraph. area/live-loader Issues related to live loading. area/schema Issues related to the schema language and capabilities. area/testing Testing related issues go Pull requests that update Go code
Development

Successfully merging this pull request may close these issues.

2 participants
0