前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >为streampark新增用户资源转移功能

为streampark新增用户资源转移功能

作者头像
阿超
发布2023-05-11 19:06:14
2400
发布2023-05-11 19:06:14
举报
文章被收录于专栏:快乐阿超快乐阿超

凡事一俭,则谋生易足;谋生易足,则求人无争,亦于人无求。——钱泳

相关的prhttps://github.com/apache/incubator-streampark/pull/2734

对应的描述:

What changes were proposed in this pull request

Issue Number: close #2712

Brief change log

  1. Requirement:
  • The administrator cancels the user deletion function and replaces it with disabling users.
236688445-1e61b77d-7db5-4cec-9546-832bebb9dbbe
236688445-1e61b77d-7db5-4cec-9546-832bebb9dbbe
  1. Detailed logic:
  • The administrator cancels the user deletion function.
  • When the user account is disabled, it cannot own resources (application and project ownership)
  • Add resource transfer function to transfer disabled user resources to new users
8f04aebad699a2e235467432a89f976
8f04aebad699a2e235467432a89f976

Verifying this change

Change the user’s status when the user has resources.

This change is already covered by existing tests, such as UserServiceTest.

This change added tests and can be verified as follows:

  1. testLockUser in UserServiceTest
  • This unit test covers different scenarios for locking and unlocking a user when they have no resources, as well as locking a user when they have resources and checking the different return results.
  1. testTransferResource in UserServiceTest
  • This unit test involves transferring a user’s resources to another person.

Does this pull request potentially affect one of the following parts

  • Dependencies (does it add or upgrade a dependency): no
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2023-05-08,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • What changes were proposed in this pull request
  • Brief change log
  • Verifying this change
  • Does this pull request potentially affect one of the following parts
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档