Giter Site home page Giter Site logo

Comments (2)

bnewbold avatar bnewbold commented on May 23, 2024

The pattern that seems to be emerging has three components:

  • free-form elasticsearch queries to identify entities needing fixes
  • an entity-specific "want()" function that looks at entity and confirms whether it is worth doing an update
  • one or more entity-specific map functions that make fixes/updates to the entity

These would be combined by tooling that executes the elasticsearch query in a streaming fashion, fetches matched entities from the API, confirms that they should be updated, runs any cleanup functions, confirms that the entity actually changed (if not, skip update), then pushes the updates in batches. Variants of this can be dry runs (don't do actual update), limited runs (possibly with random sampling), not auto-accepting the updates (leave for human review), showing stats/examples to the user (eg, how many elastic hits, what transform looks like).

A missing piece is to integrate the want() and cleanups with import and other update code to allow cleanups to happen at the same time as other edits. Also to include in review bots for quality review.

An alternative case is to use some external bulk metadata list and iterate through it. The existing import framework is probably Good Enough for this.

from fatcat.

bnewbold avatar bnewbold commented on May 23, 2024

We now have several "cleanup" workers implemented in python, as well as the fatcat-cli workflow for simple updates. The current workflow is to document "bulk" metadata updates in this git repo when they happen.

from fatcat.

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.