Skip to content

Support duplicating groups of fields #7426

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: release/3.3.2
Choose a base branch
from

Conversation

sc0ttkclark
Copy link
Member

@sc0ttkclark sc0ttkclark commented May 3, 2025

Description

Allow duplicating groups of fields from REST API and from the admin UI.

Related GitHub issue(s)

#7322

Testing instructions

  1. Edit a pod
  2. Create a group with fields
  3. Click "Duplicate" on that group row
  4. See that a new group has been created below with a duplicate of all fields that original group contained

Screenshots / screencast

TBD

Changelog text for these changes

PR checklist

Remaining tasks

  • Support updating the Pods object state with a new group
  • Duplicate link should load the new group and it's fields into the admin area
  • Show errors if one is encountered
  • Update REST API endpoint to use /duplicate path and use a separate class to avoid POST collision with the group edit method

@sc0ttkclark sc0ttkclark self-assigned this May 3, 2025
@sc0ttkclark sc0ttkclark added Type: Feature Features that add entirely new functionality that was not there before Component: UI Issues related to user experience and interfaces Component: DFV Issues related to the Pods DFV JS that powers form fields labels May 3, 2025
@sc0ttkclark sc0ttkclark added this to the Pods 3.4 milestone May 3, 2025
@sc0ttkclark sc0ttkclark marked this pull request as ready for review May 3, 2025 03:36
@sc0ttkclark sc0ttkclark requested a review from JoryHogeveen as a code owner May 3, 2025 03:36
@sc0ttkclark sc0ttkclark force-pushed the feature/duplicate-group branch 2 times, most recently from e072279 to b48cdb0 Compare May 3, 2025 14:16
@sc0ttkclark sc0ttkclark changed the base branch from main to release/3.3.2 May 3, 2025 14:16
@sc0ttkclark sc0ttkclark force-pushed the feature/duplicate-group branch 2 times, most recently from 6b848b0 to 2a11b0c Compare May 3, 2025 14:18
Auto rebuild assets

DFV work for duplicate group

Separate the duplicate group endpoint

Remove temp debug

Auto rebuild assets
@sc0ttkclark sc0ttkclark force-pushed the feature/duplicate-group branch from 7ee8968 to 6d51846 Compare May 5, 2025 01:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: DFV Issues related to the Pods DFV JS that powers form fields Component: UI Issues related to user experience and interfaces Type: Feature Features that add entirely new functionality that was not there before
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant