sonata-project / SonataUserBundle

Symfony SonataUserBundle
https://docs.sonata-project.org/projects/SonataUserBundle
MIT License
339 stars 488 forks source link

Roadmap to 5.0 #1465

Closed jordisala1991 closed 2 years ago

jordisala1991 commented 2 years ago

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.

andyhobbs commented 2 years ago

Will be Groups feature in another bundle?

jordisala1991 commented 2 years ago

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)

jordisala1991 commented 2 years ago

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.

VincentLanglet commented 2 years ago

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.

jordisala1991 commented 2 years ago

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.

VincentLanglet commented 2 years ago

We just need to generate the changelog then

jordisala1991 commented 2 years ago

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)

jordisala1991 commented 2 years ago

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
VincentLanglet commented 2 years ago

So we just need to update the doc before the next release ?

jordisala1991 commented 2 years ago

There are 3 things missing:

4c0n commented 2 years ago

I might be able to test the migration from v4 to v5 soon, hopefully this week or the next.

jordisala1991 commented 2 years ago

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:

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.

jordisala1991 commented 2 years ago

Since we are only missing translations and docs, we might do an RC release? wdyt @VincentLanglet , or should we wait for translations at least?

VincentLanglet commented 2 years ago

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