Coder Social home page Coder Social logo

edanalytics / lightbeam Goto Github PK

View Code? Open in Web Editor NEW
10.0 8.0 0.0 357 KB

CLI tool for validating and transmitting payloads from JSONL files into an Ed-Fi API.

License: Apache License 2.0

Python 98.64% Shell 1.36%
bulk-loader ed-fi edfi validation-tool

lightbeam's People

Contributors

ejoranlienea avatar jayckaiser avatar tomreitz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

lightbeam's Issues

add flag to optionally generate structured output

To use lightbeam in an automated data pipeline it would be useful to have it generate structured output noting the number of records sent and skipped by resource and status code, the run timestamp, and possibly other information. Open questions include:

  1. what should the flag be? perhaps --results-file output.json
  2. what should the output format be? (YAML, JSON, something else?)
  3. besides the items noted above, what else should be included in the results? perhaps the Ed-Fi API base_url? anything else?

Tagging @jayckaiser for thoughts.

Lightbeam Deletes functionality not querying API correctly

I am in the process of building out delete functionality for DPS to delete descriptors from their ODS. I want to leverage the lightbeam delete functionality, but it seems that lightbeam is not correctly querying the API.

On the server request logs, we can see a request come through like so:

/data/v3/ed-fi/programTypeDescriptors?codeValue=504&namespace=uri://dpsk12.org/programTypeDescriptor&shortDescription=106

These parameters are not valid to be used against the API as per swagger. This request will return the whole set of PorgramTypeDescriptors that exist in the ODS. so returns a 200 response, but does not subset the descriptors as perhaps intended.

This results in lightbeam not being able to find a 1-1 match for payload and record with this being an output:

lightbeam INFO (reason: [multiple matching payloads found in API]; instances: 2)

There are also no subsequent DELETE requests to the API as per the access logs, so lightbeam is definitely stopping after this point.

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.