We've written a new article about Mocktails for the Umami Demo and this issue is to get the article reviewed and added into the articles section of Umami.

Todo:

  • Article still needs official non-placeholder photo.
  • Write alt text for said image.
  • Proof the article
CommentFileSizeAuthor
#59 umami-contrib-text-test.png500.55 KBsurabhi-gokte
#56 2960483-56.patch54.66 KBVidushi Mehta
#52 2960483-52.patch54.66 KBVidushi Mehta
#46 issue1.png64.62 KBmahtab_alam
#45 2960483-45.patch54.59 KBVidushi Mehta
#41 Screenshot-2018-6-7 Skip the spirits with delicious mocktails Umami Food Magazine.png1.77 MBbrahmjeet789
#41 Screenshot-2018-6-7 Articles Umami Food Magazine.png1.38 MBbrahmjeet789
#39 no-new-article.png288.05 KBbrahmjeet789
#39 patc-applied.png130.7 KBbrahmjeet789
#37 2960483-umami-mocktails-article-37.patch54.64 KBcferthorney
#35 after-home-page.png884.59 KBmsankhala
#35 after-article-page.png544.77 KBmsankhala
#35 after-new-article-mocktail.png1.35 MBmsankhala
#2 skip-the-spirits-with-delicious-mocktails.txt2.63 KBkjay
#6 mocktail-placeholder-umami.jpg53.86 KBkjay
#10 screencapture-sprint-20180413-1048-ddev-local-8443-articles-skip-the-spirits-with-delicious-mocktails-2018-04-13-12_20_33.png4.28 MBtimwood
#10 screencapture-sprint-20180413-1048-ddev-local-8443-articles-skip-the-spirits-with-delicious-mocktails-2018-04-13-12_24_10.png3.74 MBtimwood
#12 2960483-umami-mocktails-article.patch4.72 KBtimwood
#15 2960483-umami-mocktails-article-14.patch4.64 KBtimwood
#19 mojito-mocktail.jpg48.77 KBkjay
#20 2960483-umami-mocktails-article-20.patch54.69 KBmukeysh
#23 2960483-umami-mocktails-article-22.patch54.68 KBmukeysh
#28 2960483-umami-mocktails-article-28.patch54.68 KBjohnny_aroza
#32 2960483-umami-mocktails-article-32.patch54.68 KBcferthorney
#32 interdiff-2960483-22-32.txt1.5 KBcferthorney

Comments

kjay created an issue. See original summary.

kjay’s picture

Attached 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"

kjay’s picture

New 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.

kjay’s picture

Issue summary: View changes

Updating the summary.

benjifisher’s picture

Issue summary: View changes
Issue tags: +Nashville2018, +Novice
kjay’s picture

StatusFileSize
new53.86 KB

Placeholder image attached.

timwood’s picture

Working on this as part of DrupalCon Nashville!

kjay’s picture

Thank you @timwood :)

timwood’s picture

v2 of proposed article content was hidden by benjifisher. Was that intentional? Which one should I use? Thanks!

timwood’s picture

I'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...

timwood’s picture

Issue summary: View changes
Status: Active » Needs work
StatusFileSize
new4.72 KB

Patch 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.

timwood’s picture

Issue summary: View changes
timwood’s picture

Removed <h1> tag content from article body html in patch because it was duplicating what's in the Drupal title.

timwood’s picture

StatusFileSize
new4.64 KB

Yeah, patch helps...

benjifisher’s picture

@timwood:

v2 of proposed article content was hidden by benjifisher. Was that intentional?

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?

timwood’s picture

Hi @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.

msankhala’s picture

+++ b/core/profiles/demo_umami/modules/demo_umami_content/default_content/articles.csv
@@ -3,3 +3,4 @@ Give it a go and grow your own herbs,give-it-a-go-and-grow-your-own-herbs.html,H
\ No newline at end of file

I am not sure if this file is auto generated. If this is not then it has missing new line at the end of file.

kjay’s picture

StatusFileSize
new48.77 KB

Here'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

mukeysh’s picture

StatusFileSize
new54.69 KB

Added image and added patch. Please review.

mukeysh’s picture

Status: Needs work » Needs review
markconroy’s picture

Status: Needs review » Needs work
+++ b/core/profiles/demo_umami/modules/demo_umami_content/default_content/article_body/skip-the-spirits-with-delicious-mocktails.html
@@ -0,0 +1,21 @@
+<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 olive…</p>

Small typo here. I presume it should be 'olives', not 'olive…'

After that, I think this will be RTBC.

mukeysh’s picture

StatusFileSize
new54.68 KB

I have made changes as mentioned above. Please review.

mukeysh’s picture

Status: Needs work » Needs review
brucedarby’s picture

Picking this up for review at DrupalCamp Scotland contribution sprint.

brucedarby’s picture

Just 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.

brucedarby’s picture

Status: Needs review » Needs work
johnny_aroza’s picture

Status: Needs work » Needs review
StatusFileSize
new54.68 KB

I have fixed the typo mentioned above and uploaded the patch

Status: Needs review » Needs work

The last submitted patch, 28: 2960483-umami-mocktails-article-28.patch, failed testing. View results

markconroy’s picture

Hi 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!

johnny_aroza’s picture

in the patch file, I am getting some extra character and failing to apply patch can someone guide me on the same.

cferthorney’s picture

@johnny221B As far as I can see using the diff tool, the difference occurs within one of the binary files, as shown below:

user@machine ~/Development/Drupal/core (8.6.x*) $ diff 2960483-umami-mocktails-article-22.patch 2960483-umami-mocktails-article-28.patch
Binary files 2960483-umami-mocktails-article-22.patch and 2960483-umami-mocktails-article-28.patch differ
user@machine ~/Development/Drupal/core (8.6.x*) $

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

cferthorney’s picture

Status: Needs work » Needs review

Forgot to mark as needs review.

The last submitted patch, 32: 2960483-umami-mocktails-article-32.patch, failed testing. View results

msankhala’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community
StatusFileSize
new1.35 MB
new544.77 KB
new884.59 KB

Looks 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.

After patch new article mocktail

After patch article listing page

After patch home page

alexpott’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs reroll

This needs a reroll.

cferthorney’s picture

Status: Needs work » Needs review
StatusFileSize
new54.64 KB

Reroll of #32.

jofitz’s picture

Issue tags: -Needs reroll

Removed Needs Reroll tag

brahmjeet789’s picture

Status: Needs review » Needs work
StatusFileSize
new130.7 KB
new288.05 KB

@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 .

cferthorney’s picture

Status: Needs work » Needs review

@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.

brahmjeet789’s picture

@cferthorney sorry mine mistake now i can see the article ,please refer to my screenshots.

brahmjeet789’s picture

Status: Needs review » Reviewed & tested by the community
eli-t’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: -Nashville2018

Don't mean to bikeshed but I think the language here needs further changes:

Then why not serve up something just as special for those who don't drink alcohol but do want to join in on all the fun. After all, what cocktail party is complete without those incredible looking glasses of mixed fruits, bright colors and of course, the little umbrellas.

These are both questions, so should end with a question mark.

and get hold of some great looking alternatives made out of glass, metal and even bamboo.

should be

and get hold of some great looking alternatives made out of glass, metal or even bamboo.

So, grab the cocktail mixer, skip the spirits and shake up these deliciously refreshing mocktails that won't leave you, or your guests, short on flavor or style.

Far too many commas here. Suggest

So grab the cocktail mixer, skip the spirits and shake up these deliciously refreshing mocktails that won't leave you or your guests, short on flavor or style.

Sugar, a squeeze of lime and mint leaves can be squidged into a tall glass

I believe the correct term in cocktail parlance is muddled

In fact, the structure of

Sugar, a squeeze of lime and mint leaves can be squidged into a tall glass, then add a few chunks of ice and top with the juice of a blood orange (for the sunset effect) and a splash of soda water.

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

Muddle sugar, a squeeze of lime and mint leaves in a tall glass, then add a few chunks of ice, top with the juice of a blood orange (for the sunset effect) and add a splash of soda water.

Take a strawberry and squish it

Again, suggest muddle

timwood’s picture

+1 for muddled/muddle parlance

Vidushi Mehta’s picture

Status: Needs work » Needs review
StatusFileSize
new54.59 KB

Added a patch according to #43 above mentioned points.

mahtab_alam’s picture

StatusFileSize
new64.62 KB

patch fails to apply on 8.6x dev
issue

mahtab_alam’s picture

Status: Needs review » Needs work
msankhala’s picture

Status: Needs work » Needs review

@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

mahtab_alam’s picture

@msankhala The patch should apply cleanly without warning

eli-t’s picture

@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!

eli-t’s picture

Issue summary: View changes
Status: Needs review » Needs work

Just 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:

Do your bit for the environment by ditching the plastic straws and get hold of some great looking alternatives made out of glass, metal, or even bamboo

Don't forget the classic cocktail glasses, cool tumblers, and colored glass to really bring these recipes to life.

So, grab the cocktail mixer, skip the spirits, and shake up these deliciously refreshing mocktails that won't leave you or your guests, short on flavor or style.

Muddle sugar, a squeeze of lime, and mint leaves in a tall glass

top with the juice of a blood orange (for the sunset effect), and add a

Add sliced cucumbers, the juice of a lime or two, and some mint leaves

Also I'm slightly confused over

Don't forget the classic cocktail glasses, cool tumblers and colored glass to really bring these recipes to life.

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.

Serve poured into glass full of ice with sliced cucumber and mint leaves.

Should be a glass or glasses. As we've just made a full pitcher, I'd go with glasses

Vidushi Mehta’s picture

Status: Needs work » Needs review
StatusFileSize
new54.66 KB

Added a patch with above mention points of #51. Let me know if there's any change regarding alt text.

esod’s picture

Reviewing this patch at Design4Drupal in Boston.

The patch applies cleanly with:

warning: squelched 1 whitespace error
warning: 6 lines add whitespace errors.

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.

esod’s picture

Status: Needs review » Reviewed & tested by the community
eli-t’s picture

Status: Reviewed & tested by the community » Needs work

We've replaced

Don't forget the classic cocktail glasses, cool tumblers and colored glass to really bring these recipes to life.

with

Don't forget the classic cocktail glasses, cool tumblers to really bring these recipes to life.

- if we removed the bit about colored glass, we need to add and in between cocktail glasses, cool tumblers. That is

Don't forget the classic cocktail glasses and cool tumblers to really bring these recipes to life.

Apart from that, my comments in #51 have all been addressed satisfactorily.

Vidushi Mehta’s picture

Status: Needs work » Needs review
StatusFileSize
new54.66 KB

Oops!! Sorry my mistake.

Here's a patch with a change.

eli-t’s picture

@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

surabhi-gokte’s picture

Assigned: Unassigned » surabhi-gokte
surabhi-gokte’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new500.55 KB

Reviewed 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

text

eli-t’s picture

Thanks @Surabhi Gokte, I concur with your RTBC!

eli-t’s picture

Issue tags: +DevDaysLisbon
alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Whilst 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.

diff --git a/core/profiles/demo_umami/modules/demo_umami_content/default_content/article_body/skip-the-spirits-with-delicious-mocktails.html b/core/profiles/demo_umami/modules/demo_umami_content/default_content/article_body/skip-the-spirits-with-delicious-mocktails.html
old mode 100755
new mode 100644
diff --git a/core/profiles/demo_umami/modules/demo_umami_content/default_content/articles.csv b/core/profiles/demo_umami/modules/demo_umami_content/default_content/articles.csv
old mode 100755
new mode 100644

I fixed the file modes on commit.

Committed 89a86c1 and pushed to 8.6.x. Thanks!

  • alexpott committed 999819f on 8.6.x
    Issue #2960483 by Vidushi Mehta, timwood, cferthorney, Mukeysh,...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.