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

Task Batch multi-update #4142

Open
mjy opened this issue Dec 6, 2024 · 3 comments
Open

Task Batch multi-update #4142

mjy opened this issue Dec 6, 2024 · 3 comments
Labels
task The issue requests a new TaxonWorks "TASKS" card.

Comments

@mjy
Copy link
Member

mjy commented Dec 6, 2024

From discussion with @AntWeb-org:

GIven that you have 787 COs.
And those COs each have a DataAttribute with .
Provide a file, or some table of data to TW.
It has CatalogNumber in one column, and in another.
Select the Predicate you want to update.
Click "magic update".

Abstract to fields for some models too as well, maybe.

@mjy mjy added the task The issue requests a new TaxonWorks "TASKS" card. label Dec 6, 2024
@mjy
Copy link
Member Author

mjy commented Dec 6, 2024

Trick is going to be how to delimit the fields, one would want to
copy/paste 2 columns from a spreadsheet I think, for maximum
efficiency. I don't know if this would copy a \t, for example. Maybe
you'd use 3 columns, and have , in the middle -> then to text input,
then "match"-like process and confirmation.

@AntWeb-org
Copy link

Copying and pasting is fine. Right now I have to copy and paste all of the information (67 rows!) if I want to delete COs then re-upload them in order to update. We have the correct headers luckily but it's always tricky to get all of the data correctly pasted.

Maybe a combo of \t and \n would work? Just guessing right now.

Thanks again for working on this.

@mjy
Copy link
Member Author

mjy commented Dec 6, 2024

@jlpereira Task is like this:

  • Filter CO|Whatver objects.
  • Send linker to Multi-update data attributes
  • Draw rows for each object, with their label in the first column
  • User must select the Predicate
  • Draw a second column beside the first with the current Predicate values, if any, for each row
  • Draw a second column of "table inputs" (as per our discussion) that is empty. It accepts copy/pasted column values or individual edits
  • When any number of inputs in the 3rd column are present, the "Update" button is enabled.
  • For now, when update is clicked, fire individual calls per row to POST (some will be PATCH)
  • Include a warning status in the 4th column for unsaved records.

Needs to work for 1000k records or less.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task The issue requests a new TaxonWorks "TASKS" card.
Projects
None yet
Development

No branches or pull requests

2 participants