Skip to content

Updating slug after review does not modify the project directory #160

@valentinab25

Description

@valentinab25

On branch issues_118-128-141

Testing "Volto Project"

Choose one project slug. On review, choose "n" and update the ploject slug.
The project is created in the old project slug directory, even if you updated to another one:

  Review your answers
  Volto Version: 18.32.4
  Which persistent storage to use in the deployment stack?: RelStorage with PostgreSQL (recommended)
  Container Registry: GitHub Container Registry
  Project Description: A new project using Plone 6.
  Author E-mail: @users.noreply.github.com
  Author: valentinab25
  Add GitHub Action to Deploy this project?: Yes
  Plone Version: 6.1.4
  Project URL (without protocol): slug-1.example.com
  Volto Addon Name: volto-slug-test
  Should we setup a caching server?: Yes
  GitHub or GitLab username or organization slug from URL: collective
  Project Slug (Used for repository id): slug-1
  Should we use prerelease versions?: No
  Would you like to add a documentation scaffold to your project?: Yes
  Project Title: Test Slug
  Add Ansible playbooks?: Yes
  Language: English
  Python Package Name: slug.test

  Proceed? [Y/n]: n
  [1/19] Project Title (Test Slug): 
  (type < to go back)
  [2/19] Project Description (A new project using Plone 6.): 
  (type < to go back)
  [3/19] Project Slug (Used for repository id) (slug-1): slug-2

After installation, project slug is slug-2, but the directory is still slug-1:

cat slug-1/.cookieplone.json 
{
    "volto_version": "18.32.4",
    "devops_storage": "relstorage",
    "container_registry": "github",
    "description": "A new project using Plone 6.",
    "email": "@users.noreply.github.com",
    "author": "valentinab25",
    "devops_gha_deploy": "1",
    "plone_version": "6.1.4",
    "hostname": "slug-1.example.com",
    "frontend_addon_name": "volto-slug-test",
    "devops_cache": "1",
    "github_organization": "collective",
    "project_slug": "slug-2",
    "use_prerelease_versions": "No",
    "initialize_documentation": "1",
    "title": "Test Slug",
    "devops_ansible": "1",
    "language_code": "en",
    "python_package_name": "slug.test"
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions