Group Import history - Link to history page from group import page
Problem to solve
Currently, the Group Import history page is accessible only from the Import Group page. This means that, once the migration has started, the only way to get to the history page is to select New Group > Import Group
again, even if the user has no intention to create a new group and they just want to get to the history page. This is not intuitive.
Screenshot
Proposed solution
Place the link to the history page on the Group Migration page (Import groups from GitLab).
Implementation plan
- relevant file -
app/assets/javascripts/import_entities/import_groups/components/import_table.vue
- you will need to pass url to history as prop from HAML, you can see how it is done in
app/assets/javascripts/import_entities/import_groups/index.js
+bulk_imports/status.html.haml
- correct path for history will be
history_import_bulk_imports_path
- use
GlLink
component for displaying link, you can take a look at gitlab-ui classes at https://gitlab.com/gitlab-org/gitlab/blob/master/app/views/groups/_import_group_from_another_instance_panel.html.haml#L1-7 for inspiration - please make
importHistoryPath
a required prop and update tests accordingly (no need to check for a link, just make sure it does not complain about missing prop)
Edited by Illya Klymov