warehouse icon indicating copy to clipboard operation
warehouse copied to clipboard

Bulk Import Existing Projects to Organization

Open dstufft opened this issue 8 months ago • 6 comments

What's the problem this feature will solve?

Currently importing an existing project to an organization has to be done one by one for each project, where you go through and select the existing project from a drop down, click the transfer button, and wait for the page to reload.

This works fine when you have a small number of existing projects to import, but it starts to fall down when you have a large number of existing projects.

Describe the solution you'd like

Provide a mechanism to bulk import multiple existing projects at once, ideally with some mechanism to control which projects actually get imported.

Possible mechanisms:

  • Turn the drop down into a multi select and allow selecting multiple projects at once.
    • This option probably works nice for medium sized lists, but may not work as great for very large lists, or lists that need to get agreement on before importing.
  • Add an additional form for bulk import, that takes a newline delimited list of projects to import and loops over them, importing each one.
    • This requires more UI work, but it could allow very large lists and allows the user to predetermine the list easily to get external sign off / validation.
  • Add a mechanism to import all projects owned by the current user.
    • I don't think this option is great, because a user may only want to import half of their projects or similar.

The outcome of the bulk import should be the same as if the user manually imported each one (sans for maybe the security log indicating it was a bulk import instead of a normal import).

dstufft avatar Aug 18 '25 23:08 dstufft

@dstufft we could use a "list builder"/"dual list" UI pattern for this - allowing users to choose projects from a very long list.

Here are some examples of the pattern I am talking about:

  • https://splunkui.splunk.com/Packages/react-ui/DualListbox?section=examples
  • https://storybook.saltdesignsystem.com/?path=/story/patterns-list-builder--multiselect

If you think something like this would work, I can work on a design :)

nlhkabu avatar Sep 22 '25 21:09 nlhkabu

Question: do we have any data on how long we could expect this list to be? @dstufft you mentioned "very large lists" - but can we quantify this with user data?

nlhkabu avatar Sep 22 '25 21:09 nlhkabu

The user that caused me to open this has over 700, but they’re probably an extreme case.

dstufft avatar Sep 22 '25 21:09 dstufft

First draft:

Image

Working file: https://excalidraw.com/#json=aUA_1_qNLzGM9tJoDZrf1,RadUQohpU1Fspm1qASbMWw

Any feedback @dstufft @di @miketheman @ewdurbin ?

nlhkabu avatar Sep 23 '25 06:09 nlhkabu

List builder UI update after some thought:

I think it will be more effective to add a "select all" checkbox at the top of the widget, instead of having an "add all" and "remove all" buttons. This will require a user who wants to add everything to make an additional click (1. click the select all checkbox, 2. click the "add" button), but is also more flexible for those users who want to transfer most but not all of their projects.

In this case, I could imagine a user would use the "select all" checkbox and then search and remove those projects that they don't want to transfer.

Image

nlhkabu avatar Oct 04 '25 11:10 nlhkabu

I believe the design for this is now ready to go - if someone wants to pick this up and build it, I'd be happy to answer any design questions :)

nlhkabu avatar Oct 28 '25 06:10 nlhkabu