Skip to content

Commit

Permalink
Merge branch 'dev' into interactivetoolssqlalchemy
Browse files Browse the repository at this point in the history
  • Loading branch information
kysrpex committed Aug 2, 2024
2 parents 5320253 + 51b723b commit 9a7f3a5
Show file tree
Hide file tree
Showing 357 changed files with 2,947 additions and 1,558 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Framework tests
name: Tool framework tests
on:
push:
paths-ignore:
Expand Down Expand Up @@ -64,9 +64,9 @@ jobs:
uses: actions/cache@v4
with:
path: 'galaxy root/.venv'
key: gxy-venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('galaxy root/requirements.txt') }}-framework
key: gxy-venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('galaxy root/requirements.txt') }}-framework-tools
- name: Run tests
run: ./run_tests.sh --coverage --framework
run: ./run_tests.sh --coverage --framework-tools
working-directory: 'galaxy root'
- uses: codecov/codecov-action@v3
with:
Expand Down
79 changes: 79 additions & 0 deletions .github/workflows/framework_workflows.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: Workflow framework tests
on:
push:
paths-ignore:
- 'client/**'
- 'doc/**'
- 'lib/galaxy_test/selenium/**'
pull_request:
paths-ignore:
- 'client/**'
- 'doc/**'
- 'lib/galaxy_test/selenium/**'
schedule:
# Run at midnight UTC every Tuesday
- cron: '0 0 * * 2'
env:
GALAXY_TEST_DBURI: 'postgresql://postgres:postgres@localhost:5432/galaxy?client_encoding=utf8'
GALAXY_TEST_RAISE_EXCEPTION_ON_HISTORYLESS_HDA: '1'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8']
services:
postgres:
image: postgres:13
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- 5432:5432
steps:
- if: github.event_name == 'schedule'
run: |
echo "GALAXY_CONFIG_OVERRIDE_METADATA_STRATEGY=extended" >> $GITHUB_ENV
echo "GALAXY_CONFIG_OVERRIDE_OUTPUTS_TO_WORKING_DIRECTORY=true" >> $GITHUB_ENV
- uses: actions/checkout@v4
with:
path: 'galaxy root'
- uses: actions/setup-node@v4
with:
node-version: '18.12.1'
cache: 'yarn'
cache-dependency-path: 'galaxy root/client/yarn.lock'
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Get full Python version
id: full-python-version
shell: bash
run: echo "version=$(python -c 'import sys; print("-".join(str(v) for v in sys.version_info))')" >> $GITHUB_OUTPUT
- name: Cache pip dir
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: pip-cache-${{ matrix.python-version }}-${{ hashFiles('galaxy root/requirements.txt') }}
- name: Cache galaxy venv
uses: actions/cache@v4
with:
path: 'galaxy root/.venv'
key: gxy-venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('galaxy root/requirements.txt') }}-framework-workflows
- name: Run tests
run: ./run_tests.sh --coverage --framework-workflows
working-directory: 'galaxy root'
- uses: codecov/codecov-action@v3
with:
flags: framework
working-directory: 'galaxy root'
- uses: actions/upload-artifact@v4
if: failure()
with:
name: Framework test results (${{ matrix.python-version }})
path: 'galaxy root/run_framework_workflows_tests.html'
5 changes: 5 additions & 0 deletions client/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ const baseRules = {
"import/first": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error",

"@typescript-eslint/consistent-type-imports": [
"error",
{ prefer: "type-imports", fixStyle: "inline-type-imports" },
],
};

const baseExtends = [
Expand Down
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"pyre-to-regexp": "^0.0.6",
"querystring-es3": "^0.2.1",
"regenerator-runtime": "^0.14.0",
"requirejs": "2.3.6",
"requirejs": "2.3.7",
"rxjs": "^7.8.1",
"rxjs-spy": "^8.0.2",
"rxjs-spy-devtools-plugin": "^0.0.4",
Expand Down
2 changes: 1 addition & 1 deletion client/src/api/configTemplates.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { components } from "@/api/schema/schema";
import { type components } from "@/api/schema/schema";

export type Instance =
| components["schemas"]["UserFileSourceModel"]
Expand Down
2 changes: 1 addition & 1 deletion client/src/api/datasetCollections.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CollectionEntry, DCESummary, HDCADetailed, HDCASummary, isHDCA } from "@/api";
import { type CollectionEntry, type DCESummary, type HDCADetailed, type HDCASummary, isHDCA } from "@/api";
import { fetcher } from "@/api/schema";

const DEFAULT_LIMIT = 50;
Expand Down
6 changes: 3 additions & 3 deletions client/src/api/datasets.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import axios from "axios";
import type { FetchArgType } from "openapi-typescript-fetch";
import { type FetchArgType } from "openapi-typescript-fetch";

import { HDADetailed } from "@/api";
import { components, fetcher } from "@/api/schema";
import { type HDADetailed } from "@/api";
import { type components, fetcher } from "@/api/schema";
import { withPrefix } from "@/utils/redirect";

export const datasetsFetcher = fetcher.path("/api/datasets").method("get").create();
Expand Down
2 changes: 1 addition & 1 deletion client/src/api/groups.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import axios from "axios";

import { components, fetcher } from "@/api/schema";
import { type components, fetcher } from "@/api/schema";

type GroupModel = components["schemas"]["GroupModel"];
export async function getAllGroups(): Promise<GroupModel[]> {
Expand Down
2 changes: 1 addition & 1 deletion client/src/api/histories.archived.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FetchArgType } from "openapi-typescript-fetch";
import { type FetchArgType } from "openapi-typescript-fetch";

import { type components, fetcher } from "@/api/schema";

Expand Down
3 changes: 1 addition & 2 deletions client/src/api/histories.export.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { components } from "@/api/schema";
import { fetcher } from "@/api/schema";
import { type components, fetcher } from "@/api/schema";
import {
type ExportRecord,
ExportRecordModel,
Expand Down
2 changes: 1 addition & 1 deletion client/src/api/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** Contains type alias and definitions related to Galaxy API models. */

import { components } from "@/api/schema";
import { type components } from "@/api/schema";

/**
* Contains minimal information about a History.
Expand Down
2 changes: 1 addition & 1 deletion client/src/api/invocations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import axios from "axios";

import { getAppRoot } from "@/onload";

import { ApiResponse, components, fetcher } from "./schema";
import { type ApiResponse, type components, fetcher } from "./schema";

export type WorkflowInvocationElementView = components["schemas"]["WorkflowInvocationElementView"];
export type WorkflowInvocationCollectionView = components["schemas"]["WorkflowInvocationCollectionView"];
Expand Down
2 changes: 1 addition & 1 deletion client/src/api/jobs.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { components, fetcher } from "@/api/schema";
import { type components, fetcher } from "@/api/schema";

export type JobDestinationParams = components["schemas"]["JobDestinationParams"];

Expand Down
2 changes: 1 addition & 1 deletion client/src/api/objectStores.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { fetcher } from "@/api/schema";
import type { components } from "@/api/schema/schema";
import { type components } from "@/api/schema/schema";

export type UserConcreteObjectStore = components["schemas"]["UserConcreteObjectStoreModel"];

Expand Down
2 changes: 1 addition & 1 deletion client/src/api/remoteFiles.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { components } from "@/api/schema";
import { type components } from "@/api/schema";
import { fetcher } from "@/api/schema/fetcher";

/** The browsing mode:
Expand Down
2 changes: 1 addition & 1 deletion client/src/api/schema/__mocks__/fetcher.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { paths } from "@/api/schema";
import { type paths } from "@/api/schema";

jest.mock("@/api/schema", () => ({
fetcher: mockFetcher,
Expand Down
7 changes: 3 additions & 4 deletions client/src/api/schema/fetcher.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import type { ApiResponse, Middleware } from "openapi-typescript-fetch";
import { Fetcher } from "openapi-typescript-fetch";
import { type ApiResponse, Fetcher, type Middleware } from "openapi-typescript-fetch";

import { getAppRoot } from "@/onload/loadConfig";
import { rethrowSimple } from "@/utils/simple-error";

import type { paths } from "./schema";
import { type paths } from "./schema";

export { ApiResponse };
export { type ApiResponse };

const rethrowSimpleMiddleware: Middleware = async (url, init, next) => {
try {
Expand Down
45 changes: 41 additions & 4 deletions client/src/api/schema/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12397,6 +12397,26 @@ export interface components {
visible?: boolean | null;
[key: string]: unknown;
};
/** UpdateHistoryPayload */
UpdateHistoryPayload: {
/** Annotation */
annotation?: string | null;
/** Deleted */
deleted?: boolean | null;
/** Genome Build */
genome_build?: string | null;
/** Importable */
importable?: boolean | null;
/** Name */
name?: string | null;
/** Preferred Object Store Id */
preferred_object_store_id?: string | null;
/** Published */
published?: boolean | null;
/** Purged */
purged?: boolean | null;
tags?: components["schemas"]["TagCollection"] | null;
};
/** UpdateInstancePayload */
UpdateInstancePayload: {
/** Active */
Expand Down Expand Up @@ -12902,8 +12922,7 @@ export interface components {
*/
content:
| components["schemas"]["MessageNotificationContent"]
| components["schemas"]["NewSharedItemNotificationContent"]
| components["schemas"]["BroadcastNotificationContent"];
| components["schemas"]["NewSharedItemNotificationContent"];
/**
* Create time
* Format: date-time
Expand Down Expand Up @@ -13021,6 +13040,24 @@ export interface components {
/** Total Disk Usage */
total_disk_usage: number;
};
/** UserUpdatePayload */
UserUpdatePayload: {
/**
* Active
* @description User is active
*/
active?: boolean | null;
/**
* Preferred Object Store ID
* @description The ID of the object store that should be used to store new datasets in this history.
*/
preferred_object_store_id?: string | null;
/**
* Username
* @description The name of the user.
*/
username?: string | null;
};
/** Visualization */
Visualization: Record<string, never>;
/** VisualizationSummary */
Expand Down Expand Up @@ -17571,7 +17608,7 @@ export interface operations {
};
requestBody: {
content: {
"application/json": unknown;
"application/json": components["schemas"]["UpdateHistoryPayload"];
};
};
responses: {
Expand Down Expand Up @@ -24967,7 +25004,7 @@ export interface operations {
};
requestBody: {
content: {
"application/json": Record<string, never>;
"application/json": components["schemas"]["UserUpdatePayload"];
};
};
responses: {
Expand Down
2 changes: 1 addition & 1 deletion client/src/api/tags.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { components, fetcher } from "@/api/schema";
import { type components, fetcher } from "@/api/schema";

type TaggableItemClass = components["schemas"]["TaggableItemClass"];

Expand Down
2 changes: 1 addition & 1 deletion client/src/api/workflows.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { components, fetcher } from "@/api/schema";
import { type components, fetcher } from "@/api/schema";

export type StoredWorkflowDetailed = components["schemas"]["StoredWorkflowDetailed"];

Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Citation/CitationItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { faExternalLinkAlt } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
import { computed } from "vue";
import { Citation } from ".";
import { type Citation } from ".";
library.add(faExternalLinkAlt);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import localize from "@/utils/localization";
import { prependPath } from "@/utils/redirect";
import { errorMessageAsString } from "@/utils/simple-error";
import { HistoryContentBulkOperationPayload, updateHistoryItemsBulk } from "./services";
import { type HistoryContentBulkOperationPayload, updateHistoryItemsBulk } from "./services";
import ChangeDatatypeTab from "@/components/Collections/common/ChangeDatatypeTab.vue";
import DatabaseEditTab from "@/components/Collections/common/DatabaseEditTab.vue";
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Common/ExportForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { BButton, BCol, BFormGroup, BFormInput, BRow } from "bootstrap-vue";
import { computed, ref } from "vue";
import { FilterFileSourcesOptions } from "@/api/remoteFiles";
import { type FilterFileSourcesOptions } from "@/api/remoteFiles";
import localize from "@/utils/localization";
import FilesInput from "@/components/FilesDialog/FilesInput.vue";
Expand Down
4 changes: 2 additions & 2 deletions client/src/components/Common/ExportRDMForm.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { getLocalVue } from "@tests/jest/helpers";
import { mount, Wrapper } from "@vue/test-utils";
import { mount, type Wrapper } from "@vue/test-utils";
import flushPromises from "flush-promises";

import { type BrowsableFilesSourcePlugin, CreatedEntry } from "@/api/remoteFiles";
import { type BrowsableFilesSourcePlugin, type CreatedEntry } from "@/api/remoteFiles";
import { mockFetcher } from "@/api/schema/__mocks__";

import ExportRDMForm from "./ExportRDMForm.vue";
Expand Down
6 changes: 3 additions & 3 deletions client/src/components/Common/ExportRDMForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { BButton, BCard, BFormGroup, BFormInput, BFormRadio, BFormRadioGroup } f
import { computed, ref } from "vue";
import {
BrowsableFilesSourcePlugin,
CreatedEntry,
type BrowsableFilesSourcePlugin,
type CreatedEntry,
createRemoteEntry,
FilterFileSourcesOptions,
type FilterFileSourcesOptions,
} from "@/api/remoteFiles";
import { useToast } from "@/composables/toast";
import localize from "@/utils/localization";
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Common/ExportRecordDOILink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import axios from "axios";
import { ref, watch } from "vue";
import { BrowsableFilesSourcePlugin } from "@/api/remoteFiles";
import { type BrowsableFilesSourcePlugin } from "@/api/remoteFiles";
import { useFileSources } from "@/composables/fileSources";
import DOILink from "./DOILink.vue";
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Common/ExportRecordDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { BAlert, BButton } from "bootstrap-vue";
import { computed } from "vue";
import type { ColorVariant } from ".";
import { ExportRecord } from "./models/exportRecordModel";
import { type ExportRecord } from "./models/exportRecordModel";
import Heading from "@/components/Common/Heading.vue";
import LoadingSpan from "@/components/LoadingSpan.vue";
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Common/FilterMenu.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createTestingPinia } from "@pinia/testing";
import { getLocalVue } from "@tests/jest/helpers";
import { mount, Wrapper } from "@vue/test-utils";
import { mount, type Wrapper } from "@vue/test-utils";

import { HistoryFilters } from "@/components/History/HistoryFilters";
import { WorkflowFilters } from "@/components/Workflow/List/WorkflowFilters";
Expand Down
Loading

0 comments on commit 9a7f3a5

Please sign in to comment.