From 8e261ea17405594a31286c4c53172eeeca9a3c32 Mon Sep 17 00:00:00 2001 From: Nilanka De Silva Date: Tue, 10 Aug 2021 11:51:50 +0000 Subject: [PATCH 1/4] Update doc/user/snippets.md --- doc/user/snippets.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/user/snippets.md b/doc/user/snippets.md index 59508f2ea11ba0..1d89d349205b4a 100644 --- a/doc/user/snippets.md +++ b/doc/user/snippets.md @@ -228,3 +228,11 @@ it's recommended to keep snippets' repositories as compact as possible. For more information about tools to compact repositories, see the documentation on [reducing repository size](../user/project/repository/reducing_the_repo_size_using_git.md). + +### Cannot enter text into the snippet text box + +1. Enter a title +1. Click on `Add another file` button at the bottom +1. Input a string into the second text box that was created + - Enter a filename to avoid [this bug](https://gitlab.com/gitlab-org/gitlab/-/issues/22870) +1. Delete the first text box (but now you should be able to input a string into the first text box too, so delete either you prefer) -- GitLab From 003f66061e619b3c83a88a215e6b985d383528b4 Mon Sep 17 00:00:00 2001 From: Amy Qualls Date: Thu, 12 Aug 2021 15:52:15 +0000 Subject: [PATCH 2/4] Apply 1 suggestion(s) to 1 file(s) --- doc/user/snippets.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/doc/user/snippets.md b/doc/user/snippets.md index 1d89d349205b4a..10100a441c14cd 100644 --- a/doc/user/snippets.md +++ b/doc/user/snippets.md @@ -231,8 +231,11 @@ see the documentation on [reducing repository size](../user/project/repository/r ### Cannot enter text into the snippet text box -1. Enter a title -1. Click on `Add another file` button at the bottom -1. Input a string into the second text box that was created - - Enter a filename to avoid [this bug](https://gitlab.com/gitlab-org/gitlab/-/issues/22870) -1. Delete the first text box (but now you should be able to input a string into the first text box too, so delete either you prefer) +1. Enter a title for your snippet. +1. Scroll to the bottom of the **Files** field, then select + **Add another file**. GitLab displays a second set of fields to add a second file. +1. In the filename field for the second file, enter a filename to avoid + [the bug reported in issue #22870](https://gitlab.com/gitlab-org/gitlab/-/issues/22870). +1. Enter any string into the text area for the second file. +1. Scroll back to the filename for the first file, and select **Delete file**. +1. Continue creating your file, and select **Create snippet** when done. -- GitLab From 36fd02cdd45a459eb3c05e964f4a0d9cd2848924 Mon Sep 17 00:00:00 2001 From: Amy Qualls Date: Thu, 12 Aug 2021 15:55:37 +0000 Subject: [PATCH 3/4] Apply 1 suggestion(s) to 1 file(s) --- doc/user/snippets.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/user/snippets.md b/doc/user/snippets.md index 10100a441c14cd..4670167422e4de 100644 --- a/doc/user/snippets.md +++ b/doc/user/snippets.md @@ -231,6 +231,9 @@ see the documentation on [reducing repository size](../user/project/repository/r ### Cannot enter text into the snippet text box +If the text area after the filename field is disabled, preventing you from +creating a new snippet, this workaround is available: + 1. Enter a title for your snippet. 1. Scroll to the bottom of the **Files** field, then select **Add another file**. GitLab displays a second set of fields to add a second file. -- GitLab From b40b75e992a1bda1fe90821f99043b2f233649bd Mon Sep 17 00:00:00 2001 From: Fiona Neill Date: Fri, 13 Aug 2021 13:56:50 +0000 Subject: [PATCH 4/4] Apply 4 suggestion(s) to 1 file(s) --- doc/user/snippets.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/doc/user/snippets.md b/doc/user/snippets.md index 4670167422e4de..64da024f5ba06c 100644 --- a/doc/user/snippets.md +++ b/doc/user/snippets.md @@ -231,14 +231,13 @@ see the documentation on [reducing repository size](../user/project/repository/r ### Cannot enter text into the snippet text box -If the text area after the filename field is disabled, preventing you from -creating a new snippet, this workaround is available: +If the text area after the filename field is disabled and prevents you from +creating a new snippet, use this workaround: 1. Enter a title for your snippet. 1. Scroll to the bottom of the **Files** field, then select **Add another file**. GitLab displays a second set of fields to add a second file. -1. In the filename field for the second file, enter a filename to avoid - [the bug reported in issue #22870](https://gitlab.com/gitlab-org/gitlab/-/issues/22870). +1. In the filename field for the second file, enter a filename to avoid a [known copy-pasting bug](https://gitlab.com/gitlab-org/gitlab/-/issues/22870). 1. Enter any string into the text area for the second file. -1. Scroll back to the filename for the first file, and select **Delete file**. -1. Continue creating your file, and select **Create snippet** when done. +1. Scroll back to the first filename, and select **Delete file**. +1. Create the rest of your file, and select **Create snippet** when done. -- GitLab