Skip to content

Implement Form-Based Editing for Queues#92

Open
Shrutim1505 wants to merge 1 commit intovolcano-sh:mainfrom
Shrutim1505:editing_functionality_form
Open

Implement Form-Based Editing for Queues#92
Shrutim1505 wants to merge 1 commit intovolcano-sh:mainfrom
Shrutim1505:editing_functionality_form

Conversation

@Shrutim1505
Copy link
Member

Added a feature to allow users to edit queues, jobs, and pods using a form-based interface within the dialog.

Introduced a toggle between YAML and Form views for easier editing.

Form fields dynamically render based on the provided data, allowing nested objects and arrays to be modified easily.

Added functionality to save the updated data, ensuring consistency with both YAML and form-based formats.

Improved user experience with validation to switch between modes only when valid YAML is provided.

image

@Shrutim1505 Shrutim1505 force-pushed the editing_functionality_form branch 2 times, most recently from d917bfa to f3a6ecf Compare May 12, 2025 20:35
@Shrutim1505
Copy link
Member Author

/assign @kevin-wangzefeng

@Shrutim1505
Copy link
Member Author

@Monokaix u can check this one

@Monokaix
Copy link
Member

Monokaix commented May 20, 2025

/assign @kevin-wangzefeng

I think the metadata part should not be displayed to let users edit them as it's meta data, and just display the fields in queue.spec is ok.

@JesseStutler
Copy link
Member

JesseStutler commented May 20, 2025

As for queue, I think it can be same as creation of queue, you can just show editing of weight,capability,reclaimable,guarantee,parent,deserved,priority fileds in spec. @Shrutim1505

@Shrutim1505
Copy link
Member Author

/assign @kevin-wangzefeng

I think the metadata part should not be displayed to let users edit them as it's meta data, and just display the fields in queue.spec is ok.

ok i will remove it

@Shrutim1505
Copy link
Member Author

As for queue, I think it can be same as creation of queue, you can just show editing of weight,capability,reclaimable,guarantee,parent,deserved,priority fileds in spec. @Shrutim1505

ok

@Shrutim1505
Copy link
Member Author

As for queue, I think it can be same as creation of queue, you can just show editing of weight,capability,reclaimable,guarantee,parent,deserved,priority fileds in spec. @Shrutim1505

actually i think in creation of queues users should have option of customisation , where as in editing existing queues can be edited

@Shrutim1505 Shrutim1505 force-pushed the editing_functionality_form branch from ae65982 to 893b46e Compare May 25, 2025 17:24
@Shrutim1505 Shrutim1505 changed the title Implement Form-Based Editing for Queues, Jobs, and Pods in the Editor Implement Form-Based Editing for Queues May 25, 2025
Copy link
Contributor

@de6p de6p left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make use of a form library to improve the developer experience and eliminate redundant code.
one I have in mind is -> https://github.com/rjsf-team/react-jsonschema-form

@Shrutim1505 Shrutim1505 force-pushed the editing_functionality_form branch from f113d28 to bf8744f Compare May 29, 2025 05:58
@Shrutim1505
Copy link
Member Author

image

@Shrutim1505
Copy link
Member Author

@JesseStutler backend is in #111

@de6p
Copy link
Contributor

de6p commented May 29, 2025

@Shrutim1505, please ensure that the backend code is implemented in the same PR, as it makes the review process easier.

@Shrutim1505 Shrutim1505 force-pushed the editing_functionality_form branch from bf8744f to 5830cde Compare May 30, 2025 05:27
@Shrutim1505 Shrutim1505 force-pushed the editing_functionality_form branch 2 times, most recently from 1f1c058 to c5876f2 Compare May 30, 2025 05:33
@Shrutim1505
Copy link
Member Author

cc: @JesseStutler @Monokaix

@Monokaix
Copy link
Member

/approve

@volcano-sh-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Monokaix

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Shrutim1505 Shrutim1505 force-pushed the editing_functionality_form branch from c5876f2 to 34aac9e Compare May 30, 2025 07:45
@Shrutim1505 Shrutim1505 force-pushed the editing_functionality_form branch 2 times, most recently from d15f7bf to 97b137f Compare May 30, 2025 07:47
Signed-off-by: Shrutim1505 <shrutimurthy2103@gmail.com>

editing queues in form

Signed-off-by: Shrutim1505 <shrutimurthy2103@gmail.com>
@Shrutim1505 Shrutim1505 force-pushed the editing_functionality_form branch from f4ccba7 to 569ec47 Compare May 30, 2025 12:48
@Shrutim1505
Copy link
Member Author

@Monokaix please test it now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Comments