> At the moment these files need to be hand-created or exported using the Rest, Hal and Serialization modules.

However, further down in the README there are Drush commands for exporting entities that can write to files.

One mediation to this would be to have an introduction and high-level overview of the drush capabilities, with more detail-oriented process living in the documentation guides, if we think that's the best path forward?

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

joachim created an issue. See original summary.

Romisha’s picture

Assigned: Unassigned » Romisha
Romisha’s picture

Assigned: Romisha » Unassigned
Status: Active » Needs review
StatusFileSize
new2.45 KB

Removed Drush section from ReadMe. Please review.

guptahemant’s picture

Status: Needs review » Needs work

hi @Romisha

Thanks for submitting the patch, but since we are removing all the examples of drush command we should remove the references of drush commands from readme file.

like
> Content export works with a set of drush commands

and

> Generate a hal+json file for each entity to be exported using the drush commands described below.

Romisha’s picture

Status: Needs work » Needs review
StatusFileSize
new4.29 KB

Please review the updated patch.

joachim’s picture

Status: Needs review » Needs work

> but since we are removing all the examples of drush command we should remove the references of drush commands from readme file.

I'm confused about this. Why are we removing the documentation about the Drush commands?

ilgnerfagundes’s picture

In line 25 are saying that it can be exported using the drush command, is it not necessary to remove it too?

* Easily export your content and its dependencies to yml using drush commands

ilgnerfagundes’s picture

Status: Needs work » Needs review
StatusFileSize
new4.61 KB

I'm leaving a patch without the line mentioned in comment #7 for evaluation

volkswagenchick’s picture

Status: Needs review » Needs work
+++ b/README.md
@@ -14,7 +14,7 @@
+[Default Content][1] allows you to export content along with site configuration information. It does so by leveraging core's serialization and hal modules. It supports entity-references between content as well as files if you have File entity. Content import happens automatically as part of site installation. The import process scans all modules and imports any content found that is located in the expected file path and using the expected .json file structure. (See detailed information below)

There should be a hard break at 80 characters according to drupal documentation standards. Please visit https://www.drupal.org/docs/develop/documenting-your-project/readme-temp...

ankithashetty’s picture

Status: Needs work » Needs review
StatusFileSize
new7.1 KB
new4.41 KB

To the patch submitted in #8, I just manually word-wrapped the text within around 80 cols as per drupal documentation standards. Please review.

nitvirus’s picture

Status: Needs review » Needs work

Hi,
Headings underlined with ===/--- to the length of the heading, followed by a blank line.
According to https://www.drupal.org/docs/develop/documenting-your-project/readme-temp...

 ## Introduction
 _A default content solution for Drupal 8_
 ### Additional Information
 * For a full description of the module, visit the project page:

and other places

ankithashetty’s picture

Status: Needs work » Needs review
StatusFileSize
new7.98 KB
new2.47 KB

Hello @nitvirus, thank you for reviewing.

We are updating README.md file, it uses markdown syntax. Here # chararcters will do the job for us, so I don't think underlining the headings would be necessary.

I have updated the patch accordingly, please review.

volkswagenchick’s picture

Status: Needs review » Reviewed & tested by the community

Thanks fo the new patch, here are some recommendations.

  1. +++ b/README.md
    @@ -1,30 +1,33 @@
    +configeration information. It does so by leveraging core's serialization and
    +hal modules. It supports entity-references between content as well as files if
    

    The Core module names should be capitalized.

  2. +++ b/README.md
    @@ -32,26 +35,37 @@ _A default content solution for Drupal 8_
    + will give you the option to enable them.
    

    Is there an empty space before "will"?

  3. +++ b/README.md
    @@ -32,26 +35,37 @@ _A default content solution for Drupal 8_
    +following structure: `content/{entity type}/{filename}`, where `{entity type}`
    +will be one of node, taxonomy_term, etc. Filename should be `{entity ID}.json`.
    

    I recommend having hanging indents
    https://www.drupal.org/docs/develop/documenting-your-project/readme-temp...

nitvirus’s picture

Hi volkswagenchick,

Should I create a new patch for these changes, seems like this patch is already in RTBC.

--

volkswagenchick’s picture

Status: Reviewed & tested by the community » Needs work

My apologies, I marked the issue in the wrong state.

nitvirus’s picture

Status: Needs work » Needs review
StatusFileSize
new8.07 KB

Hey,

I have updated the patch, as per comments.

Core modules are capitalized.
Removed empty space.
Added hanging Indents.

--
Nitish

meghasharma’s picture

Assigned: Unassigned » meghasharma
Webbeh’s picture

StatusFileSize
new8.54 KB
new3.28 KB

Some minor cleanup of existing copy.

Removal of todo in README, as it seems pretty out-of-place and better scoped to a drupal.org issue.

Also standardized core capitalizations document-wide, as this was missed on the bottom part of the document.

Added some consistent spacing.

Patch and interdiff attached.

meghasharma’s picture

Assigned: meghasharma » Unassigned
Status: Needs review » Reviewed & tested by the community

it looks good to me..

volkswagenchick’s picture

@meghasharma Thanks for the review, testing patches is so important to move the projects forward.

I have a suggestion though. Can you indicate what tests you did or what you reviewed?
For example:
"Patch applied locally. I reviewed the file for grammar, spelling. Links work as expected." That helps others to know that the review is complete.
Thanks!
~AmyJune

bmunslow’s picture

I'm confused about this. Why are we removing the documentation about the Drush commands?
#6 - @joachim

I'm confused too!

Documentation about the Drush commands was the highlight of the README file for me.

Do they really have to be removed from the README file?

If so, could we include an indication on where users should go to learn which drush commands are available and how to use them?

Webbeh’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Needs review

Marking back to Needs Review per #21. Does the existing community documentation satisfy what you're looking for on this, @bmunslow? https://www.drupal.org/docs/8/modules/default-content-for-d8/overview

bmunslow’s picture

Status: Needs review » Reviewed & tested by the community

Marking back to Needs Review per #21. Does the existing community documentation satisfy what you're looking for on this, @bmunslow? https://www.drupal.org/docs/8/modules/default-content-for-d8/overview

#22 - @Webbeh

Thanks for pointing this out Webbeh.

Existing community documentation, as of today, is complete and helpful regarding the drush commands.

Settings this back to RTBC!

berdir’s picture

Version: 8.x-1.x-dev » 2.0.x-dev
Status: Reviewed & tested by the community » Needs work

I've recently created the 2.0.x branch, see the project page on all the improvements in that branch. Testing that and providing feedback would be very welcome. The 1.x branch isn't actively maintained anymore.

2.0.x uses a completely different normalization implementation that does not depend on hal.module anymore. I did forget to update the README however. I updated the project page, so if someone wants to work on updating the README based on the project page that would be very welcome.

vicheldt’s picture

Assigned: Unassigned » vicheldt

I'll read the new documenation and add the proper details to the module's README file.

vicheldt’s picture

Assigned: vicheldt » Unassigned
Status: Needs work » Needs review
StatusFileSize
new9.82 KB

I changed the titles to all caps, and added block to the Maintainers too. Also i reorganized the part where the Drush commands are located, but didn't remove them because of the #6 and #21 comments requirements.

volkswagenchick’s picture

Status: Needs review » Needs work

At quick glance these lines have a trailing space or character at the end of them.
Thanks for the patch

+++ b/README.md
@@ -1,30 +1,25 @@
+serialization and hal modules. It supports entity-references between ¶
...
+with a set of drush commands (more on those below). Content import ¶
...
+scans all modules and imports any content found that is located in the ¶

@@ -33,133 +28,130 @@ _A default content solution for Drupal 8_
+Install as you would normally install a contributed Drupal module. ¶
...
+Enable the Default Content module first. Any module that requires ¶
+default content can put hal+json versions of the entities (created ¶
...
+Once your custom module is enabled, the entities you exported will be ¶

-- **required-arguments:** 2
+**WARNING** ¶
...
+Beware of modules that add extra layers of access control (i.e. ¶
+field_permissions and group). By default, drush runs as user anonymous ¶
...
+  $ drush dce taxonomy_term <taxonomy term id> ¶
+  $ drush dce file <file id> ¶
+  $ drush dce media <media id> ¶
+  $ drush dce menu_link_content <menu link id> ¶
+  $ drush dce block_content <block id> ¶

-- **required-arguments:** 1
+- **folder:** Folder to export to, entities are grouped by entity type ¶
vicheldt’s picture

Assigned: Unassigned » vicheldt

I'll erase all the trailing space.

vicheldt’s picture

Status: Needs work » Needs review
StatusFileSize
new3.09 KB

I erased all the extra spaces, anything else?

vicheldt’s picture

Assigned: vicheldt » Unassigned
dandeleon03’s picture

Hi @vicheldt,

The trailing space or character at the end of the line is now removed.

+++ b/README.md
@@ -12,11 +12,11 @@
 
 The Default Content module allows you to export content along with
 site configuration information. It does so by leveraging core's
-serialization and hal modules. It supports entity-references between 
+serialization and hal modules. It supports entity-references between
 content as well as files if you have File entity. Content export works
-with a set of drush commands (more on those below). Content import 
+with a set of drush commands (more on those below). Content import
 happens automatically as part of site installation. The import process
-scans all modules and imports any content found that is located in the 
+scans all modules and imports any content found that is located in the
 expected file path and using the expected .json file structure. (See
 detailed information below)
 
@@ -34,7 +34,7 @@ This module requires no modules outside of Drupal core.
 
 ## Installation
 
-Install as you would normally install a contributed Drupal module. 
+Install as you would normally install a contributed Drupal module.
 Visit:
 https://www.drupal.org/docs/extending-drupal/installing-modules
 for further information.
@@ -47,8 +47,8 @@ The module has no menu or modifiable settings. There is no configuration.
 
 ## Usage
 
-Enable the Default Content module first. Any module that requires 
-default content can put hal+json versions of the entities (created 
+Enable the Default Content module first. Any module that requires
+default content can put hal+json versions of the entities (created
 with the drush commands) inside content/{entity_type} folders.
 
 Once your custom module is enabled, the entities you exported will be 
@@ -77,10 +77,10 @@ Options:
 - **file:** Write out the exported content to a file instead of stdout
 Aliases: dce
 
-**WARNING** 
+**WARNING**
 
-Beware of modules that add extra layers of access control (i.e. 
-field_permissions and group). By default, drush runs as user anonymous 
+Beware of modules that add extra layers of access control (i.e.
+field_permissions and group). By default, drush runs as user anonymous
 and may not have access to the fields or nodes.
 
 * Examples:
@@ -90,11 +90,11 @@ and may not have access to the fields or nodes.
 
   ```
   $ drush dce node <node id> (e.g., $ drush dce node 123)
-  $ drush dce taxonomy_term <taxonomy term id> 
-  $ drush dce file <file id> 
-  $ drush dce media <media id> 
-  $ drush dce menu_link_content <menu link id> 
-  $ drush dce block_content <block id> 
+  $ drush dce taxonomy_term <taxonomy term id>
+  $ drush dce file <file id>
+  $ drush dce media <media id>
+  $ drush dce menu_link_content <menu link id>
+  $ drush dce block_content <block id>
   ```
 
 #### default-content-export-references
@@ -105,7 +105,7 @@ Arguments:
 - **entity_type:** The entity type to export. (required)
 - **entity_id:** The ID of the entity to export.
 Options:
-- **folder:** Folder to export to, entities are grouped by entity type 
+- **folder:** Folder to export to, entities are grouped by entity type
 into directories.
 Aliases: dcer
dandeleon03’s picture

Status: Needs review » Reviewed & tested by the community
dandeleon03’s picture

Assigned: Unassigned » dandeleon03
dandeleon03’s picture

Assigned: dandeleon03 » Unassigned

Rajeshreeputra made their first commit to this issue’s fork.

rajeshreeputra’s picture

+1 RTBC, rebased.

andypost’s picture

Status: Reviewed & tested by the community » Needs review

last patch failed to apply but there's MR created (applies cleanly) so it require review

andypost’s picture

andypost credited ressa.

andypost’s picture

andypost credited voleger.

andypost’s picture

sourabhjain made their first commit to this issue’s fork.

pfrenssen made their first commit to this issue’s fork.

volkswagenchick’s picture

@kavitha@specbee.com Generally, it is best practice to explain what criteria you used to move the issue into RTBC.
What did you test? Were all comments addressed? Did all the links work as expected, coding standards, clear concise sentences, and so on.

Thanks.

ressa’s picture

Status: Reviewed & tested by the community » Needs review

I agree @volkswagenchick. See also #3315968-22: Replace README.txt with README.md where another RTBC was based on the patch applying, and no review of format or content.

gisle’s picture

Non-review by kavitha@specbee.com deleted as spam.

benjifisher’s picture

Status: Needs review » Needs work
Issue tags: +Needs issue summary update

It seems that the README was updated in other issues, so the MR for this issue no longer applies.

The points mentioned in the issue summary are no longer true: they have been fixed. But at least some text in the MR is probably worth saving. (I do not see anything in the current README about access control.) So I am marking this issue as NW, not Closed (outdated).

benjifisher’s picture

One problem I noticed in the current README:

#### Exports an entity and all its referenced entities

##### default-content-export-references

The command is actually drush default-content:export-references.