| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| DELIMITER ; | ||
|
|
||
| call attributeMailToInformation(); | ||
| DROP PROCEDURE IF EXISTS attributeMailToInformation; |
There was a problem hiding this comment.
with a brief code review:
In terms of potential bugs, I would recommend checking that all the data types match in the foreign key reference. Additionally, make sure that the "uuid" column is properly indexed for both tables.
Finally, it may be worth considering adding a timestamp column to the "IAM2VirtualIDInformationVO" table to keep track of when the rows were inserted or updated.
Sorry, something went wrong.
remove conver need to recover data Resolves: ZSTAC-50892 Change-Id: I63646164716f736d64677969636a6d726d767764
| DELIMITER ; | ||
|
|
||
| call attributeMailToInformation(); | ||
| DROP PROCEDURE IF EXISTS attributeMailToInformation; |
There was a problem hiding this comment.
the review:
Sorry, something went wrong.
Sorry, something went wrong.
|
This is an invalid command. Please refer to the list of valid keywords below. CodeRabbit Commands
|
Sorry, something went wrong.
概述本次更新主要涉及数据库架构的修改和存储过程的添加,以及Java代码中加密实体处理逻辑的增强。数据库层面,LicenseHistoryVO表经历了结构调整,新增了IAM2VirtualIDInformationVO表。Java层面,EncryptFacadeImpl类增加了多个处理加密实体的方法,并引入了事务注解。测试代码也相应地进行了更新,以适应这些变化。 变更
诗歌
Tips Chat with CodeRabbit Bot (@coderabbitai)
CodeRabbit Commands (invoked as PR comments)
Note: For conversation with the bot, please use the review comments on code diffs or files. CodeRabbit Configration File (.coderabbit.yaml)
|
Sorry, something went wrong.
There was a problem hiding this comment.
Actionable comments generated: 1
Configuration used: CodeRabbit UI
Commits Files that changed from the base of the PR and between 139097d and f9bbed5. Files selected for processing (3)conf/db/upgrade/V4.5.3__schema.sql (6)core/src/main/java/org/zstack/core/encrypt/EncryptFacadeImpl.java (6)
1-3: 请确认所有与LicenseHistoryVO表交互的代码都已更新,以适应userName列的修改和新添加的capacity列。
5-10: 请验证IAM2VirtualIDVO表及其uuid列是否存在,并确保它们适合作为外键关系。
14-42: 请确认attributePhoneToInformation存储过程在正确的上下文中被调用,并且IAM2VirtualIDAttributeVO表存在且包含预期的列。
45-73: 请确认attributeMailToInformation存储过程在正确的上下文中被调用,并且IAM2VirtualIDAttributeVO表存在且包含预期的列。
41-42: 请确认是否有意在调用attributePhoneToInformation存储过程后立即将其删除。这通常意味着存储过程只用一次。
72-73: 请确认是否有意在调用attributeMailToInformation存储过程后立即将其删除。这通常意味着存储过程只用一次。
369-382: @Transactional 注解已经被添加到 removeConvertRecoverData 方法。请确保所有数据库操作都符合预期,以维护数据一致性。
384-393: start 方法已经被修改,包括了新的方法调用。请确保这些方法调用的顺序和逻辑符合预期的初始化流程。
277-324: 新添加的 handleNewAddedEncryptEntity 方法包含处理新加密实体的逻辑。请确保这个方法的实现与加密恢复过程的要求一致。
326-343: 新添加的 collectEncryptEntityMetadata 方法包含收集元数据的逻辑。请验证这个方法的实现是否有助于简化恢复过程中的数据转换。
345-358: 新添加的 createIfNotExists 方法包含创建不存在的元数据的逻辑。请确保这个方法的实现与元数据创建的要求一致。
360-366: 新添加的 updateEncryptDataStateIfExists 方法包含更新加密状态的逻辑。请确保这个方法的实现与加密状态更新的要求一致。
Sorry, something went wrong.
| import org.springframework.beans.factory.annotation.Autowired; | ||
| import org.springframework.transaction.annotation.Transactional; | ||
| import org.zstack.core.Platform; | ||
| import org.zstack.core.cloudbus.CloudBus; | ||
| import org.zstack.core.componentloader.PluginRegistry; | ||
| import org.zstack.core.config.GlobalConfig; | ||
| import org.zstack.core.config.GlobalConfigBeforeUpdateExtensionPoint; | ||
| import org.zstack.core.config.GlobalConfigUpdateExtensionPoint; | ||
| import org.zstack.core.config.*; | ||
| import org.zstack.core.convert.PasswordConverter; | ||
| import org.zstack.core.db.DatabaseFacade; | ||
| import org.zstack.core.db.SQLBatch; |
There was a problem hiding this comment.
使用通配符导入 (org.zstack.core.config.*) 可能会导致命名空间冲突,并且降低了代码的可读性。建议明确列出所需的类。
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
remove conver need to recover data
Resolves: ZSTAC-50892
Change-Id: I63646164716f736d64677969636a6d726d767764
Summary by CodeRabbit
新功能
样式更新