mirror of
https://github.com/lldap/lldap.git
synced 2026-04-25 16:25:55 +03:00
[PR #1086] [MERGED] server: move domain::types to separate domain crate #1110
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#1110
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/1086
Author: @broeng
Created: 1/24/2025
Status: ✅ Merged
Merged: 2/3/2025
Merged by: @nitnelave
Base:
main← Head:domain-module📝 Commits (6)
ae10019server: move domain::types to separate domain crate43fcd87server: move request types to domain crate9d7ee1dserver: move some schema related structs to domain crate7eef7aaserver: reorganize and collapse import groupsfe4ebb3server: remove some unnecessary dependenciesbbe8aa2domain: add authors field to Cargo.toml📊 Changes
47 files changed (+365 additions, -243 deletions)
View changed files
📝
Cargo.lock(+21 -2)📝
Cargo.toml(+6 -5)➕
crates/domain/Cargo.toml(+59 -0)➕
crates/domain/src/lib.rs(+3 -0)➕
crates/domain/src/requests.rs(+53 -0)➕
crates/domain/src/schema.rs(+39 -0)📝
crates/domain/src/types.rs(+4 -5)📝
server/Cargo.toml(+12 -11)📝
server/src/domain/deserialize.rs(+1 -1)📝
server/src/domain/handler.rs(+11 -90)📝
server/src/domain/ldap/group.rs(+3 -1)📝
server/src/domain/ldap/user.rs(+4 -4)📝
server/src/domain/ldap/utils.rs(+4 -3)📝
server/src/domain/mod.rs(+0 -1)📝
server/src/domain/model/group_attribute_schema.rs(+2 -2)📝
server/src/domain/model/group_attributes.rs(+1 -1)📝
server/src/domain/model/group_object_classes.rs(+1 -1)📝
server/src/domain/model/groups.rs(+3 -3)📝
server/src/domain/model/jwt_refresh_storage.rs(+1 -1)📝
server/src/domain/model/jwt_storage.rs(+1 -1)...and 27 more files
📄 Description
Preparation for using basic type definitions in other upcoming modules, in particular for plugins. By moving these fundamental domain types to a separate module, it is possible to reuse them in other modules, that the primary server module will need to depend on.
Specific use case in mind is the plugin functionality, where it would be very convenient to be able to share the same domain types with the backend API offered to plugins, so they get the same types for Users, Groups, Attributes, etc., as everything else, thus avoiding a need for duplicate types and constant conversion from and to.
Took the liberty to create a modules folder for these. I think the root of the project is starting to get a bit cluttered, and with plugins, for instance, it can easily get a bit complicated to find where actual bundled plugins are located, the plugin implementation, etc.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.