[arvados-workbench2] created: 2.4.0-171-g5d7bd111

git repository hosting git at public.arvados.org
Tue Aug 2 02:40:28 UTC 2022


        at  5d7bd1113f9decfb87d002954f6c11e0bfc53d04 (commit)


commit 5d7bd1113f9decfb87d002954f6c11e0bfc53d04
Author: Stephen Smith <stephen at curii.com>
Date:   Mon Aug 1 17:39:55 2022 -0400

    19305: Update project dialog fetch project from store
    
    Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen at curii.com>

diff --git a/src/store/projects/project-update-actions.ts b/src/store/projects/project-update-actions.ts
index 52abfd3f..a6e67485 100644
--- a/src/store/projects/project-update-actions.ts
+++ b/src/store/projects/project-update-actions.ts
@@ -22,6 +22,8 @@ import { projectPanelActions } from 'store/project-panel/project-panel-action';
 import { GroupClass } from "models/group";
 import { Participant } from "views-components/sharing-dialog/participant-select";
 import { ProjectProperties } from "./project-create-actions";
+import { getResource } from "store/resources/resources";
+import { ProjectResource } from "models/project";
 
 export interface ProjectUpdateFormDialogData {
     uuid: string;
@@ -37,7 +39,9 @@ export const PROJECT_UPDATE_FORM_SELECTOR = formValueSelector(PROJECT_UPDATE_FOR
 
 export const openProjectUpdateDialog = (resource: ProjectUpdateFormDialogData) =>
     (dispatch: Dispatch, getState: () => RootState) => {
-        dispatch(initialize(PROJECT_UPDATE_FORM_NAME, resource));
+        // Get complete project resource from store to handle consumers passing in partial resources
+        const project = getResource<ProjectResource>(resource.uuid)(getState().resources);
+        dispatch(initialize(PROJECT_UPDATE_FORM_NAME, project));
         dispatch(dialogActions.OPEN_DIALOG({
             id: PROJECT_UPDATE_FORM_NAME,
             data: {

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list