where is the export directory?

Created on 30 August 2023, over 1 year ago

Problem/Motivation

better documentation

Steps to reproduce

drush @mysite cex
cd config/sync
git add .
git commit -m 'before structure_sync'
drush @mysite en structure_sync
drush @mysite eb
 [notice] Custom blocks export started
 [notice] Exported "Subscribe / Stay Informed Button"
 [notice] Exported "Header Content"
 [notice] Exported "Key Topics"
 [notice] Exported "Home Page Video"  
 [notice] Custom blocks exported
 [notice] Message: The custom blocks have been successfully exported.
git status
# On branch master
nothing to commit, working directory clean

Proposed resolution

If the exports are supposed to go else where can wse mention it in the RFeadme?

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Documentation

Created by

🇺🇸United States ccarnnia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @ccarnnia
  • 🇫🇷France louis-cuny

    It is exporting from entities to configuration
    You have to export your configuration to be able to commit the changes etc

    drush @site cex

  • 🇺🇸United States ccarnnia

    thank you @louis-cuny

    i did a cex in dev and it did generate structure_sync.data.yml

    i took following to staging:
    block.block.header_content.yml
    block.block.workingforyou.yml
    block.block.homepagevideo.yml
    structure_sync.data.yml

    and ran drush @mysite config:import in staging.

    Import the listed configuration changes? (yes/no) [yes]:
    > yes

    [warning] The "block_content:f1b676ae-e826-4f05-a9cb-65f09e01cf03" was not found
    [notice] Synchronized configuration: create block.block.header_content.

    [warning] The "block_content:7c3ff773-a3cf-428f-ab46-4b6b2b417dd3" was not found
    [notice] Synchronized configuration: create block.block.workingforyou.

    [warning] The "block_content:f77fa748-663e-4fbd-ad56-e68318333044" was not found
    [notice] Synchronized configuration: create block.block.homepagevideo.

    [notice] Synchronized configuration: update structure_sync.data.
    [notice] Finalizing configuration synchronization.
    [success] The configuration was imported successfully.

    but i don't see the new custom blocks on the staging site.
    am i missing something obvious?

  • Status changed to Closed: works as designed over 1 year ago
  • 🇫🇷France louis-cuny

    The exported config did export correctly to structure_sync.data.yml
    When importing in staging, with drush cim you are only importing the config, not the actual blocks, taxonomies etc

    You need additionnaly to drush ib for blocks for example

    This is not a bug, I close the issue

  • 🇺🇸United States ccarnnia

    thanks again,
    now i am stuck behind php_8.1 issues:
    #1 ($value) must be of type Countable|array, null given in count() (line 343 of /var/www/web/modules/contrib/structure_sync/src/Controller/BlocksController.php)
    I'll check the issue queue ...

  • 🇺🇸United States ccarnnia

    Hi @louis-cuny ,
    Thank you for answring my questions.
    I owe you a documentation patch:

  • Status changed to Needs review over 1 year ago
  • Open in Jenkins → Open on Drupal.org →
    Core: 10.0.7 + Environment: PHP 7.4 & MySQL 8
    last update over 1 year ago
    Composer require failure
  • 🇫🇷France louis-cuny

    Thank you, I will review your patch

  • 🇺🇸United States salientknight

    The exported config did export correctly to structure_sync.data.yml
    When importing in staging, with drush cim you are only importing the config, not the actual blocks, taxonomies etc

    You need additionally to drush ib for blocks for example

    Can you explain this further? Are you saying that it's in the config table of the database? Can you please explain how to export this export one it's run? Also, is there a reason it's not saved to a file?

  • 🇫🇷France louis-cuny

    @salientknight
    Yes
    It's the design choice of this module to use configurations

    You can export your configs in Back office Config/Development/Export Config
    Or with drush cex

  • 🇫🇷France louis-cuny

    @salientknight
    Yes
    It's the design choice of this module to use configurations

    You can export your configs in Back office Config/Development/Export Config
    Or with drush cex

    @ccarnnia
    Could you use the Merge Request tools for your patch please ? It will be easier for us to review

  • 🇺🇸United States kay_v

    💬 Export Menu Not Working Closed: works as designed provides another example of the confusion raised in this ticket; mentioning here for reference when reviewing the patch

  • Open in Jenkins → Open on Drupal.org →
    Core: 10.1.4 + Environment: PHP 7.4 & MySQL 8
    last update about 1 year ago
    Composer require failure
  • 🇮🇳India mukhtarm

    I reviewed the patch and it is applying properly. Thanks @ccarnnia. Added typo correction and line breaks in the patch.
    please review.

  • 🇩🇰Denmark ressa Copenhagen

    Structure Sync is using Drupal's default storage location of the sync directory , except if it's overridden by the user.

    For the export and import process, see https://www.drupal.org/docs/extending-drupal/contributed-modules/contrib...

Production build 0.71.5 2024