Problem/Motivation

A UI would be nice for this module. Likely an optional sub-module.

Proposed resolution

I'm thinking an interface similar to D7 features, a list of content grouped by entity type that allows you to build a list of content with optional automatic dependency detection. Then a simple "write module" button could place the module on disk. Technically I think it could be as simple as a view with some bulk operations and gleam.

Remaining tasks

Decide on broad approach and write a patch.

User interface changes

User interface addition.

API changes

None.

Data model changes

None.

CommentFileSizeAuthor
#13 2640536-13.patch9.61 KBandypost
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Sam152 created an issue. See original summary.

Sam152’s picture

Title: [META] Create a UI for selecting content for export and writing said content to a module. » [META] Create a UI for selecting and exporting content.
claudiu.cristea’s picture

This might end in a very complex interface. I would go with only implementing a VBO action. Then site admins can use that action only on entity types where this is needed. Dependencies will be displayed in the subsequent VBO confirmation form.

matslats’s picture

Not what was suggested but I've now put a tab on each ContentEntity page which leads to a form from which the entity can be exported to screen or to file, with or without relations.
And pushed it...
This enables exporting default content one item at a time, which is ok at least for now.
VBO would be another dependency but would allow many items to be easily selected at once as long as the source site content wasn't overpopulated.

Sam152’s picture

Is there an issue for these changes? Can you please read and adhere to Best practices for co-maintaining projects.

matslats’s picture

thanks for pointing that out.
I'm unaccustomed to coding as part of a team
These were changes I had made to defaultcontent module where I was the only maintainer for the last six months.
And because I really need the translation done, I was trying to show willing.

andypost’s picture

I'd better keep UI module separate, latest commits of UI makes module broken so would be great to prevent this

Overall +1 to VBO action for export and similar CMI form for import

Also UI could be extended to show collisions between exported data and actual entity fields

matslats’s picture

Andy when you say
> latest commits of UI makes module broken
that sounds like something I should be fixing.
is there an issue for that?

andypost’s picture

All 3 issues are quick fixes and rtbc today
See #2684133-3: Wrong arguments declaration in services.yml file

benjy’s picture

+1 for having the UI in a separate module.

andypost’s picture

First of all I suggest to rollback UI it causes a lot if issues and makes module unusable
then roll out next release and polish UI with tests

larowlan’s picture

Ok, let's push it to a feature branch then revert

andypost’s picture

andypost’s picture

I pushed current 8.x-1.x to 8.x-1.x-ui feature branch

  • larowlan committed 57bfccd on 8.x-1.x authored by andypost
    Issue #2640536 by andypost: Revert [META] Create a UI for selecting and...
larowlan’s picture

Pushed the revert, thanks @andypost

larowlan’s picture

andypost’s picture

Status: Needs review » Active
frondeau’s picture

Hello,
Is UI still a topic to involve the default_content module ?
If not, we could close this ticket.
Regards.

andypost’s picture

one day it will appear, there's no tool to consume info.yml index yet