mirror of
https://github.com/lldap/lldap.git
synced 2026-04-25 16:25:55 +03:00
[PR #617] [MERGED] Add a graphql method to get the schema #853
Labels
No labels
backend
blocked
bug
cleanup
dependencies
docker
documentation
duplicate
enhancement
enhancement
frontend
github_actions
good first issue
help wanted
help wanted
integration
invalid
ldap
pull-request
question
rust
rust
tests
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/lldap-lldap#853
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/lldap/lldap/pull/617
Author: @nitnelave
Created: 7/4/2023
Status: ✅ Merged
Merged: 7/10/2023
Merged by: @nitnelave
Base:
main← Head:schema📝 Commits (2)
765b8f9server,ldap: add encoding for lists and integers3222c38server,graphql: Add a GraphQL method to get the schema📊 Changes
9 files changed (+608 additions, -160 deletions)
View changed files
📝
schema.graphql(+19 -0)📝
server/src/domain/handler.rs(+0 -43)📝
server/src/domain/ldap/utils.rs(+38 -9)📝
server/src/infra/access_control.rs(+13 -8)📝
server/src/infra/graphql/query.rs(+328 -2)📝
server/src/infra/ldap_handler.rs(+2 -98)📝
server/src/infra/mod.rs(+4 -0)➕
server/src/infra/schema.rs(+104 -0)➕
server/src/infra/test_utils.rs(+100 -0)📄 Description
I chose to decouple the domain-level configurable attributes, and the public-viewable schema which includes the attributes that are not stored as "user attributes". All the "hardcoded" attributes will be available as fields from grahpql, and the non-hardcoded will be only in the "user_attributes" (coming) field.
In terms of permissions, only users who have the permissions to see all the users (admin, password manager or readonly) can see the schema. Regular users cannot (they wouldn't have much use for it, and that way I don't have to filter the fields they're not allowed to see).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.