craftcms / craftcms/cms

Project Config Apply command does not work

Open
#7,481 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PHP
Stars
3.6k
Forks
705
Avg merge
1d 5h
Merged PRs (30d)
134

Description

Description

The ./craft project-config/apply command does not work properly. We have a few diffs in the Project Config, and when we want to apply them, the command does not throw any error or so, but after the Apply command, the diff is still the same on the command line, but on the web CMS https://domain/admin/utilities/project-config we do not see any diffs.

See this command line:

production:/app# ./craft project-config/diff
      structure:
        maxLevels: null
        uid: cb4c9cbe-46f5-4362-9683-d52e4246ada6
- dateModified: 1611838098
+ dateModified: 1612264284
  dolphiq_sitemap_entries:
    201841a3-809b-43c5-be30-b94f33046a76:
      changefreq: hourly
...
      contentColumnType: string
      fieldGroup: 252831be-a183-4ddb-a03e-dce04e3d8ccf
      handle: abstandStil
-     instructions: ''
+     instructions: 'Fügt einen Abstand hinzu'
      name: 'Abstand Stil'
      searchable: true
      settings:

production:/app# ./craft project-config/apply
Applying changes from your project config files ... done

production:/app# ./craft project-config/diff
      structure:
        maxLevels: null
        uid: cb4c9cbe-46f5-4362-9683-d52e4246ada6
- dateModified: 1611838098
+ dateModified: 1612264284
  dolphiq_sitemap_entries:
    201841a3-809b-43c5-be30-b94f33046a76:
      changefreq: hourly
...
      contentColumnType: string
      fieldGroup: 252831be-a183-4ddb-a03e-dce04e3d8ccf
      handle: abstandStil
-     instructions: ''
+     instructions: 'Fügt einen Abstand hinzu'
      name: 'Abstand Stil'
      searchable: true
      settings:
Additional info
  • Craft version: 3.5.16
  • PHP version: 7.2.34
  • Database driver & version: MySQL 5.5

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with ./craft project-config/diff and ./craft project-config/apply, then compare the result with the Project Config page at /admin/utilities/project-config. Done means applying the project config removes the reported diff and the web CMS shows the expected state.

Written by the indexing model from the issue text.

Assessment

Tech stack
mysql, php
Domain
backend, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.