Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Serializer] Fallback looking for DiscriminatorMap on interfaces #47221

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

Merged
merged 1 commit into from
Sep 10, 2023

Conversation

Caligone
Copy link
Contributor

@Caligone Caligone commented Aug 8, 2022

Q A
Branch? 6.2
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #47219
License MIT
Doc PR No

First time here
Trying to properly fix #47219 but I'm not sure about the impact of this changes
I am also not sure either if it should be a 6.2 or 6.1 based branch

  • Globally validate the behavior
  • Add tests

@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 6.2 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

@carsonbot carsonbot added this to the 6.2 milestone Aug 8, 2022
@carsonbot
Copy link

It looks like you unchecked the "Allow edits from maintainer" box. That is fine, but please note that if you have multiple commits, you'll need to squash your commits into one before this can be merged. Or, you can check the "Allow edits from maintainers" box and the maintainer can squash for you.

Cheers!

Carsonbot

@Caligone Caligone changed the title [Serializer] Fallback Looking for DiscriminatorMap on interfaces [Serializer] Fallback looking for DiscriminatorMap on interfaces Aug 8, 2022
@Caligone Caligone marked this pull request as draft August 8, 2022 12:10
Caligone added a commit to yurplan/serializer that referenced this pull request Aug 9, 2022
@nicolas-grekas nicolas-grekas modified the milestones: 6.2, 6.3 Nov 5, 2022
@Caligone Caligone marked this pull request as ready for review November 24, 2022 09:30
@carsonbot carsonbot modified the milestones: 6.3, 6.2 Nov 24, 2022
@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 6.2 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

@carsonbot
Copy link

It looks like you unchecked the "Allow edits from maintainer" box. That is fine, but please note that if you have multiple commits, you'll need to squash your commits into one before this can be merged. Or, you can check the "Allow edits from maintainers" box and the maintainer can squash for you.

Cheers!

Carsonbot

@derrabus
Copy link
Member

Hello. Sorry nobody has picked up your PR yet. I have to ask you to provide a test for your change. This helps a reviewer understand the problem that you're attempting to fix. The test also makes sure, your bug is not re-introduced by accident.

@Caligone Caligone force-pushed the serializer-multiple-interfaces branch from 83bd108 to ed8336f Compare November 29, 2022 08:01
@Caligone
Copy link
Contributor Author

No worries
As requested, I added a test
I would be happy to receive feedback and make adjustments as needed

@Caligone Caligone force-pushed the serializer-multiple-interfaces branch from ed8336f to 5333c6d Compare May 11, 2023 08:14
@nicolas-grekas nicolas-grekas modified the milestones: 6.3, 6.4 May 23, 2023
Copy link
Contributor

@mtarld mtarld left a comment

Choose a reason for hiding this comment

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

Almost good!

@mtarld
Copy link
Contributor

mtarld commented Sep 1, 2023

As it's an old bug, could you target the 5.4 branch instead?

@Caligone Caligone force-pushed the serializer-multiple-interfaces branch from 5333c6d to f282ca2 Compare September 2, 2023 07:42
@Caligone Caligone changed the base branch from 6.4 to 5.4 September 2, 2023 07:43
@Caligone Caligone force-pushed the serializer-multiple-interfaces branch from f282ca2 to bfc4bdd Compare September 2, 2023 07:46
@Caligone
Copy link
Contributor Author

Caligone commented Sep 2, 2023

Thanks for the feedback !
I rebased and fixed last issues

@fabpot fabpot modified the milestones: 6.4, 5.4 Sep 10, 2023
@fabpot
Copy link
Member

fabpot commented Sep 10, 2023

Thank you @Caligone.

@fabpot fabpot merged commit 9271349 into symfony:5.4 Sep 10, 2023
This was referenced Sep 30, 2023
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.

[Serializer] DiscriminatorMap with multiple interfaces/abstract class
7 participants