Skip to content

Export/import sandbox defence configurations #690

Open
@gsproston-scottlogic

Description

@gsproston-scottlogic

Feature Request

Description

Add in the ability to export and import defence configurations in sandbox mode.

Additional context

Could be nice to save configurations in case they get accidentally reset.
Also it would be cool to be able to share configurations with other people.

Export in JSON format.

We'll need UI designs for how this will look. Could just do a simple couple of buttons in the left panel for now.

Acceptance criteria

GIVEN the user is in sandbox mode
AND the user has NOT configured anything
WHEN the export button is clicked
THEN can save JSON file with default configurations

GIVEN the user is in sandbox mode
AND the user has configured some defences
WHEN the export button is clicked
THEN can save JSON file with the user's configurations

GIVEN the user is in sandbox mode
WHEN the import button is clicked
AND valid JSON is uploaded
AND all configuration values are valid
THEN the defence configurations are set to match the uploaded JSON

GIVEN the user is in sandbox mode
WHEN the import button is clicked
AND valid JSON is uploaded
AND there is an invalid value (e.g. string for character limit)
THEN show an error

GIVEN the user is in sandbox mode
WHEN the import button is clicked
AND something is upload which isn't JSON
THEN show an error

GIVEN the user is NOT in sandbox mode
THEN there should be no export/import buttons

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendRequires work on the backendenhancementNew feature or requestfrontendRequires work on the frontendui designRequires UI design input

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions