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

Documented the overridden form options #5313

Merged
merged 20 commits into from
Jun 28, 2015
Merged

Conversation

javiereguiluz
Copy link
Member

Q A
Doc fix? no
New docs? yes
Applies to all
Fixed tickets #3412

@wouterj
Copy link
Member

wouterj commented May 25, 2015

On the first question: Yes, you don't have to use includes. It's just to avoid duplication. If there still is a lot of copy/past, you can decide to use placeholders like in empty_value.rst.inc or seperate it like _error_bubbling_body.rst.inc and _error_bubbling_hint.rst.inc.

For the side note, it already has an issue: #5213

@javiereguiluz javiereguiluz changed the title [WIP] Documented the overridden form options Documented the overridden form options May 25, 2015
@javiereguiluz
Copy link
Member Author

This PR is now ready to be reviewed. Thanks.


**type**: ``boolean`` **default**: ``false``

This option specifies if the type is compound. This is independent of whether
Copy link
Contributor

Choose a reason for hiding this comment

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

this doesn't explain what "compound" means.

Copy link
Member Author

Choose a reason for hiding this comment

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

You are right! I'm waiting for the general fix of this issue: #5213

@@ -30,6 +30,8 @@ day and year) or three select boxes (see the `widget`_ option).
| | - `years`_ |
+----------------------+-----------------------------------------------------------------------------+
| Overridden Options | - `by_reference`_ |
Copy link
Member

Choose a reason for hiding this comment

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

options imho should be lowercased (to be consistent with "Inherited options").

@javiereguiluz
Copy link
Member Author

I've updated the description of the compound option. This PR is now ready for the final review. Thanks.

| | - `compound`_ |
| | - `data_class`_ |
| | - `error_bubbling`_ |
+----------------------+-----------------------------------------------------------------------------+
Copy link
Member

Choose a reason for hiding this comment

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

This block should be moved below the "Options" block.

Copy link
Member

Choose a reason for hiding this comment

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

and the same applies to the actual descriptions below

@xabbuh
Copy link
Member

xabbuh commented May 31, 2015

@javiereguiluz I left you some last minor comments. After that, this looks ready to be merged.

@wouterj
Copy link
Member

wouterj commented May 31, 2015

@xabbuh didn't we remove types from the overriden options? (as it's more about documenting the new value and why than actually documenting the option)

@xabbuh
Copy link
Member

xabbuh commented May 31, 2015

@wouterj At least, we are not consistent with this rule then: http://symfony.com/doc/current/reference/forms/types/entity.html#choice-list, http://symfony.com/doc/current/reference/forms/types/choice.html#compound

By the way, does it really make sense to leave out the type? I would then always have to look the type up in the parent type. That's not really comfortable, is it?

@javiereguiluz
Copy link
Member Author

@xabbuh I've fixed all the issues that you found and I've rebased the PR. I guess this is now ready to be merged. Thanks!

| Overriden | - `choice_list`_ |
| options | - `choices`_ |
| Overridden | - `choices`_ |
| options | - `choice_list`_ |
Copy link
Member

Choose a reason for hiding this comment

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

This should be reverted (see #5343).

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@xabbuh
Copy link
Member

xabbuh commented Jun 5, 2015

👍 Looks great now!

@weaverryan weaverryan merged commit 84633db into symfony:2.3 Jun 28, 2015
weaverryan added a commit that referenced this pull request Jun 28, 2015
This PR was merged into the 2.3 branch.

Discussion
----------

Documented the overridden form options

| Q             | A
| ------------- | ---
| Doc fix?      | no
| New docs?     | yes
| Applies to    | all
| Fixed tickets | #3412

Commits
-------

84633db Fixed a typo
596a0bc Reordered two overridden options
62a11d5 Added missing types in overridden options
2b63f24 Fixed the order of the different options
e14b650 Fixed the order of the different options
0a5781b Improved the explanation about the "compoun" option
eb20dc8 Fixer minor issues
974dfef Fixed errors noticed by Wouter
32c0af1 Removed a duplicated "trim" option in the "password" type
1dc53fa Removed again a duplicated option explanation
7f8e09a Removed a duplicated option explanation in "file" type
48b402b Extracted the common "data_class" option explanation for data-related types
f44e971 Documented the overridden options of "date" type
e41b3cc Documented overridden options for "file" type
8e825d9 Documented the overridden options of the "password" type
618e11d Documented the overridden options for "time" type
7ce8191 Documented overridden options for hidden field
a8ad338 Documented overriden options for numeric types
e66ec5c Created a compound_type file because this option is shared with lots of types
8d360d9 Documented the Overridden Options of the Text type
@weaverryan
Copy link
Member

Wow, BIG work - that's incredible. Thanks Javier!

So now, as long as code changes show up as docs issues/PR's, we can stay in sync permanently.

Minor reordering tweaks at sha: f28ef78. There is some inconsistency with the order of the sections, but I think that's ok - sometimes overridden seems more important than inherited and vice-versa. And really, in a perfect world, I'm not sure if we need these different sections at all - does a user care of it's inherited? And I might also want the order of the options to be non-alphabetical, and instead to be based on how common an option is. Just thinking aloud :)

Cheers!

@javiereguiluz javiereguiluz deleted the fix_3412 branch May 24, 2018 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants