This is an automated email from the ASF dual-hosted git repository.
kirs pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new ba2bb22 [Improvement][API] create project success return project id
(#4927)
ba2bb22 is described below
commit ba2bb22100a2d20180477897cadd6cb57b139dd2
Author: zhuangchong <[email protected]>
AuthorDate: Tue Mar 2 18:03:59 2021 +0800
[Improvement][API] create project success return project id (#4927)
* create project success return project id.
* update return data structure
---
.../apache/dolphinscheduler/api/service/impl/ProjectServiceImpl.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProjectServiceImpl.java
b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProjectServiceImpl.java
index 50bee6f..c2e85cf 100644
---
a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProjectServiceImpl.java
+++
b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProjectServiceImpl.java
@@ -14,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package org.apache.dolphinscheduler.api.service.impl;
import static org.apache.dolphinscheduler.api.utils.CheckUtils.checkDesc;
@@ -97,7 +98,7 @@ public class ProjectServiceImpl extends BaseServiceImpl
implements ProjectServic
.build();
if (projectMapper.insert(project) > 0) {
- result.put(Constants.DATA_LIST, project);
+ result.put(Constants.DATA_LIST, project.getId());
putMsg(result, Status.SUCCESS);
} else {
putMsg(result, Status.CREATE_PROJECT_ERROR);