tangcent / easy-yapi

Generate API document to yapi
https://easyyapi.com
GNU Affero General Public License v3.0
439 stars 144 forks source link

feat: optimize configuration loading logic for enhanced efficiency and reliability #1107

Closed tangcent closed 8 months ago

codecov[bot] commented 8 months ago

Codecov Report

Attention: Patch coverage is 68.18182% with 42 lines in your changes are missing coverage. Please review.

Project coverage is 62.071%. Comparing base (e1be9fe) to head (1986241).

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1107/graphs/tree.svg?width=650&height=150&src=pr&token=J6RUGI54XV&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent)](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1107?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent) ```diff @@ Coverage Diff @@ ## master #1107 +/- ## =============================================== + Coverage 61.952% 62.071% +0.119% + Complexity 2288 2285 -3 =============================================== Files 249 249 Lines 12090 12091 +1 Branches 2986 2983 -3 =============================================== + Hits 7490 7505 +15 + Misses 3001 2990 -11 + Partials 1599 1596 -3 ``` | [Flag](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1107/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1107/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent) | `62.071% <68.182%> (+0.119%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1107?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent) | Coverage Δ | | |---|---|---| | [...ea/plugin/api/export/core/EasyApiConfigProvider.kt](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1107?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent#diff-aWRlYS1wbHVnaW4vc3JjL21haW4va290bGluL2NvbS9pdGFuZ2NlbnQvaWRlYS9wbHVnaW4vYXBpL2V4cG9ydC9jb3JlL0Vhc3lBcGlDb25maWdQcm92aWRlci5rdA==) | `100.000% <100.000%> (ø)` | | | [...xport/generic/SimpleGenericRequestClassExporter.kt](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1107?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent#diff-aWRlYS1wbHVnaW4vc3JjL21haW4va290bGluL2NvbS9pdGFuZ2NlbnQvaWRlYS9wbHVnaW4vYXBpL2V4cG9ydC9nZW5lcmljL1NpbXBsZUdlbmVyaWNSZXF1ZXN0Q2xhc3NFeHBvcnRlci5rdA==) | `39.394% <ø> (ø)` | | | [...plugin/api/export/postman/PostmanConfigProvider.kt](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1107?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent#diff-aWRlYS1wbHVnaW4vc3JjL21haW4va290bGluL2NvbS9pdGFuZ2NlbnQvaWRlYS9wbHVnaW4vYXBpL2V4cG9ydC9wb3N0bWFuL1Bvc3RtYW5Db25maWdQcm92aWRlci5rdA==) | `100.000% <100.000%> (ø)` | | | [.../idea/plugin/api/export/yapi/YapiConfigProvider.kt](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1107?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent#diff-aWRlYS1wbHVnaW4vc3JjL21haW4va290bGluL2NvbS9pdGFuZ2NlbnQvaWRlYS9wbHVnaW4vYXBpL2V4cG9ydC95YXBpL1lhcGlDb25maWdQcm92aWRlci5rdA==) | `100.000% <100.000%> (ø)` | | | [...n/kotlin/com/itangcent/idea/binder/DbBeanBinder.kt](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1107?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent#diff-aWRlYS1wbHVnaW4vc3JjL21haW4va290bGluL2NvbS9pdGFuZ2NlbnQvaWRlYS9iaW5kZXIvRGJCZWFuQmluZGVyLmt0) | `94.737% <90.909%> (-0.263%)` | :arrow_down: | | [...gcent/idea/plugin/api/export/suv/SuvApiExporter.kt](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1107?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent#diff-aWRlYS1wbHVnaW4vc3JjL21haW4va290bGluL2NvbS9pdGFuZ2NlbnQvaWRlYS9wbHVnaW4vYXBpL2V4cG9ydC9zdXYvU3V2QXBpRXhwb3J0ZXIua3Q=) | `0.000% <0.000%> (ø)` | | | [...dea/plugin/dialog/EasyApiSettingRemoteConfigGUI.kt](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1107?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent#diff-aWRlYS1wbHVnaW4vc3JjL21haW4va290bGluL2NvbS9pdGFuZ2NlbnQvaWRlYS9wbHVnaW4vZGlhbG9nL0Vhc3lBcGlTZXR0aW5nUmVtb3RlQ29uZmlnR1VJLmt0) | `0.000% <0.000%> (ø)` | | | [.../api/export/generic/GenericRequestClassExporter.kt](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1107?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent#diff-aWRlYS1wbHVnaW4vc3JjL21haW4va290bGluL2NvbS9pdGFuZ2NlbnQvaWRlYS9wbHVnaW4vYXBpL2V4cG9ydC9nZW5lcmljL0dlbmVyaWNSZXF1ZXN0Q2xhc3NFeHBvcnRlci5rdA==) | `28.025% <0.000%> (ø)` | | | [...ugin/settings/helper/RemoteConfigSettingsHelper.kt](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1107?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent#diff-aWRlYS1wbHVnaW4vc3JjL21haW4va290bGluL2NvbS9pdGFuZ2NlbnQvaWRlYS9wbHVnaW4vc2V0dGluZ3MvaGVscGVyL1JlbW90ZUNvbmZpZ1NldHRpbmdzSGVscGVyLmt0) | `70.588% <41.667%> (-8.722%)` | :arrow_down: | | [...angcent/idea/plugin/config/EnhancedConfigReader.kt](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1107?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent#diff-aWRlYS1wbHVnaW4vc3JjL21haW4va290bGluL2NvbS9pdGFuZ2NlbnQvaWRlYS9wbHVnaW4vY29uZmlnL0VuaGFuY2VkQ29uZmlnUmVhZGVyLmt0) | `64.286% <64.286%> (ø)` | | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1107/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent) ------ [Continue to review full report in Codecov by Sentry](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1107?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent). > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent) > `Δ = absolute (impact)`, `ø = not affected`, `? = missing data` > Powered by [Codecov](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1107?src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent). Last update [e1be9fe...1986241](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1107?src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent).