-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove dependency on Zfr/Rbac #3
Comments
This is a copy of Laminas-Commons/LmcRbacMvc#3 |
Hi @visto9259, I wanted to ask you before starting the work. I want to ask you what is your desired interest to proceed forward. I see two ways.
Thanks! |
Hi @ALTAMASH80, |
@visto9259, I did look into the Lamias\Permission\Rbac it looks like it is similar to ZfrRbac but with changes in method names and the two classes/services merged as one in Role. In ZfcRbac roles are divided into two services/classes namely Role/Hierarchal role. In comparison, Laminas\Permission\Rbac merged the two classes into one which seemed logical because the only difference was getting children and parents. So, I think we should use Laminas\Permission\Rbac it will be a learning experience for me as well. Thanks! |
@ALTAMASH80, |
Thanks, @visto9259 for creating a separate branch and sharing the roadmap. |
I have been comparing the classes and interfaces defined by LmcRbac, zfr/Rbac and laminas-rbac. They are similar but not enough to simply drop LmcRbac and zfr/Rbac in favor of only laminas-rbac. I think we need to make LmcRbac classes extensions of laminas-rbac. |
Hi @visto9259, What I've seen and observed through tests in Laminas\Rbac is that Laminas\Rbac has merged the two services into one. So, in ZfcRbac there were two different classes one was simply named Rbac and the second was HeirachalRole. Laminas\Rbac has merged the two into one class. Because of this tests are failing. I'm close to solving the issue without a backward compatibility break. If a break becomes essential in my finding I'll let you know. Thanks! |
@ALTAMASH80, |
Hi @visto9259, you're spot on with the class name. Thanks for the correction. As for the Zfr/Rbac isGranted() method and its contraction having to accept a traverse strategy can be removed altogether without any backward compatibility break. But, it is just my thought and my way of doing things. If I'm able to pass all the tests which are present in LmcRbac, then I'll be able to show you what I've done and how. At the moment I'm learning TTD through the module itself and progressing at the same time. Thanks! |
Hi @visto9259, I wanted to share my progress with you on the issue. Does this result suggest I'm ready to push the code? Thanks! |
Hi @ALTAMASH80, I would like to review your changes. Either you create a pull request or you share with me the link to your fork. Sorry for the delay, I have been busy with not much time to devote to this. |
Hi @visto9259, please consider my last reply as a rookie mistake in TDD. I tested it on the wrong branch and in the excitement shared the result. |
Hi @visto9259, I've passed all the tests and created a pull request. #36 |
fixed by #117 |
Remove the dependency on Zfr/Rbac.
Integrate the prototypes defined by Zfr/Rbac into the LmcRbac namespace
The text was updated successfully, but these errors were encountered: