Skip to content

Commit

Permalink
Rework user file/object store for changes to client fetch arch.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Sep 27, 2024
1 parent 09439af commit ab70f15
Show file tree
Hide file tree
Showing 19 changed files with 244 additions and 191 deletions.
1 change: 0 additions & 1 deletion client/src/api/configTemplates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export type SecretData = CreateInstancePayload["secrets"];
export type PluginAspectStatus = components["schemas"]["PluginAspectStatus"];
export type PluginStatus = components["schemas"]["PluginStatus"];

export type CreateInstancePayload = components["schemas"]["CreateInstancePayload"];
export type UpgradeInstancePayload = components["schemas"]["UpgradeInstancePayload"];
export type TestUpgradeInstancePayload = components["schemas"]["TestUpgradeInstancePayload"];
export type UpdateInstancePayload = components["schemas"]["UpdateInstancePayload"];
Expand Down
4 changes: 2 additions & 2 deletions client/src/api/objectStores.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export async function getObjectStoreDetails(id: string) {
if (id.startsWith("user_objects://")) {
const userObjectStoreId = id.substring("user_objects://".length);

const { data, error } = await GalaxyApi().GET("/api/object_store_instances/{user_object_store_id}", {
params: { path: { user_object_store_id: userObjectStoreId } },
const { data, error } = await GalaxyApi().GET("/api/object_store_instances/{uuid}", {
params: { path: { uuid: userObjectStoreId } },
});

if (error) {
Expand Down
28 changes: 14 additions & 14 deletions client/src/api/schema/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ export interface paths {
patch?: never;
trace?: never;
};
"/api/file_source_instances/{user_file_source_id}": {
"/api/file_source_instances/{uuid}": {
parameters: {
query?: never;
header?: never;
Expand All @@ -925,7 +925,7 @@ export interface paths {
patch?: never;
trace?: never;
};
"/api/file_source_instances/{user_file_source_id}/test": {
"/api/file_source_instances/{uuid}/test": {
parameters: {
query?: never;
header?: never;
Expand Down Expand Up @@ -3322,7 +3322,7 @@ export interface paths {
patch?: never;
trace?: never;
};
"/api/object_store_instances/{user_object_store_id}": {
"/api/object_store_instances/{uuid}": {
parameters: {
query?: never;
header?: never;
Expand All @@ -3341,7 +3341,7 @@ export interface paths {
patch?: never;
trace?: never;
};
"/api/object_store_instances/{user_object_store_id}/test": {
"/api/object_store_instances/{uuid}/test": {
parameters: {
query?: never;
header?: never;
Expand Down Expand Up @@ -20070,7 +20070,7 @@ export interface operations {
};
path: {
/** @description The UUID index for a persisted UserFileSourceStore object. */
user_file_source_id: string;
uuid: string;
};
cookie?: never;
};
Expand Down Expand Up @@ -20114,7 +20114,7 @@ export interface operations {
};
path: {
/** @description The UUID index for a persisted UserFileSourceStore object. */
user_file_source_id: string;
uuid: string;
};
cookie?: never;
};
Expand Down Expand Up @@ -20165,7 +20165,7 @@ export interface operations {
};
path: {
/** @description The UUID index for a persisted UserFileSourceStore object. */
user_file_source_id: string;
uuid: string;
};
cookie?: never;
};
Expand Down Expand Up @@ -20207,7 +20207,7 @@ export interface operations {
};
path: {
/** @description The UUID index for a persisted UserFileSourceStore object. */
user_file_source_id: string;
uuid: string;
};
cookie?: never;
};
Expand Down Expand Up @@ -20251,7 +20251,7 @@ export interface operations {
};
path: {
/** @description The UUID index for a persisted UserFileSourceStore object. */
user_file_source_id: string;
uuid: string;
};
cookie?: never;
};
Expand Down Expand Up @@ -28541,7 +28541,7 @@ export interface operations {
};
path: {
/** @description The UUID used to identify a persisted UserObjectStore object. */
user_object_store_id: string;
uuid: string;
};
cookie?: never;
};
Expand Down Expand Up @@ -28585,7 +28585,7 @@ export interface operations {
};
path: {
/** @description The UUID used to identify a persisted UserObjectStore object. */
user_object_store_id: string;
uuid: string;
};
cookie?: never;
};
Expand Down Expand Up @@ -28636,7 +28636,7 @@ export interface operations {
};
path: {
/** @description The UUID used to identify a persisted UserObjectStore object. */
user_object_store_id: string;
uuid: string;
};
cookie?: never;
};
Expand Down Expand Up @@ -28678,7 +28678,7 @@ export interface operations {
};
path: {
/** @description The UUID used to identify a persisted UserObjectStore object. */
user_object_store_id: string;
uuid: string;
};
cookie?: never;
};
Expand Down Expand Up @@ -28722,7 +28722,7 @@ export interface operations {
};
path: {
/** @description The UUID used to identify a persisted UserObjectStore object. */
user_object_store_id: string;
uuid: string;
};
cookie?: never;
};
Expand Down
Loading

0 comments on commit ab70f15

Please sign in to comment.