赵延
39a2f20d56
[ISSUE #3907 ] when publishConfig, if type is absent, set default value 'text' ( #3915 )
...
* when publishConfig, if type is absent, set default value 'text'
* 1.add publishConfig api(add param type)
2.check type is valid in nacos server
2020-11-09 11:36:50 +08:00
邪影oO
538509502f
IPv6 support ( #3773 )
...
* IPv6 support
* AddressServerParamCheckUtil 合并到 IpUtil 及一些修改
* 解决魔法值
* 修改隐患
* 调整使用了类似 ip.indexOf(":") 查找是否有端口的地方的逻辑, 一些 ":" 替换为常量
* 删除无用测试
* IpUtil 改名 为 IPUtil, 涉及IP的相关方法名修改,涉及到的调用修改,检测IP的地方调用的isIPv4改为isIP. 修改涉及IP的字段长度及相关升级更新的sql
* no message
* no message
* no message
* no message
* 获取本机IP时,如果本机IP是IPv6并且包含网卡信息(V6地址中最后面的百分号和百分号后面的内容)则去除网卡信息
* 解决 AvoidComplexConditionRule(请不要在条件中使用复杂的表达式)
* 移除无用代码
* 添加注释
* 调整code style, 调整获取本机IP的逻辑
2020-11-05 20:15:06 +08:00
杨翊 SionYang
6eeeb76473
Develop fix jraft null datum ( #4048 )
...
* Fix old raft sync null datum problem
* Fix TimerContext NPE problem
2020-10-22 15:40:00 +08:00
jiang
6df2b229d0
[ISSUE-#3855] Provided a feature to view version comparisons in the configDetails page ( #3988 )
...
* add detail previous config history api
* modify the previous config history url
* modify log description
* 详情页面添加“历史对比”按钮,点击可打开对比面板
* 点击“历史对比”按钮,获取上一版本数据
* 在查看历史对比的时候 不显示revert按钮
* append doc info
* Add unit tests for ISSUE#3855
* Add the previous updates to main.js and main.css
Co-authored-by: 赵延 <1060026287@qq.com>
2020-10-19 09:29:59 +08:00
杨翊 SionYang
d78ebbbce1
Refactor dispatch task execute ( #3995 )
...
* Refactor nacos task execute engine
* Refactor nacos task execute engine
* For checkstyle
* For checkstyle
* Use ThreadUtils to reduce duplicate codes
* Set custom logger for TaskExecuteWorker
* Set custom logger for TaskExecuteWorker
2020-10-16 14:32:39 +08:00
邪影oO
13599fd83d
Fix#3973 ( #3974 )
...
* fix #3973
* 重复代码抽取到一个方法
* 删除私有方法的注释
* 处理namespace参数的方法提出到一个工具类中
* 修改注释
* 添加licences
* 增加 TenantUtil 的测试
* TenantUtil 改名为 NamespaceUtil
2020-10-13 15:48:46 +08:00
赵延
c0496b364e
[ISSUE #3909 ] add domain's judgement ( #3913 )
...
* add domain's judgement
* modify domain's judgement, can resolve = true
* remove judgement in 'if' code block
* replace Ip to IP in InetUtils
* log warn info when domain can not be resolved
* fix vaiable name
2020-10-12 12:19:02 +08:00
赵延
d6cc8ce5b0
fix typo error ( #3954 )
2020-10-12 12:18:14 +08:00
liaochuntao
7fd4d9a5d1
feature issue #3804 ( #3805 )
...
* improvement: merge upstream/develop
* feat: merge upstream develop
* feat: manage the loading of configuration files uniformly
* fix: fix copyright style
* style: fix code style
* fix: fix code style
2020-09-18 16:05:36 +08:00
邪影oO
043a504a33
fix : #3617 ( #3678 )
...
* fix #3617
* 调整代码格式
* 修改抛出的Exception类型
* 调整逻辑
* 移除没用到的方法
* 修改注释
2020-09-03 21:14:23 +08:00
Gagharv
3428d8830e
[ISSUE #3671 ] move some tools class into common package ( #3672 )
2020-08-24 13:24:56 +08:00
杨翊 SionYang
a0c8353b70
[ISSUE#3658] refactor TaskManager and move to nacos-common module ( #3663 )
...
* Add TaskManagerTest
* Move Abstract Task and Task processor to nacos-common
* Add Nacos execute engine interface and nacos task interface
* Refactor Task Manager to NacosDelayTaskExecuteEngine
* for code style
2020-08-23 16:39:58 +08:00
mai.jh
526e2bc130
[ISSUE #3566 ] move the permission code of nacos-core module to nacos-auth module ( #3593 )
...
* move the permission code of nacos-core module to nacos-auth module.
* Fix some code style issues
* address server module auth package name change.
* test change
* Incorrect package name correction
2020-08-14 09:50:05 +08:00
lidaoyang
fae37481e5
Fix #3269 When nacos.core.auth.enabled = true, user information is saved to the request in login ( #3543 )
...
* Fix #3269 NacosAuthManager request.setAttribute(user) and ConfigController getSrcUserName(req)
* Fix #3269 format code
* Fix #3269 format code
2020-08-07 12:43:44 +08:00
ZZQ的
7a471c5100
When binding roles, the user list is changed to the drop-down selection mode (在绑定角色的时候用户列表改成下拉选中的模式) #3518 ( #3522 )
...
* 配置pageSize列表 #3439
* Service List Page Increase the number of pages switching function is the same as the configuration management page #3500
* issues#3500 编译之后的代码
* 在绑定角色的时候用户列表改成下拉选中的模式 #3518
* change code style
* delete unused import
* delete changed indent please.
* Javadoc add an ending period
* fix bad sql and change return type
* change js get value
* delete whitespace
* check code style
* add permissions, associated role, change to fuzzy matching drop-down(java code)
* add permissions, associated role, change to fuzzy matching drop-down(js code)
* delete "/"
2020-08-06 13:23:53 +08:00
mai.jh
a64a356e45
[ISSUE #3192 ] replace nacos-config module http client ( #3523 )
...
* nacos-config module replace http client
* replace http client
* Remove redundant package import
* add license
* Delete JOSNUtils and use JacksonUtils instead; modify NacosAsyncRestTemplate exception handling.
2020-08-06 11:53:27 +08:00
wangwei
e4a478a1f9
[ #1839 ]add ContentType return while getConfig
2020-07-29 14:58:28 +08:00
ljhrot
c3818ff064
Fix bad SQL grammar ( #3445 )
2020-07-25 23:07:13 +08:00
yangy
2eaed4bcdc
Use PrepareStatement to replace string concatenation ( #3393 )
2020-07-21 14:50:19 +08:00
Hu Zongtang
52d9cf9cf9
[ISSUE##2859]Remove original EventDispatcher in the config module. ( #3319 )
2020-07-14 19:38:08 +08:00
Hu Zongtang
fee6cf4dc9
Replace original EventDispatcher with NotifyCenter in the config module. ( #3313 )
...
* [ISSUE##2859]Replace some usage of EventDispatcher for ConfigCacheService and LongPollingService.
* [ISSUE##2859]Replace some usage of EventDispatcher for AsyncNotifyService and ConfigChangePublisher.
* [ISSUE#3179]fix typo.
* [ISSUE#3179]fix typo.
* [ISSUE#3179]fix typo.
2020-07-14 15:10:25 +08:00
Gagharv
891c1f3ba5
[ISSUE #2856 ]Adjust the use of thread pools (config module) ( #3206 )
...
* [ISSUE #2856 ]Adjust the use of thread pools (config、cmdb module)
* add CmdbExecutor class
2020-07-13 17:33:25 +08:00
zongtanghu
34fd36b115
[ISSUE#3179]fix import formate issue.
2020-07-12 13:52:29 +08:00
zongtanghu
d8e1d2aebc
[ISSUE#3179]Replace the NotifyCenter with new refactor in the config and test module.
2020-07-12 11:28:54 +08:00
CsyDesign
84b733a31f
[ISSUE#3300] Optimize the default "minIdle"" of HikariPool set by naocs ( #3304 )
2020-07-12 00:32:11 +08:00
杨翊 SionYang
95f3bfb587
[ISSUE #2992 ]Recheck all checkstyle and open checkstyle during building ( #3293 )
...
* Re-check code style for nacos-config module.
* Re-check code style for other module.
* Open checkstyle plugin check during build
2020-07-10 17:18:53 +08:00
zhangjidi2016
5d65653740
Resolve the issues of codestyle of nacos-config module for phase7 ( #3288 )
...
* Resolve the issues of codestyle of nacos-config module for phase7
* fix typo of code style.
2020-07-10 14:26:39 +08:00
杨翊 SionYang
886fbe463c
Use new code style for nacos-config module/test. ( #3290 )
2020-07-10 13:24:43 +08:00
Hu Zongtang
753a736815
[ISSUE#3249]Resolve the issues of codestyle of nacos-config module for phase8. ( #3286 )
...
* [ISSUE#3249]Resolve the issues of codestyle of nacos-config module for phase8.
* [ISSUE#3249]fix typo.
2020-07-09 20:12:05 +08:00
Gagharv
9e9b95b9a0
[ #3249 ]Resolve the issues of codestyle of nacos-config module for phase6 ( #3277 )
...
Change-Id: I731548ea51b8ccf2a7f2635bd0e864573ccc7fc9
2020-07-08 15:11:58 +08:00
Hu Zongtang
0086dfe787
Resolve the issues of codestyle of nacos-config module for phase5. ( #3272 )
...
* [#3249 ]Fix chinese unit method name in config test module.
* [#3249 ]resolve the code style issue in service package.
* [ISSUE#3249]fix typo.
2020-07-08 09:21:13 +08:00
Gagharv
a4fe234a26
Resolve the issues of codestyle of nacos-config module for phase4 ( #3262 )
...
* [ISSUE#3249]Resolve the part issues of codestyle for nacos-config module(package:service/repository)
Change-Id: I394a7639c70b6d30c2b800d5608ba62b6b64c76c
* 1.adjust ignore exception
2.adjust sql
Change-Id: I1e190872dc85d1d81a6afc2a204331bd779c04b0
* adjust sql
Change-Id: Ie4a085487b3642d0da150162b9a750bd803bf07e
2020-07-07 20:13:32 +08:00
Hu Zongtang
9966ec38d9
[ISSUE#3249]Resolve the issues of codestyle of nacos-config module(parameters/enums/exception/filter/manager/model/service). ( #3259 )
2020-07-06 15:35:10 +08:00
Gagharv
4278b483ca
Resolve the issues of codestyle of nacos-config module for phase2 ( #3253 )
...
* [ISSUE#3249]Resolve the part issues of codestyle for nacos-config module(package:service/dump)
Change-Id: I273493054e3d7f5f26d73d65fa8360266a93cbfc
* [ISSUE#3249]Resolve the part issues of codestyle for nacos-config module(package:service/merge)
Change-Id: I8cdf601c2cb5f177a920c0f690cfbace8108c4cc
2020-07-06 10:08:32 +08:00
Hu Zongtang
c40de72f34
Resolve the issues of codestyle of nacos-config module for phase1 ( #3250 )
...
* [ISSUE#3249]Resolve the part issues of codestyle for nacos-config module(package:aspect/auth/configuration).
* [ISSUE#3249]Resolve the part issues of codestyle for nacos-config module(package:constant/controller).
* [ISSUE#3249]translate Chinese comments into English.
* [ISSUE#3249]fix typo.
2020-07-06 09:56:34 +08:00
Joe
2f5fb235b2
optimize isExistTable function ( #3236 )
...
* Update EmbeddedStoragePersistServiceImpl.java
If the table data volume is large, count (*) will be particularly slow
* Update ExternalStoragePersistServiceImpl.java
If the table data volume is large, count (*) will be particularly slow
* Update ExternalStoragePersistServiceImpl.java
* Update EmbeddedStoragePersistServiceImpl.java
2020-07-04 09:27:18 +08:00
Hu Zongtang
31670f124c
[ #3241 ]Reformat the nacos-config module by new code style. ( #3243 )
2020-07-03 16:51:08 +08:00
liaochuntao
2c733d57ff
[ #2979 ] Inline storage support importing data from external data sources ( #3138 )
...
* feat: data import Derby, Derby export complete
* feat: external data source import is complete
* feat: import data to derby and derby backup finished
* fix: fixed bug where external storage mode could not find beans
* style: fix code style
* style: remove unuse code
* refactor: fixed configuration file information
* improvement: merge upstream/develop
* style: fix code style
* fix: a way to fix the missing
* fix: fix derby data import in standalone mode
* style: fix code style
* refactor: merge upstream develop and fix code style
* test: modify ut
* style: fix code style
2020-06-28 10:25:06 +08:00
Hu Zongtang
38a2aa111a
[ #3185 ]Fix chinese unit method name in config test module. ( #3186 )
2020-06-28 09:49:53 +08:00
杨翊 SionYang
532aad685e
upgrade version of Jackson and Guava ( #3116 )
2020-06-19 10:55:14 +08:00
杨翊 SionYang
f864880136
[ISSUE #2992 ] use new code style for nacos-common ( #3106 )
...
* use new code style for nacos-common
* Fix code style file can't set java import problem.
2020-06-18 17:05:15 +08:00
zhanglong
855a637ac5
Fix word spelling errors
2020-06-14 19:11:54 +08:00
zhanglong
477e0ad1f3
Add license for ExternalDataSourceProperties
2020-06-14 17:57:33 +08:00
zhanglong
8295a3ef96
Add ut for ExternalDataSourceProperties
2020-06-14 17:55:25 +08:00
zhanglong
768713ec05
Merge branch 'develop' of https://github.com/alibaba/nacos into develop
2020-06-14 17:18:17 +08:00
liaochuntao
34fda6a0bb
Merge pull request #3057 from showkawa/#3056_performance_issue
...
#3056 performance issue
2020-06-14 12:56:11 +08:00
zhanglong
cf6b4c4f0e
Tool method extract
2020-06-13 22:06:04 +08:00
zhanglong
1b55e68fd4
Upgrade the database driver version of Mysql to 8 # 3036 #2993 #1868
2020-06-13 19:05:22 +08:00
Brian Huang
8c0f52f987
replace "+=" to StringBuilder append method
2020-06-12 22:00:08 +08:00
KomachiSion
d4bdb69831
For #2873 , unified copyrights.
2020-06-12 16:24:00 +08:00