Closed jordisala1991 closed 2 years ago
Will be Groups feature in another bundle?
If you just need to group some roles you can use roles_hierarchy from symfony already.
If you need some more complex solution, you might take a look at voters. The groups feature was not a good solution since it forces always a query to check for the groups roles, it wont be provided by Sonta (you can still reimplement it by yourself if you really need to)
After #1490 we are almost there
Things missing:
Even though we have a lot of functional tests and I'm pretty sure most of the bundle should work just fine if would be nice to also test this with a real app on Symfony (more than one version ideally 5.4 + 6.0 + new security system / old security system)
There is one nice to have, which is to be able to disable/enable reseting password feature. Tbh I don't care a lot if we don't do it for 5.0, it wasn't configurable before anyway.
The only thing that bothers me a bit is: #1483 . If that's true we might take a look at that, because otherwise the migration won't be easy at all, you might need to change all passwords coming from FOSUser to make your previous data work. It would be nice to have this working but not sure if it is possible.
wdyt @VincentLanglet ?
We might do an alpha release, but with #1483 I am not sure about it.
There is one nice to have, which is to be able to disable/enable reseting password feature. Tbh I don't care a lot if we don't do it for 5.0, it wasn't configurable before anyway.
The only thing that bothers me a bit is: https://github.com/sonata-project/SonataUserBundle/issues/1483 . If that's true we might take a look at that, because otherwise the migration won't be easy at all, you might need to change all passwords coming from FOSUser to make your previous data work. It would be nice to have this working but not sure if it is possible.
I totally agree with you
We might do an alpha release, but with https://github.com/sonata-project/SonataUserBundle/issues/1483 I am not sure about it.
The alpha could be a way to have more early-tester and confirm the issue or get help on it.
There is one nice to have, which is to be able to disable/enable reseting password feature. Tbh I don't care a lot if we don't do it for 5.0, it wasn't configurable before anyway. The only thing that bothers me a bit is: #1483 . If that's true we might take a look at that, because otherwise the migration won't be easy at all, you might need to change all passwords coming from FOSUser to make your previous data work. It would be nice to have this working but not sure if it is possible.
I totally agree with you
We might do an alpha release, but with #1483 I am not sure about it.
The alpha could be a way to have more early-tester and confirm the issue or get help on it.
I have extracted the reset password optional feature and merged the last PR.
To me we are ready for an alpha to see if there is a real problem with those passwords.
We just need to generate the changelog then
Besides the problem solved in #1500 it works good on a Symfony 6 with new security system so far. I have tested the password migration from RunroomUserBundle but didn't had the time to test it coming from FOSUserBundle (I might need some help with that)
I have tested for the old security system, it works too. You need to make sure you disable:
security:
enable_authenticator_manager: false
And enabled anonymous:
security:
firewalls:
admin:
anonymous: true
So we just need to update the doc before the next release ?
There are 3 things missing:
I might be able to test the migration from v4 to v5 soon, hopefully this week or the next.
I did a test for the migration from SF 4.4 Sonata 3 to SF 4.4 Sonata 4 (including migration from SonataUserBundle 4 to 5). My steps was:
console fos:user:create --super-admin
Then for the update:
Everything worked so far... if someone else want to try to see if there is a bug.. but for my side I can't reproduce with those steps.
Since we are only missing translations and docs, we might do an RC release? wdyt @VincentLanglet , or should we wait for translations at least?
Since we are only missing translations and docs, we might do an RC release? wdyt @VincentLanglet , or should we wait for translations at least?
I would say that having translations could be better for a RC
Feature Request
There are more things to do for 5.0:
Translations:
Tests:
Documentation:
As soon as I know more things to do I will keep adding them.