Skip to content

Commit

Permalink
migration bugfixes (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
wpbonelli committed May 16, 2022
1 parent 4c580d1 commit c93a51c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
17 changes: 10 additions & 7 deletions plantit/front_end/src/components/navigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -764,10 +764,7 @@
<p v-if="profile.dirtMigrationStarted === null">
You haven't migrated your datasets from DIRT yet.
</p>
<b-alert
:show="migrationData.duplicate"
variant="danger"
>
<b-alert :show="migrationData.duplicate" variant="danger">
You already have a collection with path
<code
>/iplant/home/{{
Expand All @@ -780,7 +777,9 @@
:disabled="
migrationSubmitting ||
(migrationData !== null &&
migrationData.started !== null)
migrationData.started !== null) ||
(profile.dirtMigrationStarted !== null &&
profile.dirtMigrationCompleted === null)
"
@click="startDirtMigration"
:variant="
Expand All @@ -792,15 +791,19 @@
small
v-if="
migrationSubmitting ||
migrationData.started !== null
(migrationData !== null &&
migrationData.started !== null) ||
(profile.dirtMigrationStarted !== null &&
profile.dirtMigrationCompleted === null)
"
label="Running..."
variant="dark"
class="mr-2"
></b-spinner
><i v-else class="fas fa-chevron-right fa-fw mr-1"></i>
{{
(migrationSubmitting || migrationData.started !== null)
migrationSubmitting ||
migrationData.started !== null
? 'Running migration'
: 'Start Migration'
}}</b-button
Expand Down
3 changes: 2 additions & 1 deletion plantit/plantit/users/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,8 @@ def get_current(self, request):
'hints': user.profile.hints,
'first': user.profile.first_login,
'dirt_migration_started': user.profile.dirt_migration_started,
'dirt_migration_completed': user.profile.dirt_migration_completed
'dirt_migration_completed': user.profile.dirt_migration_completed,
'dirt_migration_path': user.profile.dirt_migration_path
},
'stats': async_to_sync(q.get_user_statistics)(user),
'users': q.list_users(),
Expand Down

0 comments on commit c93a51c

Please sign in to comment.