Closed (fixed)
Project:
Drupal core
Version:
8.6.x-dev
Component:
Umami demo
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
12 Apr 2018 at 19:38 UTC
Updated:
19 Jul 2018 at 15:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
kjay commentedAttached is the first version of the article ready for review, any amends and turning into a patch. I'll be creating the image for this article very shortly.
I'm happy to turn it into a patch unless someone else gets there before me.
Here's the contents that we can use for for the article entry in the default content CSV file (title,body,author,slug,image,alt,tags):
Skip the spirits with delicious mocktails,
skip-the-spirits-with-delicious-mocktails.html,
"Megan Collins",
articles/skip-the-spirits-with-delicious-mocktails,
image-to-be-supplied.jpg,
"Alt text to be supplied",
"Alcohol free,Drinks,Party,Cocktail party,Dinner party"
Comment #3
kjay commentedNew version of the text because a) I forgot to change the copy to US English and b) a last minute edit I made on the introduction wasn't quite right.
Comment #4
kjay commentedUpdating the summary.
Comment #5
benjifisherComment #6
kjay commentedPlaceholder image attached.
Comment #7
timwoodWorking on this as part of DrupalCon Nashville!
Comment #8
kjay commentedThank you @timwood :)
Comment #9
timwoodv2 of proposed article content was hidden by benjifisher. Was that intentional? Which one should I use? Thanks!
Comment #10
timwoodI've been able to create the article body file with the v2 article text file provided here, updated the articles.csv, and successfully re-run the Drupal install process using the demo_umami install profile. Attached is a screenshot of the resulting article.
Patch file coming shortly...
Comment #11
timwoodComment #12
timwoodPatch attached. It's lacking the non-placeholder image file and actual alt text in the articles.csv. The filename for the image referenced in articles.csv is mocktail-umami.jpg.
Comment #13
timwoodComment #14
timwoodRemoved
<h1>tag content from article body html in patch because it was duplicating what's in the Drupal title.Comment #15
timwoodYeah, patch helps...
Comment #16
benjifisher@timwood:
No, I am not sure how that happened.
You left this issue in the "Needs Work" (NW) state. Was that intentional? Is the Todo list in the issue summary still accurate?
Comment #17
timwoodHi @benjifisher. Yes, the todo list in the issue summary is what I added after what I did at the sprints. I think @kjay intends to take an official photo for the article. I left it as needs work because of the todo items. I used the v2 article text, so the patch should include that.
Comment #18
msankhala commentedI am not sure if this file is auto generated. If this is not then it has missing new line at the end of file.
Comment #19
kjay commentedHere's an image I've taken of a mint mojito mocktail. Already sized and optimised for inclusion into the demo using the method already in place (bundled with core).
Should be straightforward to include this image and we need to include an entry in the licence file to release this under cc4.0
Comment #20
mukeysh commentedAdded image and added patch. Please review.
Comment #21
mukeysh commentedComment #22
markconroy commentedSmall typo here. I presume it should be 'olives', not 'olive…'
After that, I think this will be RTBC.
Comment #23
mukeysh commentedI have made changes as mentioned above. Please review.
Comment #24
mukeysh commentedComment #25
brucedarby commentedPicking this up for review at DrupalCamp Scotland contribution sprint.
Comment #26
brucedarby commentedJust a minor typo - full-stop missing from the end of the sentence that was corrected in this latest patch.
<p>Strawberries add a beautiful rich red to this mocktail, while the ginger gives it a little kick. Serve in a proper martini glass, but maybe avoid the olives</p>So should be "olives." rather than "olives".
After that should be good to go.
Comment #27
brucedarby commentedComment #28
johnny_aroza commentedI have fixed the typo mentioned above and uploaded the patch
Comment #30
markconroy commentedHi Folks,
When supplying patches, can you also supply an interdiff between your patch and the patch your are working from? It makes it much easier to see exactly what has changed in your code.
Thanks for all the work!
Comment #31
johnny_aroza commentedin the patch file, I am getting some extra character and failing to apply patch can someone guide me on the same.
Comment #32
cferthorney@johnny221B As far as I can see using the diff tool, the difference occurs within one of the binary files, as shown below:
I would suggest resetting to the current 8.6.x branch using
[code]git checkout 8.6.x && git pull[/code]
You can then look at reapplying patch 22, and correcting the typo again. I have done this for this patch.
Attached are 2960483-umami-mocktails-article-32.patch and interdiff-2960483-22-32.txt
Comment #33
cferthorneyForgot to mark as needs review.
Comment #35
msankhala commentedLooks like test bot hickup. Even though build was successful.
I can confirm the patch #32 applies cleanly and creates a new article about mocktail. Here are screenshots.
Comment #36
alexpottThis needs a reroll.
Comment #37
cferthorneyReroll of #32.
Comment #38
jofitzRemoved Needs Reroll tag
Comment #39
brahmjeet789 commented@cferthorney : i have applied your patch and it applied clearly but i m unable to see new article in my site ,please refer to my screen shot i have cleared the cache by drush and form admin menu .
Comment #40
cferthorney@brahmjeet789 re: #39,
Did you do this on a fresh install of the `demo_umami` profile? Content is only added with a fresh install. With a fresh install, this worked for me. One way to do this is to drop and recreate your demo_umami site database, then install via drush again as before. With an empty database, you can also visit `{Your dev site URL}/core/install.php`.
I hope this helps.
Comment #41
brahmjeet789 commented@cferthorney sorry mine mistake now i can see the article ,please refer to my screenshots.
Comment #42
brahmjeet789 commentedComment #43
eli-tDon't mean to bikeshed but I think the language here needs further changes:
These are both questions, so should end with a question mark.
should be
Far too many commas here. Suggest
I believe the correct term in cocktail parlance is muddled
In fact, the structure of
is odd, because the first part is written as to not be an explicit instruction, but is followed by then second part.
This could be fixed by for example
Again, suggest muddle
Comment #44
timwood+1 for muddled/muddle parlance
Comment #45
Vidushi Mehta commentedAdded a patch according to #43 above mentioned points.
Comment #46
mahtab_alam commentedpatch fails to apply on 8.6x dev

Comment #47
mahtab_alam commentedComment #48
msankhala commented@mahtab_alam The patch #45 is not failing it is just throwing warnings about whitespace because this patch has binary content of a jpg file. @Vidushi Mehta Can you please provide the interdiff? See https://www.drupal.org/documentation/git/interdiff
Comment #49
mahtab_alam commented@msankhala The patch should apply cleanly without warning
Comment #50
eli-t@mahtab_alam that's unfortunately not the case when you are including images in your patches. Whilst it's annoying to get the warnings when applying the patches, this is accepted if the patch still works correctly. There have been lots of successful patches for Umami where this is the case!
Comment #51
eli-tJust spun this up on simplytest.me and we're definitely getting closer! I can verify all the points I raised in #43 have been addressed.
We still need to add alt text for the image - it currently reads "Alt text to be supplied".
Also the writing style for Umami advocates Oxford Commas where possible: https://www.drupal.org/project/drupal/issues/2940146 - so we should add these as follows:
Also I'm slightly confused over
What colored glass are we adding to drinks? Should this be glasses as the previous two in the list are pluralised? If so, we've already mentioned glasses so perhaps this is redundant.
Should be a glass or glasses. As we've just made a full pitcher, I'd go with glasses
Comment #52
Vidushi Mehta commentedAdded a patch with above mention points of #51. Let me know if there's any change regarding alt text.
Comment #53
esod commentedReviewing this patch at Design4Drupal in Boston.
The patch applies cleanly with:
All the whitespace errors come from the binary, mojito-mocktail.jpg, and there is nothing we can do about binaries.
I have reviewed the content and it reads correctly to my eyes. Changing the status of this issue to RTBC.
Comment #54
esod commentedComment #55
eli-tWe've replaced
with
- if we removed the bit about colored glass, we need to add and in between cocktail glasses, cool tumblers. That is
Apart from that, my comments in #51 have all been addressed satisfactorily.
Comment #56
Vidushi Mehta commentedOops!! Sorry my mistake.
Here's a patch with a change.
Comment #57
eli-t@Vidishu Mehta it would be really helpful to provide an interdiff when supplying a patch when a patch already exists. It helps reviewers check that just the latest requested changes are required.
https://www.drupal.org/documentation/git/interdiff
Comment #58
surabhi-gokte commentedComment #59
surabhi-gokte commentedReviewed the patch manually. The text is now changed to "Don't forget the classic cocktail glasses and cool tumblers to really bring these recipes to life." Refer the screenshot

Comment #60
eli-tThanks @Surabhi Gokte, I concur with your RTBC!
Comment #61
eli-tComment #62
alexpottWhilst testing this I noticed that the tags on each article and recipe probably need review - it seems most tags are only used once which I'm not sure achieves what's wanted.
I fixed the file modes on commit.
Committed 89a86c1 and pushed to 8.6.x. Thanks!