Skip to content

Commit

Permalink
Merge pull request #18152 from mvdbeek/fix_merge_forward
Browse files Browse the repository at this point in the history
Fix import broken with forward merge
  • Loading branch information
jmchilton authored May 15, 2024
2 parents 08e9bcf + 42eda1f commit ad9271c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions client/src/components/Login/RegisterForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
BFormInput,
BFormText,
} from "bootstrap-vue";
import { computed, ref } from "vue";
import { computed, type Ref, ref } from "vue";
import { Toast } from "@/composables/toast";
import localize from "@/utils/localization";
Expand Down Expand Up @@ -46,7 +46,7 @@ const confirm = ref(null);
const password = ref(null);
const username = ref(null);
const subscribe = ref(null);
const messageText = ref(null);
const messageText: Ref<string | null> = ref(null);
const disableCreate = ref(false);
const labelPassword = ref(localize("Password"));
const labelPublicName = ref(localize("Public name"));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<script setup lang="ts">
import axios, { type AxiosError } from "axios";
import { BAlert, BButton, BForm, BFormCheckbox, BFormGroup } from "bootstrap-vue";
import { errorMessageAsString } from "utils/simple-error";
import { computed, onMounted, ref } from "vue";
import Multiselect from "vue-multiselect";
import { useConfig } from "@/composables/config";
import { withPrefix } from "@/utils/redirect";
import { errorMessageAsString } from "@/utils/simple-error";
import LoadingSpan from "@/components/LoadingSpan.vue";
Expand Down
6 changes: 3 additions & 3 deletions lib/galaxy/model/scripts/history_table_pruner.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def get_high(low):
high = get_high(low)
batch_counter = 1
while low <= self.max_id:
log.info(f"Running batch {batch_counter} of {self.batches}: history id range {low}-{high-1}:")
log.info(f"Running batch {batch_counter} of {self.batches}: history id range {low}-{high - 1}:")
self._run_batch(low, high)
low = high
high = get_high(high)
Expand All @@ -76,7 +76,7 @@ def _get_default_max_create_time(self):
return today.replace(month=today.month - 1)

def _run_batch(self, low, high):
empty_batch_msg = f" No histories to delete in id range {low}-{high-1}"
empty_batch_msg = f" No histories to delete in id range {low}-{high - 1}"
self._mark_histories_as_deleted_and_purged(low, high)
histories = self._get_histories(low, high)
if not histories:
Expand Down Expand Up @@ -200,7 +200,7 @@ def _set_references_to_null(self):

def _delete_histories(self, low, high):
"""Last step: delete histories that are safe to delete."""
log.info(f" Deleting histories in id range {low}-{high-1}")
log.info(f" Deleting histories in id range {low}-{high - 1}")
stmt = text(f"DELETE FROM history WHERE id IN (SELECT id FROM {TMP_TABLE})")
with self.engine.begin() as conn:
conn.execute(stmt)
Expand Down

0 comments on commit ad9271c

Please sign in to comment.