Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
node system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
30 Mar 2014 at 10:48 UTC
Updated:
29 Jul 2014 at 23:30 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Michael Hodge Jr commentedComment #2
Michael Hodge Jr commentedsee attached
Comment #3
Michael Hodge Jr commentedComment #4
tim.plunkettLooks good, thanks!
Comment #5
berdirYep, looks great. This probably needs an issue summary or at least a mention of has_title somewhere in an issue that is about widgets/formatters for base fields.
Comment #6
tstoecklerHas someone actually tested that hiding this using the form display works? As title is a required property we would need some way to set a default value. As far as I know this will only be possible with #2226493: Apply formatters and widgets to Node base fields.
Comment #7
berdirThat issue is part of a meta issue which has "(except node.title)" in its issue title, because that was already ported as it was used to implement the functionality :)
So yes, this works, it works even better than it should, in fact. This feature was never visible in the UI in core. But now you can hide the title and create nodes that don't have a title. There's an issue for that, see #2111443: Show a warning when configuring form displays when a field is hidden and has no default value. (issue title is not correct, ignore that ;))
Comment #8
tstoecklerDuh, sorry. Yes, that makes sense! Thanks for the explanation.
Comment #9
jessebeach commentedHere is the draft change record. We need to have it filled out before committing this issue: https://drupal.org/node/2231763
Comment #10
berdirUpdated the change record, should be ready to go.
Comment #11
alexpottThis is the Drupal 6 database. We shouldn't be removing this.
Comment #12
Michael Hodge Jr commentedI'll fix it and get another patch submitted.
Comment #13
Michael Hodge Jr commentedI've removed the overreaching aspect of the patch, and re-applied it/tested against the latest version in HEAD.
Comment #14
berdirGood point, but what should we be doing with it then? I guess we need to check if there is a already a test for it in the IMP sandbox? https://drupal.org/sandbox/chx/2105305
Not sure I care enough to add a specific migration for it and a test, if there isn't one yet? My guess is that people first need a module to take care of a default value for the title before it is useful to hide it again, see #2111443: Show a warning when configuring form displays when a field is hidden and has no default value.
@Michael Hodge Jr: When updating a patch, it is helpful to provide an interdiff to make it easier to see the difference.
Comment #15
Michael Hodge Jr commentedThanks @Berdir. Attached is the interdiff.txt
Comment #16
Michael Hodge Jr commentedComment #17
berdir13: remove_node_type-2229163-13.patch queued for re-testing.
Comment #19
Michael Hodge Jr commentedIt looks like the patch may need to be re-rolled. I can work on that and get another patch up and ready for testing.
Comment #20
berdirThe migrate patch landed, I assume it conflicted with that someone.
As discussed with the migrate time, if there is a migration defined for has_title somewhere, then we should remove it and open a minor follow-up issue to move it to the entity form display. As discussed above, I'm not sure if we should really do that but we can discuss that there.
Comment #21
cilefen commentedGetting ready for the Austin DrupalCon sprint, following http://www.hook42.com/blog/prepping-drupalcon-austin-sprints-sprint-lead...
Comment #22
bburgWorking on this patch re-roll at DrupalCon Austin.
Comment #23
bburgRe-rolled patch in 13.
Comment #24
bburgReleasing this from myself as I am unable to work on this for the moment. Maybe some folks at the DrupalCon sprint are interested.
Comment #25
rixter commentedI'm at the sprint & working on it…
Comment #26
rixter commentedComment #27
rixter commentedUnassigned, but still working on this...
Comment #28
rixter commentedComment #29
rixter commentedRemoved all incidences on has_title, including in the migrations, based on comment #20.
Comment #30
berdirWe shouldn't remove it from the source, because it does exist there, and as discussed above, we might want to consider migrating it to a component configuration later. So remove it from the tests and migration files but not the D6 dumps.
Comment #31
thechanceg commentedI rerolled that patch with the suggestion of Berdir in #30.
Comment #33
thechanceg commented31: remove-has-title-2229163-31.patch queued for re-testing.
Comment #34
berdirLooks good, thanks.
Comment #35
alexpottCommitted 3154700 and pushed to 8.x. Thanks!
Comment #37
alexpottCommitted c723131 and pushed to 8.x. Thanks!