Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add export and import functionality #110

Closed
5 tasks done
zepich opened this issue Jun 28, 2023 Discussed in #108 · 0 comments
Closed
5 tasks done

Add export and import functionality #110

zepich opened this issue Jun 28, 2023 Discussed in #108 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@zepich
Copy link
Member

zepich commented Jun 28, 2023

Discussed in #108

Originally posted by Digi92 June 26, 2023
Hi,
i think a function to copy an existing project would be nice.
A user might want to copy an existing project with all settings, rules and rule sets to use this as a basis for a new project.

To consider would be of course how the rights should look like.

What is your opinion about this?

Idea

Export functionality

  • Add an option to export a project's settings into a file. This includes all project settings (Name, Description, Hosts, Spam rating factor, security settings, design settings, all rules with all items, and all rulesets). It does not include submissions, project members, and the API keys as well as the project UUID.
  • The user can choose which parts should be included in the export. For example, general project data (Name, Description, Hosts, Spam rating factor), security settings, design settings, rules, or rulesets.
  • The user will download a JSON file with the selected data.

Import functionality

  • Add an option to import a project's settings from a file.
  • The user can choose which parts should be imported from the provided file. For example, the user can only import rules, not other things in the file.
  • The user can choose what the import process should do with existing rules. The user can either override the existing rules (remove additionally available items), append the not existing items to the existing rule, or add the rule as a new rule. All other data will be replaced if selected for import (project settings and rulesets).

Changes

  • Add the schema for the configuration file to the mosparo Specifications
  • Add the export functionality in the tools area
  • Add the import functionality in the tools area
  • Add a button (to go to the import functionality) in the project wizard to import directly (without going through all the wizard steps)
  • Add two commands to export and import the settings via CLI

Suggested by

@zepich zepich added the enhancement New feature or request label Jun 28, 2023
@zepich zepich added this to the v1.0 milestone Jun 28, 2023
@zepich zepich self-assigned this Jun 28, 2023
@zepich zepich added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Jul 10, 2023
@zepich zepich mentioned this issue Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Status: Done
Development

No branches or pull requests

2 participants