Z-HUANT opened a new pull request, #2411:
URL: https://github.com/apache/incubator-hugegraph/pull/2411

   
   
   ## Purpose of the PR
   
   修复需要重新初始化数据库才能设置 auth 的问题,相关 
issue:https://github.com/apache/incubator-hugegraph/issues/125#issuecomment-717713131
   
   <!--
   Please explain more context in this section, clarify why the changes are 
needed. 
   e.g:
   - If you propose a new API, clarify the use case for a new API.
   - If you fix a bug, you can clarify why it is a bug, and should be 
associated with an issue.
   -->
   
   ## Main Changes
   
   不需要重新初始化数据库就可以设置 auth
   
   ## Verifying these changes
   
   <!-- Please pick the proper options below -->
   
   - [ ] Trivial rework / code cleanup without any test coverage. (No Need)
   - [ ] Already covered by existing tests, such as *(please modify tests 
here)*.
   - [x] Need tests and can be verified as follows:
   
    自己测试流程如下
   1. 使用非 auth init-store 初始化图,此时无 admin 账号
   2. 使用非 auth 启动 HugeGraph,正常添加和查询数据(模拟用户操作)
   3. 使用 auth init-store 初始化图,创建 admin 账号,模拟用户运行一段时间后,数据库内有数据了后,想增加 auth 
   4. 使用 auth 启动 HugeGraph,可以正常启动,权限校验正常,此时访问接口都需要账号密码
   5. 使用非 auth 启动 HugeGraph,模拟用户不想要 auth 了,此时可以正常启动,访问接口不需要账号密码
   
   ## Does this PR potentially affect the following parts?
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [ ]  Nope
   - [ ]  Dependencies (add/update license info) <!-- Don't forget to 
add/update the info in "LICENSE" & "NOTICE" files (both in root & dist module) 
-->
   - [ ]  Modify configurations
   - [ ]  The public API
   - [x]  Other affects (typed here)
   
   影响 init-store
   
   ## Documentation Status
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [x]  `Doc - TODO` <!-- Your PR changes impact docs and you will update 
later -->
   - [ ]  `Doc - Done` <!-- Related docs have been already added or updated -->
   - [ ]  `Doc - No Need` <!-- Your PR changes don't impact/need docs -->
   
   PR 通过后修改 Doc
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to