-
Notifications
You must be signed in to change notification settings - Fork 21
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
Защищенные модули #437
Защищенные модули #437
Conversation
src/main/java/com/github/_1c_syntax/bsl/reader/edt/converter/CommonModuleConverter.java
Show resolved
Hide resolved
db2f01f
to
1bd4adc
Compare
WalkthroughThe update introduces a mechanism to identify whether a module is protected (e.g., password-protected) across various Java classes. A new Changes
Assessment against linked issues
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on X ? TipsChat with CodeRabbit Bot (
|
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 3 New issues |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files ignored due to filter (90)
- src/test/resources/ext/designer/mdclasses/src/cf/CalculationRegisters/РегистрРасчета1/Recalculations/Перерасчет/Ext/RecordSetModule.bin
- src/test/resources/ext/designer/mdclasses/src/cf/Catalogs/Справочник1/Ext/ObjectModule.bin
- src/test/resources/fixtures/mdclasses/BusinessProcesses.БизнесПроцесс1.json
- src/test/resources/fixtures/mdclasses/BusinessProcesses.БизнесПроцесс1_edt.json
- src/test/resources/fixtures/mdclasses/CalculationRegisters.РегистрРасчета1.json
- src/test/resources/fixtures/mdclasses/CalculationRegisters.РегистрРасчета1_edt.json
- src/test/resources/fixtures/mdclasses/Catalogs.Справочник1.json
- src/test/resources/fixtures/mdclasses/Catalogs.Справочник1_edt.json
- src/test/resources/fixtures/mdclasses/ChartsOfAccounts.ПланСчетов1.json
- src/test/resources/fixtures/mdclasses/ChartsOfAccounts.ПланСчетов1_edt.json
- src/test/resources/fixtures/mdclasses/ChartsOfCharacteristicTypes.ПланВидовХарактеристик1.json
- src/test/resources/fixtures/mdclasses/ChartsOfCharacteristicTypes.ПланВидовХарактеристик1_edt.json
- src/test/resources/fixtures/mdclasses/CommonCommands.ОбщаяКоманда1.json
- src/test/resources/fixtures/mdclasses/CommonCommands.ОбщаяКоманда1_edt.json
- src/test/resources/fixtures/mdclasses/CommonForms.Форма.json
- src/test/resources/fixtures/mdclasses/CommonForms.Форма_edt.json
- src/test/resources/fixtures/mdclasses/CommonModules.ГлобальныйОбщийМодуль.json
- src/test/resources/fixtures/mdclasses/CommonModules.ГлобальныйОбщийМодуль_edt.json
- src/test/resources/fixtures/mdclasses/CommonModules.ОбщийМодульВызовСервера.json
- src/test/resources/fixtures/mdclasses/CommonModules.ОбщийМодульВызовСервера_edt.json
- src/test/resources/fixtures/mdclasses/CommonModules.ОбщийМодульПовтИспВызов.json
- src/test/resources/fixtures/mdclasses/CommonModules.ОбщийМодульПовтИспВызов_edt.json
- src/test/resources/fixtures/mdclasses/CommonModules.ОбщийМодульПовтИспСеанс.json
- src/test/resources/fixtures/mdclasses/CommonModules.ОбщийМодульПовтИспСеанс_edt.json
- src/test/resources/fixtures/mdclasses/CommonModules.ОбщийМодульПолныйеПрава.json
- src/test/resources/fixtures/mdclasses/CommonModules.ОбщийМодульПолныйеПрава_edt.json
- src/test/resources/fixtures/mdclasses/CommonModules.ПростойОбщийМодуль.json
- src/test/resources/fixtures/mdclasses/CommonModules.ПростойОбщийМодуль_edt.json
- src/test/resources/fixtures/mdclasses/Constants.Константа1.json
- src/test/resources/fixtures/mdclasses/Constants.Константа1_edt.json
- src/test/resources/fixtures/mdclasses/DataProcessors.Обработка1.json
- src/test/resources/fixtures/mdclasses/DataProcessors.Обработка1_edt.json
- src/test/resources/fixtures/mdclasses/DocumentJournals.ЖурналДокументов1.json
- src/test/resources/fixtures/mdclasses/DocumentJournals.ЖурналДокументов1_edt.json
- src/test/resources/fixtures/mdclasses/Documents.Документ1.json
- src/test/resources/fixtures/mdclasses/Documents.Документ1_edt.json
- src/test/resources/fixtures/mdclasses/Enums.Перечисление1.json
- src/test/resources/fixtures/mdclasses/Enums.Перечисление1_edt.json
- src/test/resources/fixtures/mdclasses/ExchangePlans.ПланОбмена1.json
- src/test/resources/fixtures/mdclasses/ExchangePlans.ПланОбмена1_edt.json
- src/test/resources/fixtures/mdclasses/ExternalDataSources.ТекущаяСУБД.json
- src/test/resources/fixtures/mdclasses/ExternalDataSources.ТекущаяСУБД_edt.json
- src/test/resources/fixtures/mdclasses/FilterCriteria.КритерийОтбора1.json
- src/test/resources/fixtures/mdclasses/FilterCriteria.КритерийОтбора1_edt.json
- src/test/resources/fixtures/mdclasses/HTTPServices.HTTPСервис1.json
- src/test/resources/fixtures/mdclasses/HTTPServices.HTTPСервис1_edt.json
- src/test/resources/fixtures/mdclasses/InformationRegisters.РегистрСведений1.json
- src/test/resources/fixtures/mdclasses/InformationRegisters.РегистрСведений1_edt.json
- src/test/resources/fixtures/mdclasses/Reports.Отчет1.json
- src/test/resources/fixtures/mdclasses/Reports.Отчет1_edt.json
- src/test/resources/fixtures/mdclasses/Sequences.Последовательность1.json
- src/test/resources/fixtures/mdclasses/Sequences.Последовательность1_edt.json
- src/test/resources/fixtures/mdclasses/WebServices.WebСервис1.json
- src/test/resources/fixtures/mdclasses/WebServices.WebСервис1_edt.json
- src/test/resources/fixtures/mdclasses_3_18/Bots.Бот1.json
- src/test/resources/fixtures/mdclasses_3_18/Bots.Бот1_edt.json
- src/test/resources/fixtures/mdclasses_3_18/Configuration.json
- src/test/resources/fixtures/mdclasses_3_18/Configuration_edt.json
- src/test/resources/fixtures/mdclasses_3_18/IntegrationServices.СервисИнтеграции1.json
- src/test/resources/fixtures/mdclasses_3_18/IntegrationServices.СервисИнтеграции1_edt.json
- src/test/resources/fixtures/ssl_3_1/BusinessProcesses.Задание.json
- src/test/resources/fixtures/ssl_3_1/BusinessProcesses.Задание_edt.json
- src/test/resources/fixtures/ssl_3_1/Catalogs.Заметки.json
- src/test/resources/fixtures/ssl_3_1/Catalogs.Заметки_edt.json
- src/test/resources/fixtures/ssl_3_1/ChartsOfCharacteristicTypes.ДополнительныеРеквизитыИСведения.json
- src/test/resources/fixtures/ssl_3_1/ChartsOfCharacteristicTypes.ДополнительныеРеквизитыИСведения_edt.json
- src/test/resources/fixtures/ssl_3_1/CommonCommands.ОтправитьПисьмо.json
- src/test/resources/fixtures/ssl_3_1/CommonCommands.ОтправитьПисьмо_edt.json
- src/test/resources/fixtures/ssl_3_1/CommonForms.Вопрос.json
- src/test/resources/fixtures/ssl_3_1/CommonForms.Вопрос_edt.json
- src/test/resources/fixtures/ssl_3_1/CommonModules.АвтономнаяРабота.json
- src/test/resources/fixtures/ssl_3_1/CommonModules.АвтономнаяРабота_edt.json
- src/test/resources/fixtures/ssl_3_1/DataProcessors.ЗагрузкаКурсовВалют.json
- src/test/resources/fixtures/ssl_3_1/DataProcessors.ЗагрузкаКурсовВалют_edt.json
- src/test/resources/fixtures/ssl_3_1/DocumentJournals.Взаимодействия.json
- src/test/resources/fixtures/ssl_3_1/DocumentJournals.Взаимодействия_edt.json
- src/test/resources/fixtures/ssl_3_1/Documents.Анкета.json
- src/test/resources/fixtures/ssl_3_1/Documents.Анкета_edt.json
- src/test/resources/fixtures/ssl_3_1/Enums.СтатусыОбработчиковОбновления.json
- src/test/resources/fixtures/ssl_3_1/Enums.СтатусыОбработчиковОбновления_edt.json
- src/test/resources/fixtures/ssl_3_1/ExchangePlans.ОбновлениеИнформационнойБазы.json
- src/test/resources/fixtures/ssl_3_1/ExchangePlans.ОбновлениеИнформационнойБазы_edt.json
- src/test/resources/fixtures/ssl_3_1/InformationRegisters.ЭлектронныеПодписи.json
- src/test/resources/fixtures/ssl_3_1/InformationRegisters.ЭлектронныеПодписи_edt.json
- src/test/resources/fixtures/ssl_3_1/SettingsStorages.ХранилищеВариантовОтчетов.json
- src/test/resources/fixtures/ssl_3_1/SettingsStorages.ХранилищеВариантовОтчетов_edt.json
- src/test/resources/fixtures/ssl_3_1/Tasks.ЗадачаИсполнителя.json
- src/test/resources/fixtures/ssl_3_1/Tasks.ЗадачаИсполнителя_edt.json
- src/test/resources/fixtures/ssl_3_1/WebServices.EnterpriseDataExchange_1_0_1_1.json
- src/test/resources/fixtures/ssl_3_1/WebServices.EnterpriseDataExchange_1_0_1_1_edt.json
Files selected for processing (10)
- src/main/java/com/github/_1c_syntax/bsl/mdo/CommonModule.java (1 hunks)
- src/main/java/com/github/_1c_syntax/bsl/mdo/Module.java (1 hunks)
- src/main/java/com/github/_1c_syntax/bsl/mdo/children/ObjectModule.java (1 hunks)
- src/main/java/com/github/_1c_syntax/bsl/reader/common/ReaderUtils.java (1 hunks)
- src/main/java/com/github/_1c_syntax/bsl/reader/common/TransformationUtils.java (1 hunks)
- src/main/java/com/github/_1c_syntax/bsl/reader/designer/converter/CommonModuleConverter.java (1 hunks)
- src/main/java/com/github/_1c_syntax/bsl/reader/edt/converter/CommonModuleConverter.java (2 hunks)
- src/test/java/com/github/_1c_syntax/bsl/mdo/CalculationRegisterTest.java (1 hunks)
- src/test/java/com/github/_1c_syntax/bsl/mdo/CatalogTest.java (1 hunks)
- src/test/java/com/github/_1c_syntax/bsl/mdo/DocumentTest.java (1 hunks)
Files skipped from review due to trivial changes (1)
- src/test/java/com/github/_1c_syntax/bsl/mdo/DocumentTest.java
Additional comments: 9
src/main/java/com/github/_1c_syntax/bsl/mdo/CommonModule.java (1)
- 73-73: The addition of the
isProtected
field aligns with the PR objectives to track module protection status.src/main/java/com/github/_1c_syntax/bsl/mdo/Module.java (1)
- 51-51: The addition of the
isProtected()
method in theModule
interface is consistent with the PR's goal to determine module protection.src/main/java/com/github/_1c_syntax/bsl/mdo/children/ObjectModule.java (1)
- 50-50: The addition of the
isProtected
field in theObjectModule
class is consistent with the PR's goal to track module protection status.src/main/java/com/github/_1c_syntax/bsl/reader/common/ReaderUtils.java (1)
- 37-81: The
ReaderUtils
class and its methodreadProtectedModuleInfo
along with the inner classProtectedModuleInfo
are well-implemented to handle the detection of protected modules.src/main/java/com/github/_1c_syntax/bsl/reader/common/TransformationUtils.java (1)
- 365-372: The changes to the
addModules
method inTransformationUtils
correctly utilizeReaderUtils.readProtectedModuleInfo
to set theisProtected
property forObjectModule
instances.src/main/java/com/github/_1c_syntax/bsl/reader/designer/converter/CommonModuleConverter.java (1)
- 46-57: The
unmarshal
method inCommonModuleConverter
has been updated to correctly determine and set theisProtected
status of a module.src/main/java/com/github/_1c_syntax/bsl/reader/edt/converter/CommonModuleConverter.java (1)
- 46-48: The
unmarshal
method inCommonModuleConverter
for the EDT package has been correctly updated to handle theisProtected
status of modules usingReaderUtils.readProtectedModuleInfo
.src/test/java/com/github/_1c_syntax/bsl/mdo/CalculationRegisterTest.java (1)
- 49-52: The new assertion in
CalculationRegisterTest
correctly verifies that all modules in a recalculation are protected, aligning with the PR's functionality.src/test/java/com/github/_1c_syntax/bsl/mdo/CatalogTest.java (1)
- 60-62: The modified assertion in
CatalogTest
correctly checks if any of the modules are protected, aligning with the PR's functionality.
Описание
Реализация поддержки признака "защищенный" для модулей (переосмысление реализации #413)
Связанные задачи
Closes: #414
Чеклист
Общие
gradlew precommit
)Дополнительно
Summary by CodeRabbit
New Features
Documentation
Refactor