Skip to content
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

[Form] 46867 - add more helpful property path accessor exceptions #47438

Closed
wants to merge 9 commits into from
Closed

[Form] 46867 - add more helpful property path accessor exceptions #47438

wants to merge 9 commits into from

Conversation

patrickmaynard
Copy link
Contributor

@patrickmaynard patrickmaynard commented Aug 30, 2022

| Branch? | 6.3
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Tickets | #46867
| License | MIT
| Doc PR | none

Dear reviewers,

This small modification adds more helpful exceptions when properties cannot be accessed/set
using forms. Only one file was modified, so it should be relatively easy to review. Please feel free to leave a comment if you have any questions about what I'm doing here, and thanks for your work as a reviewer on an open-source project!

All the best,

Patrick

@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

@xabbuh
Copy link
Member

xabbuh commented Aug 31, 2022

@patrickmaynard Can you rebase your changes onto the latest 6.2 branch? That will hopefully fix the failures.

@xabbuh xabbuh added the Form label Sep 2, 2022
@carsonbot carsonbot changed the title 46867 - add more helpful property path accessor exceptions [Form] 46867 - add more helpful property path accessor exceptions Sep 2, 2022
@patrickmaynard
Copy link
Contributor Author

patrickmaynard commented Oct 19, 2022

@patrickmaynard Can you rebase your changes onto the latest 6.2 branch? That will hopefully fix the failures.

Currently, when I run git branch in my repository, I get this:

* 6.2

@xabbuh Is there another branch I should be rebasing to? If so, can you provide text of a command that I should be using to do that?

@nicolas-grekas nicolas-grekas modified the milestones: 6.2, 6.3 Nov 5, 2022
patrickmaynard and others added 2 commits March 22, 2023 13:28
@patrickmaynard
Copy link
Contributor Author

@fabpot @xabbuh @yceruto it looks like there is a seemingly unrelated set of unit tests failing with the following information:

Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
-    0 => 2023-03-21T13:45:00.000000+0000
-    1 => 2023-03-28T13:45:00.000000+0000
-    2 => 2023-04-04T13:45:00.000000+0000
-    3 => 2023-04-11T13:45:00.000000+0000
-    4 => 2023-04-18T13:45:00.000000+0000
-    5 => 2023-04-25T13:45:00.000000+0000
-    6 => 2023-05-02T13:45:00.000000+0000
-    7 => 2023-05-09T13:45:00.000000+0000
-    8 => 2023-05-16T13:45:00.000000+0000
-    9 => 2023-05-23T13:45:00.000000+0000
-    10 => 2023-05-30T13:45:00.000000+0000
-    11 => 2023-06-06T13:45:00.000000+0000
-    12 => DateTimeImmutable Object (...)
+    0 => 2023-03-28T13:45:00.000000+0000
+    1 => 2023-04-04T13:45:00.000000+0000
+    2 => 2023-04-11T13:45:00.000000+0000
+    3 => 2023-04-18T13:45:00.000000+0000
+    4 => 2023-04-25T13:45:00.000000+0000
+    5 => 2023-05-02T13:45:00.000000+0000
+    6 => 2023-05-09T13:45:00.000000+0000
+    7 => 2023-05-16T13:45:00.000000+0000
+    8 => 2023-05-23T13:45:00.000000+0000
+    9 => 2023-05-30T13:45:00.000000+0000
+    10 => 2023-06-06T13:45:00.000000+0000
+    11 => 2023-06-13T13:45:00.000000+0000
 )

Do you know if this is a known generic issue that has a simple fix? It really doesn't seem to have anything to do with the material that I'm changing.

@xabbuh
Copy link
Member

xabbuh commented Mar 25, 2023

@patrickmaynard Can you rebase your changes onto the latest 6.3 branch? That should solve the test issue as a bugfix for those has been merged into the Scheduler component recently.

@patrickmaynard
Copy link
Contributor Author

@patrickmaynard Can you rebase your changes onto the latest 6.3 branch? That should solve the test issue as a bugfix for those has been merged into the Scheduler component recently.

Unfortunately, I ran into some problems while doing this, which corrupted my branch history. Since this is just a one-file change, I will create a new branch and pull request based on 6.3. Thanks!

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.

5 participants