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 fc42aed commit e66c9cb
Show file tree
Hide file tree
Showing 21 changed files with 248 additions and 195 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 e66c9cb

Please sign in to comment.