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

ISSUE-195: CSV queue worker and nested CSVs for EAD + an EAD plugin #196

Merged
merged 30 commits into from
Jun 20, 2024

Conversation

DiegoPino
Copy link
Member

@DiegoPino DiegoPino commented May 1, 2024

See #195 .

Includes.

@DiegoPino DiegoPino added this to the 0.8.0 milestone May 1, 2024
@DiegoPino DiegoPino self-assigned this May 1, 2024
DiegoPino added 3 commits May 1, 2024 15:23
These files will be temporary ... so how to i make sure they are not delete? mmm.. i should be OK ... right?
One choice would be to check YET again if the file passed is still there on the CSV queue worker and load if from a string there? mmmm ...
@alliomeria there is a question for you at line 583. I have tons of those. For now i assuming "only process children" if the row containing it was processed. But what if we want to process anyways?

Also. another issue i will encounter is: Delete processed ADOs... i will have to parse again each CSV attached to the main one?
@DiegoPino DiegoPino added enhancement New feature or request queue FIFO queue workers Ones taking the FI and doing the FO Ingest Setup Knobs and Levers you move while thinking about feelings and metadata and CSV files AMI Import Plugins Gets data from somewhere, puts data into a strawberry basked File processing Everything is a file, even me. CSV Processing Things we do here and there to keep the tabulated goddesses happy labels May 1, 2024
DiegoPino added 10 commits May 1, 2024 18:00
Irrelevant but my eye (left one) was twitching
Note: I will also allow any plugin to set Fixed values and skip steps of the AMI setup main form
That way we can totally avoid user input on things that need to be one way (like here)
… importer

Except it forces CSV and tries to save in private ... if that goes well i might shift all to private
No longer waiting for all CSV rows to be read if that is the case.
adds the
 $plugin_instance->stepFormAlter($form, $form_state, $this->store, $this->step);
only if step >1. Could be really larger than 2 (bc step 2 is the actual plugin form .. but this would also allow a plugin to not define that, but add complex logic for its own  $plugin_instance->interactiveForm($parents, $form_state) instead of  $plugin_instance->interactiveForm($parents, $form_state);
DiegoPino added 9 commits May 7, 2024 16:12
…custom

we will only parse

'ArchiveContainer'
'ArchiveComponent'
@alliomeria will give it a spin tomorrow AM. I had to make some hard choices.
Automatic UUID generation at this moment of the project is a bad idea. Anything can go wrong, missing ID to generate, repeated UUIDs on the parents, etc, etc.
So i will better make the scrip that generates the EAD structure well formed and public and all UUID generation will have there. Once we have tested this the actual script will become part of the process (one can uploads XMLs instead of a CSV)
@alliomeria this has not been my best week.
Testing now again nested ingests. Sorry :(
or we will end with 500 Mbytes of stuff that is unneeded on every batch run
See #200 or #200

Note. I think we should also on replace/append and even on full replace log the JSON diff the way we do via VBO replace. @alliomeria thoughts?
@DiegoPino DiegoPino merged commit 0dda14a into 0.8.0 Jun 20, 2024
@DiegoPino DiegoPino deleted the ISSUE-195 branch July 25, 2024 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AMI Import Plugins Gets data from somewhere, puts data into a strawberry basked CSV Processing Things we do here and there to keep the tabulated goddesses happy enhancement New feature or request File processing Everything is a file, even me. Ingest Setup Knobs and Levers you move while thinking about feelings and metadata and CSV files queue workers Ones taking the FI and doing the FO queue FIFO
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants