[go: up one dir, main page]

Skip to content

Add ability to clear history on import group (direct transfer) table

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Current behavior

Previously imported and deleted groups appear disabled when selecting groups to import. The input fields for adding the destination location are greyed out, while the button "Reimport with projects" is not. Additionally, UI shows a reference to previous import location, that is not longer valid, as the group was deleted.

Users are confused and may unnecessarily wait for the system to "clear itself."

import-greyed-out

Steps to Reproduce

  1. Import a group
  2. Delete the imported group
  3. Try to import it again
  4. Input fields for adding the destination location are greyed out

Updated Solution

The Clear Import History solution proposed in #543091 (comment 2510099514) is the preferred solution. At present the frontend stores import history in localstorage which becomes stale when imported groups are deleted in the destination instance. This can create a confusing UI where users see disabled fields and invalid references.

Instead, add a 'Clear Import History' button that allows user to reset the states in the group import table. This would make all groups appear as 'Not started' again and no longer disable dropdown fields.

Clearing the import history should only clear frontend in-browser data not backend data. This would not remove the 'last imported to' data.

Initial proposed solution

Input fields for adding the destination location should not be greyed out, if the re-import of the group is possible. Not sure what to do with references to deleted locations. It holds an information, that the group was previously imported. But showing valid-looking link is confusing for the user who knows that the linked group has been deleted.

Acceptance criteria

  • A 'clear import history' button
  • A prominent link to the full import history page
  • Clicking the clear button changes all groups statuses to 'not started' and enables the dropdown fields
  • Users can choose new destinations. If the user tries to import to the same destination as before the 'already exists' error remains
  • User can still see the 'previously imported to' reference information under the Source group column.
  • *User cannot clear history while a group is still importing
Edited by 🤖 GitLab Bot 🤖