Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
apollo
Commits
ff156676
Commit
ff156676
authored
Jul 08, 2016
by
Jason Song
Committed by
GitHub
Jul 08, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #313 from lepdou/namespace-as-file-format-2
bugfix appnamespace format null
parents
0d5a5241
a8ecf47c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
3 deletions
+8
-3
AppNamespaceService.java
...rip/framework/apollo/biz/service/AppNamespaceService.java
+2
-0
DefaultUserService.java
...trip/framework/apollo/portal/auth/DefaultUserService.java
+2
-1
AppNamespaceService.java
.../framework/apollo/portal/service/AppNamespaceService.java
+2
-0
NamespaceController.js
...esources/static/scripts/controller/NamespaceController.js
+2
-2
No files found.
apollo-biz/src/main/java/com/ctrip/framework/apollo/biz/service/AppNamespaceService.java
View file @
ff156676
...
...
@@ -16,6 +16,7 @@ import com.ctrip.framework.apollo.biz.entity.Audit;
import
com.ctrip.framework.apollo.biz.repository.AppNamespaceRepository
;
import
com.ctrip.framework.apollo.common.utils.BeanUtils
;
import
com.ctrip.framework.apollo.core.ConfigConsts
;
import
com.ctrip.framework.apollo.core.enums.ConfigFileFormat
;
import
com.ctrip.framework.apollo.core.exception.ServiceException
;
import
com.ctrip.framework.apollo.core.utils.StringUtils
;
...
...
@@ -60,6 +61,7 @@ public class AppNamespaceService {
appNs
.
setAppId
(
appId
);
appNs
.
setName
(
ConfigConsts
.
NAMESPACE_APPLICATION
);
appNs
.
setComment
(
"default app namespace"
);
appNs
.
setFormat
(
ConfigFileFormat
.
Properties
.
getValue
());
appNs
.
setDataChangeCreatedBy
(
createBy
);
appNs
.
setDataChangeLastModifiedBy
(
createBy
);
appNamespaceRepository
.
save
(
appNs
);
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/auth/DefaultUserService.java
View file @
ff156676
...
...
@@ -5,6 +5,7 @@ import com.google.common.collect.Lists;
import
com.ctrip.framework.apollo.portal.entity.po.UserInfo
;
import
com.ctrip.framework.apollo.portal.service.UserService
;
import
java.util.Arrays
;
import
java.util.Collections
;
import
java.util.List
;
...
...
@@ -15,7 +16,7 @@ public class DefaultUserService implements UserService {
@Override
public
List
<
UserInfo
>
searchUsers
(
String
keyword
,
int
offset
,
int
limit
)
{
return
Collections
.
emptyList
(
);
return
Arrays
.
asList
(
assembleDefaultUser
()
);
}
@Override
...
...
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/AppNamespaceService.java
View file @
ff156676
...
...
@@ -2,6 +2,7 @@ package com.ctrip.framework.apollo.portal.service;
import
com.ctrip.framework.apollo.common.entity.AppNamespace
;
import
com.ctrip.framework.apollo.core.ConfigConsts
;
import
com.ctrip.framework.apollo.core.enums.ConfigFileFormat
;
import
com.ctrip.framework.apollo.core.exception.BadRequestException
;
import
com.ctrip.framework.apollo.core.exception.ServiceException
;
import
com.ctrip.framework.apollo.portal.auth.UserInfoHolder
;
...
...
@@ -47,6 +48,7 @@ public class AppNamespaceService {
appNs
.
setAppId
(
appId
);
appNs
.
setName
(
ConfigConsts
.
NAMESPACE_APPLICATION
);
appNs
.
setComment
(
"default app namespace"
);
appNs
.
setFormat
(
ConfigFileFormat
.
Properties
.
getValue
());
String
userId
=
userInfoHolder
.
getUser
().
getUserId
();
appNs
.
setDataChangeCreatedBy
(
userId
);
...
...
apollo-portal/src/main/resources/static/scripts/controller/NamespaceController.js
View file @
ff156676
...
...
@@ -42,8 +42,8 @@ namespace_module.controller("LinkNamespaceController",
appId
:
$scope
.
appId
,
name
:
''
,
comment
:
''
,
isPublic
:
fals
e
,
format
:
'
xml
'
isPublic
:
tru
e
,
format
:
'
properties
'
};
$scope
.
switchNSType
=
function
(
type
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment