Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
zhangjian1949
apollo
提交
27811474
apollo
项目概览
zhangjian1949
/
apollo
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
apollo
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
27811474
编写于
8月 05, 2021
作者:
张
张乐
提交者:
GitHub
8月 05, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1. remove useless code (#3871)
2. fix failed ut 3. add change log
上级
109c98d2
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
3 addition
and
14 deletion
+3
-14
CHANGES.md
CHANGES.md
+1
-0
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/AppNamespaceService.java
.../framework/apollo/portal/service/AppNamespaceService.java
+0
-5
apollo-portal/src/main/resources/static/namespace.html
apollo-portal/src/main/resources/static/namespace.html
+1
-2
apollo-portal/src/main/resources/static/scripts/controller/NamespaceController.js
...esources/static/scripts/controller/NamespaceController.js
+0
-6
apollo-portal/src/test/java/com/ctrip/framework/apollo/portal/service/AppNamespaceServiceTest.java
...mework/apollo/portal/service/AppNamespaceServiceTest.java
+1
-1
未找到文件。
CHANGES.md
浏览文件 @
27811474
...
...
@@ -68,6 +68,7 @@ Apollo 1.9.0
*
[
fix show-text-modal number display
](
https://github.com/ctripcorp/apollo/pull/3851
)
*
[
Lazy load ConfigUtil
](
https://github.com/ctripcorp/apollo/pull/3864
)
*
[
make jdbc session enable default
](
https://github.com/ctripcorp/apollo/pull/3869
)
*
[
support json/yaml/xml format for public namespace
](
https://github.com/ctripcorp/apollo/pull/3836
)
------------------
All issues and pull requests are
[
here
](
https://github.com/ctripcorp/apollo/milestone/6?closed=1
)
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/AppNamespaceService.java
浏览文件 @
27811474
...
...
@@ -127,11 +127,6 @@ public class AppNamespaceService {
throw
new
BadRequestException
(
"App not exist. AppId = "
+
appId
);
}
// public namespaces only allow properties format
// if (appNamespace.isPublic()) {
// appNamespace.setFormat(ConfigFileFormat.Properties.getValue());
// }
StringBuilder
appNamespaceName
=
new
StringBuilder
();
//add prefix postfix
appNamespaceName
...
...
apollo-portal/src/main/resources/static/namespace.html
浏览文件 @
27811474
...
...
@@ -122,7 +122,6 @@
</div>
</div>
<!--public namespace can only be properties -->
<div
class=
"col-sm-2"
>
<select
class=
"form-control"
name=
"format"
ng-model=
"appNamespace.format"
>
<option
value=
"properties"
>
properties
</option>
...
...
@@ -254,4 +253,4 @@
</body>
</html>
\ No newline at end of file
</html>
apollo-portal/src/main/resources/static/scripts/controller/NamespaceController.js
浏览文件 @
27811474
...
...
@@ -86,7 +86,6 @@ namespace_module.controller("LinkNamespaceController",
};
function
shouldAppendNamespacePrefix
()
{
//return $scope.appNamespace.isPublic ? $scope.appendNamespacePrefix : false;
return
$scope
.
appendNamespacePrefix
;
}
...
...
@@ -150,11 +149,6 @@ namespace_module.controller("LinkNamespaceController",
return
;
}
// public namespaces only allow properties format
// if ($scope.appNamespace.isPublic) {
// $scope.appNamespace.format = 'properties';
// }
$scope
.
submitBtnDisabled
=
true
;
//only append namespace prefix for public app namespace
var
appendNamespacePrefix
=
shouldAppendNamespacePrefix
();
...
...
apollo-portal/src/test/java/com/ctrip/framework/apollo/portal/service/AppNamespaceServiceTest.java
浏览文件 @
27811474
...
...
@@ -161,7 +161,7 @@ public class AppNamespaceServiceTest extends AbstractIntegrationTest {
Assert
.
assertNotNull
(
createdAppNamespace
);
Assert
.
assertEquals
(
appNamespace
.
getName
(),
createdAppNamespace
.
getName
());
Assert
.
assertEquals
(
ConfigFileFormat
.
Properties
.
getValue
(),
createdAppNamespace
.
getFormat
());
Assert
.
assertEquals
(
ConfigFileFormat
.
YAML
.
getValue
(),
createdAppNamespace
.
getFormat
());
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录