Skip to content

fix(load): make EP split deep copy more precise - #591

Merged
kpsherva merged 1 commit into
CERNDocumentServer:masterfrom
palkerecsenyi:ep-fixes
Sep 1, 2026
Merged

fix(load): make EP split deep copy more precise#591
kpsherva merged 1 commit into
CERNDocumentServer:masterfrom
palkerecsenyi:ep-fixes

Conversation

@palkerecsenyi

Copy link
Copy Markdown
Member
  • The deepcopy(entry) was copying everything, including the reference to the logger in each class. This was not actually serialisable so could not be deep copied, which led to an error.

  • This is now fixed by only deep copying the individual parts that need copying. Some copying is needed (otherwise the restricted/public records would overwrite eachother). I tested this locally and it's working for NA61/2/3/4 records

  • Some other bugs were fixed (the approval request was being fully created on the dry run despite not being inside a UoW context, and sometimes a duplicate report number was being added)

* The `deepcopy(entry)` was copying everything, including the reference
to the logger in each class. This was not actually serialisable so could
not be deep copied, which led to an error.

* This is now fixed by only deep copying the individual parts that need
copying. Some copying is needed (otherwise the restricted/public records
would overwrite eachother). I tested this locally and it's working for
NA61/2/3/4 records
@palkerecsenyi palkerecsenyi moved this to In review 🔍 in Sprint Q3 2026 ☀️ Sep 1, 2026
@kpsherva
kpsherva merged commit f8bc117 into CERNDocumentServer:master Sep 1, 2026
3 checks passed
@github-project-automation github-project-automation Bot moved this from In review 🔍 to To release 🤖 in Sprint Q3 2026 ☀️ Sep 1, 2026
@palkerecsenyi
palkerecsenyi deleted the ep-fixes branch September 1, 2026 11:29
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

Successfully merging this pull request may close these issues.

2 participants