Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
update system
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
23 Aug 2010 at 14:54 UTC
Updated:
3 Jan 2014 at 02:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ctmattice1 commentedAlso to note #866410: node_update_7006() relies on has_body
Found this out the hard way.
Comment #2
chx commentedThis simple patch gets us ready there will be 1 exception due to taxonomy 7005, i can't help that there is an issue alreayd there for that. Also the "has_body" and the body_label information is simply not there. The contribs will need to take care of that. By the way this is another bug, as you disable your contribs you lose the customized body label but that's not this issue. I am adding a body label saying 'Upgraded body label' and then either the associated contrib can run a simple field_update_instance or let the user fix from field UI.
Comment #4
chx commentedStill needs review, that exception does not belong to this one. It needs review, like what should be the label? Body? I used Upgraded body label but I am unsure.
Comment #5
bjaspan commentedI would say the body label should be "Body". That's what almost everyone uses so it will usually be right, and as you say they can fix it via the UI. If not "Body", my second choice would be "Body (upgraded)". But then a valid question would be why that node type has "upgraded" when all the others do not. So just "Body" is probably best, it will lead to the fewest support questions in the forums. :-)
The patch looks good to me. Should we wait for #706842: Improve comments for the taxonomy upgrade path to remove the failure? It isn't clear to me why the test fails here but not for currently committed HEAD; does no other test call $this->performUpgrade()?
Comment #6
plachsubscribe
Comment #7
chx commentedOK, Body it is and yes it's the 706842 that fails us. I will reroll once that's in.
Comment #8
jp.stacey commentedI'm aware that this bug is awaiting #706842: Improve comments for the taxonomy upgrade path but I'm at a loose end so I thought it might be useful to test with a concrete example.
I can repeat the original bug with image.module specifically. That's not a great choice given there might be confusion over images in core, but webform no longer owns its own nodes and I don't have much experience of any other content-type-creating modules!
Here's the steps to repeat:
When I apply the patch in #2 the body content is transferred successfully and visible on the new site. However, when I navigate to the node edit page, I get an error:
The image content type is not available at admin/structure/types . I guess this is related to the fact that the content type also disappears in D6 when the image node is disabled, but does that error needs catching? It does also exist on the D6 node-edit page immediately after the image.module is first disabled:
so maybe this is working as designed? Seems a shame to have a broken site without a clear upgrade path for end users if that's the case.
Comment #9
damien tournoud commented@jp.stacey: what you describe feels like as-designed. The image module is not there to handle this node in D7, so it's natural that things falls apart.
Comment #10
bjaspan commented#706842: Improve comments for the taxonomy upgrade path is ready for what I think is its final review.
Comment #11
ctmattice1 commentedpatch in #2 works, will retry with #706842: Improve comments for the taxonomy upgrade path patch in place.
Comment #12
catch#2: body_up.patch queued for re-testing.
Comment #13
catchIMO the label should just be "Body" rather than "Upgraded body label" - that way people upgrading may not need to bother fixing at all if they left things as default. Looks great otherwise.
Comment #15
tstoecklerTypo.
Also, concerning the body label can we not simply do #13 (just "Body") and then provide a message on the finished upgrade? Something like (but more elaborate): "The labels of the body fields on your content types have all been renamed to "Body". You will need to manually edit them if you used differing labels."
Powered by Dreditor.
Comment #16
chx commentedRerolled w body as label.
Comment #17
catchCan't see anything else to complain about, RTBC now.
Comment #18
catchComment #19
dries commented1. Can we name the test file upgrade.node.test or something, and group all node system related tests in one file? Let's do a quick re-roll of this.
2.
...
It is not clear why sometimes we use a constant, and other times we compute the URL.
Looks RTBC otherwise.
Comment #20
chx commentedYes sir. These were trivial to fix.
Comment #21
webchickSince those were Dries's only complaints, committed to HEAD. Thanks a lot for snuffing this one... how nasty.