Rename "STAGED" to "To be imported" on the config sync view differences modal

Created on 12 May 2017, over 7 years ago
Updated 4 April 2023, over 1 year ago

Problem/Motivation

If click in the 'View differences' button in the Synchronize page (admin/config/development/configuration) you will see in the modal window a table showing the 'ACTIVE' and 'STAGED' configuration, but you need to search in other sources what this means, there are not a hint that help you with his signification.

Proposed resolution

Change "Staged" into "To be imported".
(Leave "Active" unchanged).

The original proposal, below, was changed because alexpott pointed out #11 that the storage suggested here might not be true.
Change 'ACTIVE' to 'ACTIVE (IN THE DATABASE)'
Change 'STAGED' to 'STAGED (IN THE FILESYSTEM)'

Remaining tasks

None.

User interface changes

The label in the modal pop-up changes from "Staged" to "To be imported".

API changes

None.

Data model changes

None.

πŸ“Œ Task
Status

Needs work

Version

10.1 ✨

Component
ConfigΒ  β†’

Last updated 2 days ago

Created by

πŸ‡¨πŸ‡¦Canada adriancid Montreal, Canada

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

    Well ... alternate implementations could store the things in other places. Like active configuration could be in Redis and the staged configuration could be from something other than a file system. At best maybe we should ask the storages for the labels.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    That can happen?

  • Status changed to Needs work over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    For #62.

    Issue summary should be updated to match.

  • Status changed to Needs review over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States dww

    Occam's razor, general UI wisdom, and core scope management all suggest that less is more. πŸ˜… I just read the whole comment thread in here (thanks, everyone!), and I think "maybe we should ask the storages for the labels." is going to over-complicate things. I think the combo of #28 and #54 would be just:

    Active | To be imported

    No change to "Active", only change "Staged" to be a bit more self-documenting. Once you close the modal, the submit button the form says "Import all", so "To be imported" helps tie it all together.

    Here it is in patch form. Updated summary to match.

  • πŸ‡ΊπŸ‡ΈUnited States dww

    Updating title to match current proposal. πŸ˜… Hope no one minds. If folks don't like this and want to change 'Active', too, I'd be okay with renaming it to 'Current'. It's a slightly bigger change, and more of a translation impact (since we don't have t('Current') anywhere else in core, yet). I don't want this issue to stall out on the summary and title not matching the current proposal, but I'd be happy to implement an alternative if needed.

    Thanks,
    -Derek

  • πŸ‡ΊπŸ‡ΈUnited States dww

    Looks like a random fail:

    Testing Drupal\Tests\ckeditor5\FunctionalJavascript\MediaTest
    .....................E.                                           23 / 23 (100%)
    
    Time: 06:36.360, Memory: 4.00 MB
    
    There was 1 error:
    
    1) Drupal\Tests\ckeditor5\FunctionalJavascript\MediaTest::testViewMode with data set "with alignment" (true)
    Behat\Mink\Exception\ElementNotFoundException: Element matching css "article.media--view-mode-view-mode-1" not found.
    
    /var/www/html/vendor/behat/mink/src/WebAssert.php:418
    /var/www/html/core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTest.php:1471
    

    Re-queuing...

  • Status changed to RTBC over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Simple change think goes long way!

  • πŸ‡ΊπŸ‡ΈUnited States dww

    Thanks for the RTBC! Added the UI change to the summary. πŸ˜… Seems simple enough to not need screenshots...

  • πŸ‡ΊπŸ‡ΈUnited States dww

    Slightly more specific title, too: It's the config sync view differences modal, not the config sync form itself...

  • Status changed to Needs review over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States dww

    Super weird:

    1) Drupal\Tests\node\Functional\NodeRevisionsTest::testRevisions
    Drupal\Core\Config\PreExistingConfigException: Configuration objects (system.file) provided by system already exist in active configuration
    

    However, on a fresh pull of 10.1.x, re-apply #65 locally, and NodeRevisionsTest passes just fine. Re-testing on the bot to see if that was a random fail or what.

  • Status changed to RTBC over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States dww

    Restoring RTBC since the bot is indeed happy.

  • πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

    This seems like a better description. Let's do it.

  • πŸ‡ΊπŸ‡ΈUnited States dww

    Sigh: more random fail.

  • Status changed to Needs review over 1 year ago
  • πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

    I still stand by #38. The labels on the columns are confusing no matter what. It's the + and - symbols that tell you what is going to happen when you click the import all button.

    There are improvements that we should make here though because there's a lot of other language on this modal and the page you click on to get the modal that should be improved.

    Here are some thoughts.

    • Change the title of the modal from "View changes of system.site" to "Proposed changes to system.site"
    • Change the "view differences" button to "Review proposed changes"
    • Change the help text "Compare the configuration uploaded to your sync directory with the active configuration before completing the import." to something more about reviewing proposed changes and then clicking the the "Import all" button
    • Review the label of the "Import all" button
    • Think about the Synchronize, Import, Export tasks - this gets confusing on the import because importing an archive means unpacking to the config sync directory whereas import single would actually import that to the active configuration.
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Change the title of the modal from "View changes of system.site" to "Proposed changes to system.site"
    Change the "view differences" button to "Review proposed changes"

    Like both these suggestions

    Change the help text "Compare the configuration uploaded to your sync directory with the active configuration before completing the import." to something more about reviewing proposed changes and then clicking the the "Import all" button

    Like this idea but don't have any suggestion at this point.

    Review the label of the "Import all" button

    Maybe it should just say "Sync configuration"

    Think about the Synchronize, Import, Export tasks - this gets confusing on the import because importing an archive means unpacking to the config sync directory whereas import single would actually import that to the active configuration.

    Maybe the other tabs could be a follow up?

    If in agreement this could go back to NW for the proposed changes.

  • Status changed to Needs work over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Moving to NW for the points in #78

Production build 0.71.5 2024