Comments (8)
(It seems like this was happening on main
but it looks like the above behavior shouldn't happen on main
.... investigating further.)
from pudl-archiver.
This approach seems right to me. It also might be smart to add a check to verify that the files we get after refreshing deposition info matches what we expect from the staged changes, and raise an error if they don't (or perhaps do a retry to see if the deposition hasn't refreshed on zenodo's end).
I am trying to figure out why I didn't run across this before, because I do remember doing some tests where files were deleted, and never ran into a problem. Perhaps this arose from the refactor somehow?
from pudl-archiver.
I thought so, but the ZenodoDepositor
isn't being used in main
yet, and I was able to repro in main
.
from pudl-archiver.
(in main
there's code that looks like it tries to fetch the deposition's files
link - which should get the latest set)
from pudl-archiver.
Oh, but fetching the latest files doesn't get the deletes because they haven't happened yet. That makes sense to me.
from pudl-archiver.
They should've happened on the draft deposition though, right?
from pudl-archiver.
Oh I guess update_datapackage
is happening before apply_changes
, so the files we get will just be the original state. I think we just need to swap that order
from pudl-archiver.
Yeah, I have a tiny PR coming in a second.
from pudl-archiver.
Related Issues (20)
- Fix GHA-only Access Denied errors for EIA 176 archiver
- Fix broken archivers HOT 3
- Archive the EIA AEO bulk data
- Archive NREL ATB data
- Archive bulk EIA930 data
- Archive GridPath RA toolkit hourly renewable energy generation profiles HOT 3
- Duplicate filename warnings while archiving FERC XBRL data HOT 1
- Update archives for the month of April HOT 5
- Investigate failed FERC1 archive for April 2024
- Fix invalid constructed URL in phmsagas archiver
- `ID_NUMBER` shows up in draft sandbox path URLs
- Publish archives for the month of May 2024 HOT 4
- phmsagas validation failure HOT 2
- ferc1, ferc6, ferc60, ferc714 logon request error
- nrelatb - Deleted record error HOT 2
- Fix intermittent failures of integration tests
- Automatically create archive approval checklist
- Better reporting & notification of archive creation and validation failures
- Update FERC archivers to handle multiple taxonomies in one year HOT 1
- Publish archives for the month of June 2024
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pudl-archiver.