Skip to content

Improve application folder#6

Open
moutonjeremy wants to merge 7 commits intomainfrom
improve-application-folder
Open

Improve application folder#6
moutonjeremy wants to merge 7 commits intomainfrom
improve-application-folder

Conversation

@moutonjeremy
Copy link
Member

No description provided.

… logic

- Added ActionApplication for managing actions with methods to create, list, get, update, delete actions, and execute them based on triggers.
- Introduced DTOs for action inputs and outputs.
- Implemented action execution logic with step handling.
- Created DocumentApp for document management with necessary dependencies.
- Refactored favorite management into a separate FavoriteApp.
- Updated user application to utilize FavoriteApp for managing user favorites.
- Introduced ports for various application functionalities including action, document, favorite, and user management.
- Removed deprecated user favorite methods and integrated with the new FavoriteApp.
- Updated HTTP handlers and routes to accommodate new application structure.
- Changed `SpaceApp` to `SpaceApplication` and updated all related method signatures in the space package.
- Changed `UserApp` to `UserApplication` and updated all related method signatures in the user package.
- Introduced a new `WebhookApplication` struct and refactored all webhook-related methods accordingly.
- Updated dependency injection in the infrastructure layer to reflect the new struct names.
- Removed the old `webhook.go` file and split its functionality into multiple files for better organization.
- Updated PermissionApplication to use application ports for Space, Drawing, Document, and Database operations.
- Refactored UpsertDatabasePermission, UpsertDocumentUserPermission, and UpsertDrawingUserPermission methods to utilize new application ports.
- Introduced UpsertSpaceGroupPermission and updated UpsertSpaceUserPermission to leverage application ports.
- Added new DTOs for space permissions and document checks.
- Enhanced SpaceApplication to include PermissionApp and refactored space creation and deletion logic.
- Updated dependency injection in infrastructure and HTTP routers to accommodate new permission handling.
- Adjusted handlers in HTTP controllers for database, document, drawing, and space to utilize the new permission application methods.
- Updated references from `App` to `Application` for consistency across various controllers including Document, Drawing, Space, User, and Webhook.
- Adjusted method calls in handlers to align with the new naming convention.
- Ensured all instances of application references are updated to maintain code clarity and uniformity.
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.

1 participant