Skip to content

Conversation

@roromix
Copy link
Contributor

@roromix roromix commented Feb 11, 2021

Q A
Branch? 5.x
Bug fix? no
New feature? yes
Deprecations? no
License MIT
Doc PR

I have added the possibility to create a login link for a specific locale. It's useful when we want generate a link for an other user who isn't in the same locale of us.

@carsonbot
Copy link

Hey!

I see that this is your first PR. That is great! Welcome!

Symfony has a contribution guide which I suggest you to read.

In short:

  • Always add tests
  • Keep backward compatibility (see https://symfony.com/bc).
  • Bug fixes must be submitted against the lowest maintained branch where they apply (see https://symfony.com/releases)
  • Features and deprecations must be submitted against the 5.x branch.

Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change.

When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor!
If this PR is merged in a lower version branch, it will be merged up to all maintained branches within a few days.

I am going to sit back now and wait for the reviews.

Cheers!

Carsonbot

@roromix
Copy link
Contributor Author

roromix commented Feb 11, 2021

Travis CI 7.2 and 8.0 OK, i don't understand why 7.4 failed ;)

Thanks in advance for review ;)

@wouterj
Copy link
Member

wouterj commented Feb 16, 2021

Hi!

I think we should make this more generic and instead add a $requestParameters argument that allows passing any arbitrary request parameter. This would be helpful to e.g. configure _target_path to be redirected to (or anything else you want).

Btw, this interface is still experimental, so I think we can allow this BC break by adding a new argument. This should however be documented as such in the CHANGELOG.md file in src/Symfony/Component/Security (and in UPGRADE-5.3.md in the root of the project).

Do you agree & are you able to make these changes in this PR? :)

status: needs work

@roromix
Copy link
Contributor Author

roromix commented Feb 18, 2021

Hi!

I think we should make this more generic and instead add a $requestParameters argument that allows passing any arbitrary request parameter. This would be helpful to e.g. configure _target_path to be redirected to (or anything else you want).

Btw, this interface is still experimental, so I think we can allow this BC break by adding a new argument. This should however be documented as such in the CHANGELOG.md file in src/Symfony/Component/Security (and in UPGRADE-5.3.md in the root of the project).

Do you agree & are you able to make these changes in this PR? :)

status: needs work

@wouterj : If @fabpot and others core members are ok with your proposal, i'm ok to make changes in this PR.

@chalasr
Copy link
Member

chalasr commented Mar 21, 2021

I would prefer Request $request = null over an arbitrary array here.
👍 for changing the interface with a changelog entry, that's what @experimental is for.

@OskarStark
Copy link
Contributor

I agree with Robin 👌🏻

@fabpot
Copy link
Member

fabpot commented Mar 23, 2021

@roromix To fix the tests, you must update the SecurityBundle composer.json to require symfony/security-http 5.3 as a minimum.

@roromix
Copy link
Contributor Author

roromix commented Mar 23, 2021

@roromix To fix the tests, you must update the SecurityBundle composer.json to require symfony/security-http 5.3 as a minimum.

@fabpot Thanks for your help. I will update this asap.

@roromix
Copy link
Contributor Author

roromix commented Mar 23, 2021

@roromix To fix the tests, you must update the SecurityBundle composer.json to require symfony/security-http 5.3 as a minimum.

Sorry @fabpot , but 5.3 is already as a minimum :
"symfony/security-http": "^5.3"

Maybe i haven't understand your message.

@fabpot
Copy link
Member

fabpot commented Mar 23, 2021

Perfect then (tests will be fixed after merging).

Copy link
Member

@chalasr chalasr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What a nice first contribution! Thank you @roromix

@nicolas-grekas
Copy link
Member

Thank you @roromix.

@nicolas-grekas
Copy link
Member

FYI, I added a conflict with symfony/security-bundle < 5.3, see 314ef9f

@roromix
Copy link
Contributor Author

roromix commented Mar 30, 2021

Sorry @nicolas-grekas , i need to correct the feature with new PR#40638

@fabpot fabpot mentioned this pull request Apr 18, 2021
chalasr added a commit that referenced this pull request May 23, 2021
This PR was submitted for the 5.4 branch but it was merged into the 5.3 branch instead.

Discussion
----------

remove duplicate test

Q | A
-- | --
Branch? | 5.x
Bug fix? | no
New feature? | yes
Deprecations? | no
License | MIT

The removed test is a duplication of Line 98 and introduced by #40153
I would prefer to conserve the test and edit value but the values are harcoded in the test

Commits
-------

39ae981 remove duplicate test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants