Git Product home page Git Product logo

Comments (8)

jdangerx avatar jdangerx commented on June 15, 2024

(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.

zschira avatar zschira commented on June 15, 2024

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.

jdangerx avatar jdangerx commented on June 15, 2024

I thought so, but the ZenodoDepositor isn't being used in main yet, and I was able to repro in main.

from pudl-archiver.

jdangerx avatar jdangerx commented on June 15, 2024

(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.

jdangerx avatar jdangerx commented on June 15, 2024

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.

zschira avatar zschira commented on June 15, 2024

They should've happened on the draft deposition though, right?

from pudl-archiver.

zschira avatar zschira commented on June 15, 2024

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.

jdangerx avatar jdangerx commented on June 15, 2024

Yeah, I have a tiny PR coming in a second.

from pudl-archiver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.