Skip to content
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

regex based mass update #10

Open
saxix opened this issue Jul 8, 2024 · 1 comment
Open

regex based mass update #10

saxix opened this issue Jul 8, 2024 · 1 comment
Assignees

Comments

@saxix
Copy link
Member

saxix commented Jul 8, 2024

This feature should work as a Django admin action and allow updating a filtered Queryset based on the provided Regex.

How it should work:

  • User filters the data using standard Admin Changelist filters (program filter is always mandatory)

  • A page is displayed to set:

    • the field that needs to be updated chosen from the list of available fields for the program the filtered data belongs to
    • the regex to apply (sed style)
  • after the user clicks "Start", the system displays a preview of the changed data (before/ after)

  • If the user clicks "Apply", the changes are applied to the datased

  • If the user clicks "Back", he is redirected to the previous page

  • If the user clicks "Cancel," he is redirected to the Changelist page, where the selected filters are still applied.

@sergey-misuk-valor sergey-misuk-valor self-assigned this Jul 9, 2024
@saxix
Copy link
Member Author

saxix commented Jul 9, 2024

Should we run mass update twice, or should we keep preview data and apply it later?

after 'Start' button is clicked, we mass update existing values and validate them using linked DataChecker. Processed data can be added to an hidden field to be applied after "Apply"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants