Skip to content

Commit

Permalink
fix gray publish refresh item status(#4039) (#4128)
Browse files Browse the repository at this point in the history
* fix gray publish refresh item status(#4039)

* update CHANGES.md
  • Loading branch information
CalebZYC authored Dec 5, 2021
1 parent 0a76c8b commit 765a24e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Apollo 2.0.0
* [Support export/import configs by apollo env](https://github.com/apolloconfig/apollo/pull/3947)
* [Catch LinkageError for ClassLoaderUtil.isClassPresent in case class is present but is failed to load](https://github.com/apolloconfig/apollo/pull/4097)
* [Split helm chart into another repo](https://github.com/apolloconfig/apollo/pull/4125)
* [fix gray publish refresh item status](https://github.com/apolloconfig/apollo/pull/4128)

------------------
All issues and pull requests are [here](https://github.com/ctripcorp/apollo/milestone/8?closed=1)
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,16 @@ function releaseModalDirective($translate, toastr, AppUtil, EventManager, Releas
scope.releaseBtnDisabled = false;

//refresh item status
scope.toReleaseNamespace.branchItems.forEach(function (item, index) {
for (let index = 0; index < scope.toReleaseNamespace.branchItems.length; index++) {
const item = scope.toReleaseNamespace.branchItems[index];
if (item.isDeleted) {
scope.toReleaseNamespace.branchItems.splice(index, 1);
index--;
} else {
item.isModified = false;
}
});
}

//reset namespace status
scope.toReleaseNamespace.itemModifiedCnt = 0;
scope.toReleaseNamespace.lockOwner = undefined;
Expand Down

0 comments on commit 765a24e

Please sign in to comment.