OrchardCMS/OrchardCore

Combine the recipe import (file and JSON) into one

Open

#11.958 aberto em 5 de jul. de 2022

Ver no GitHub
 (6 comments) (0 reactions) (0 assignees)C# (2.288 forks)batch import
Deploymentgood first issue

Métricas do repositório

Stars
 (6.998 stars)
Métricas de merge de PR
 (Mesclagem média 3d 21h) (126 fundiu PRs em 30d)

Description

Is your feature request related to a problem? Please describe.

Currently, the Deployment feature expose 2 different routes to import a recipe. First one using a JSON string, and the other one is using a file. For that reason, we have 2 menu items on the navigation (i.e., JSON Import and Package Import)

Describe the solution you'd like

I think we should replace both menu items (i.e., JSON Import and Package Import) with a single one called "Import Recipes". In the "Import Recipes" view, we can have two radio buttons to select which type of import to

  1. First radio button will be "JSON recipe" which is checked by default. We'll show the JSON input field by default and hide the field upload field.
  2. Second radio button will be "Recipe file". If the user checks this radio, we'll just show the file upload field.

This should reduce the navigation menu by 1 item and centralize the import process.

Guia do colaborador