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
8d8e88c9
Commit
8d8e88c9
authored
Nov 22, 2016
by
Jason Song
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix npe
parent
cf6700e9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
ReleaseHistoryController.java
...llo/adminservice/controller/ReleaseHistoryController.java
+1
-1
ReleaseService.java
...om/ctrip/framework/apollo/biz/service/ReleaseService.java
+2
-1
No files found.
apollo-adminservice/src/main/java/com/ctrip/framework/apollo/adminservice/controller/ReleaseHistoryController.java
View file @
8d8e88c9
...
@@ -122,7 +122,7 @@ public class ReleaseHistoryController {
...
@@ -122,7 +122,7 @@ public class ReleaseHistoryController {
releaseHistories
.
add
(
releaseHistory
);
releaseHistories
.
add
(
releaseHistory
);
//rollback
//rollback
if
(
release
.
isAbandoned
())
{
if
(
release
.
isAbandoned
()
&&
previousRelease
!=
null
)
{
releaseHistory
.
setDataChangeLastModifiedTime
(
release
.
getDataChangeCreatedTime
());
releaseHistory
.
setDataChangeLastModifiedTime
(
release
.
getDataChangeCreatedTime
());
ReleaseHistory
rollBackReleaseHistory
=
assembleReleaseHistory
(
previousRelease
,
ReleaseHistory
rollBackReleaseHistory
=
assembleReleaseHistory
(
previousRelease
,
ReleaseOperation
.
ROLLBACK
,
release
.
getId
());
ReleaseOperation
.
ROLLBACK
,
release
.
getId
());
...
...
apollo-biz/src/main/java/com/ctrip/framework/apollo/biz/service/ReleaseService.java
View file @
8d8e88c9
...
@@ -220,11 +220,12 @@ public class ReleaseService {
...
@@ -220,11 +220,12 @@ public class ReleaseService {
Map
<
String
,
String
>
parentConfigurations
=
parentLatestRelease
!=
null
?
Map
<
String
,
String
>
parentConfigurations
=
parentLatestRelease
!=
null
?
gson
.
fromJson
(
parentLatestRelease
.
getConfigurations
(),
gson
.
fromJson
(
parentLatestRelease
.
getConfigurations
(),
configurationTypeReference
)
:
new
HashMap
<>();
configurationTypeReference
)
:
new
HashMap
<>();
long
baseReleaseId
=
parentLatestRelease
==
null
?
0
:
parentLatestRelease
.
getId
();
Map
<
String
,
String
>
childNamespaceToPublishConfigs
=
mergeConfiguration
(
parentConfigurations
,
childNamespaceItems
);
Map
<
String
,
String
>
childNamespaceToPublishConfigs
=
mergeConfiguration
(
parentConfigurations
,
childNamespaceItems
);
Release
release
=
Release
release
=
branchRelease
(
parentNamespace
,
childNamespace
,
releaseName
,
releaseComment
,
branchRelease
(
parentNamespace
,
childNamespace
,
releaseName
,
releaseComment
,
childNamespaceToPublishConfigs
,
parentLatestRelease
.
getId
()
,
operator
,
childNamespaceToPublishConfigs
,
baseReleaseId
,
operator
,
ReleaseOperation
.
GRAY_RELEASE
);
ReleaseOperation
.
GRAY_RELEASE
);
return
release
;
return
release
;
...
...
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