-
Notifications
You must be signed in to change notification settings - Fork 6
Support filter condition #559
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
Conversation
…y capabilities in storage
… conditions into grouped filter options
…ting conditions into grouped filter options
…consolidated FilterByOptions for improved query handling
…lterByOptions for consistent query handling and improved maintainability
…andardize filtering logic and improve query consistency
PR Reviewer Guide 🔍(Review updated until commit fba1ccd)
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
… for improved clarity and maintainability
|
Persistent review updated to latest commit fba1ccd |
|
Failed to generate code suggestions for PR |
User description
关联的 issue
https://github.com/actiontech/dms-ee/issues/705
描述你的变更
确认项(pr提交后操作)
Tip
请在指定复审人之前,确认并完成以下事项,完成后✅
not_compatibleneed_update_docDescription
统一了所有模块的过滤条件构建方式
将原有的 FilterBy 替换为 FilterByOptions
新增辅助构造函数和 gormWheresWithOptions 方法构建组条件
优化各业务层和存储层的查询过滤逻辑
Diagram Walkthrough
File Walkthrough
37 files
使用 FilterByOptions 替换操作日志过滤条件替换数据导出任务选项中的 FilterBy 为 FilterByOptions更新数据导出工作流逻辑中使用 FilterByOptions 构造过滤条件修改数据库服务查询参数,使用 FilterByOptions 替换 FilterBy网关查询参数中由 FilterBy 迁移到 FilterByOptions更新成员查询中过滤条件由 FilterBy 替换为 FilterByOptions成员组查询参数中由 FilterBy 改为 FilterByOptions操作权限查询及用户/成员权限过滤使用 FilterByOptions 替换 FilterBy项目查询参数更新为使用 FilterByOptions 构造过滤条件角色查询过滤条件从 FilterBy 切换至 FilterByOptions用户查询参数由 FilterBy 变更为 FilterByOptions用户组查询过滤条件更新为 FilterByOptions添加 FilterByOptions、FilterLogic 及辅助构造函数使用 ConditionsToFilterOptions 替换 FilterBy 参数调用修改通知消息用户过滤条件,采用 FilterByOptions 构造数据导出工作流服务中更新过滤逻辑,构造 FilterByOptions 条件组数据库服务接口中使用 FilterByOptions 替换原有过滤条件环境标签服务中调用 ListDBService 时,采用 FilterByOptions 构造过滤条件成员服务中过滤条件构造由 FilterBy 迁移到 FilterByOptions成员组服务中过滤条件更新为 FilterByOptions 构造操作权限服务中更新过滤逻辑为 FilterByOptions 构造条件组项目服务中过滤条件构造由 FilterBy 变更为 FilterByOptions角色服务中过滤条件构造更新为 FilterByOptions用户服务中过滤条件更新为使用 FilterByOptions 构造用户组服务中过滤条件改为使用 FilterByOptions存储层操作日志查询改为通过 gormWheresWithOptions 构造过滤条件数据导出任务存储逻辑中使用 FilterByOptions 替换原有 FilterBy数据库服务存储层中过滤条件构造更新为 FilterByOptions网关存储层中过滤条件由 FilterBy 改为 FilterByOptions 构造成员存储层中过滤条件更新为使用 FilterByOptions 构造成员组存储层中过滤条件构造改为 FilterByOptions操作权限存储层中过滤逻辑更新为 FilterByOptions 构造项目存储层中过滤条件由 FilterBy 更新为 FilterByOptions角色存储层中过滤条件构造及查询逻辑更新为使用 FilterByOptions用户存储层中过滤条件更新为通过 FilterByOptions 构造用户组存储层中过滤条件构造更新为 FilterByOptions数据导出工作流存储层中过滤条件更新为 FilterByOptions 构造1 files