Giter Club home page Giter Club logo

moonlight's People

Contributors

jamedge avatar

Stargazers

 avatar  avatar

moonlight's Issues

Create an endpoint with comprehensive representation of lineage data

Create an endpoint which would return HTML page containing a comprehensive representation of the lineage data, formatted in a way making the following present:

  1. header - explaining what is the page about, details about the organisation, etc.
  2. footer - showing when the page is generated, and maybe more details describing the creation environment
  3. body - containing:
  • a detailed representation of ETL jobs ("lines") entered in the system
  • table of contents for these jobs

NOTES:

  • each line should be able to be generated by a separate endpoint (will be added in #2)
  • each line should contain links which would request lineage interpretation in HTML form
  • consider generating an all-in-one page for markdown while having tree-like structure for html

Fix lineage endpoint

Lineage endpoint is not working correctly. Error with the containing request is below. Add the test for this functionality as part of fixing this issue.

Stack trace:

2020-07-11 23:48:18,161 [scala-execution-context-global-146] ERROR com.github.jamedge.moonlight.core.api.Module - Unable to process request. Response message: There was an internal server error. Check API logs for details.
Additional details: 
Source message: NULL is not iterable
Source stacktrace:
org.neo4j.driver.internal.value.ValueAdapter.values(ValueAdapter.java:401)
        org.neo4j.driver.internal.value.ValueAdapter.values(ValueAdapter.java:395)
        neotypes.implicits.mappers.ValueMappers$$anon$2.to(ValueMappers.scala:120)
        neotypes.implicits.mappers.ResultMappers$$anon$3.to(ResultMappers.scala:144)
        neotypes.implicits.mappers.ResultMappers$$anon$3.$anonfun$to$8(ResultMappers.scala:145)
        scala.util.Either.flatMap(Either.scala:352)
        neotypes.implicits.mappers.ResultMappers$$anon$3.to(ResultMappers.scala:145)
        neotypes.implicits.mappers.ResultMappers$$anon$1.to(ResultMappers.scala:98)
        neotypes.Transaction$.$anonfun$collectAsImpl$4(Transaction.scala:119)
        neotypes.internal.utils.traverse$.loop$1(traverse.scala:14)
        neotypes.internal.utils.traverse$.traverseAs(traverse.scala:20)
        neotypes.internal.utils.traverse$.traverseAsList(traverse.scala:25)
        neotypes.Transaction$.$anonfun$list$2(Transaction.scala:38)
        neotypes.Transaction$.$anonfun$collectAsImpl$3(Transaction.scala:118)
        neotypes.internal.syntax.stage$CompletionStageOps$.$anonfun$acceptImpl$1(stage.scala:15)
        java.util.concurrent.CompletableFuture.uniAccept(CompletableFuture.java:656)
        java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:632)
        java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474)
        java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:1962)
        org.neo4j.driver.internal.handlers.PullAllResponseHandler.completeFailureFuture(PullAllResponseHandler.java:326)
        org.neo4j.driver.internal.handlers.PullAllResponseHandler.onSuccess(PullAllResponseHandler.java:88)
        org.neo4j.driver.internal.async.inbound.InboundMessageDispatcher.handleSuccessMessage(InboundMessageDispatcher.java:82)
        org.neo4j.driver.internal.messaging.v1.MessageReaderV1.unpackSuccessMessage(MessageReaderV1.java:75)
        org.neo4j.driver.internal.messaging.v1.MessageReaderV1.read(MessageReaderV1.java:56)
        org.neo4j.driver.internal.async.inbound.InboundMessageHandler.channelRead0(InboundMessageHandler.java:83)
        org.neo4j.driver.internal.async.inbound.InboundMessageHandler.channelRead0(InboundMessageHandler.java:35)
        org.neo4j.driver.internal.shaded.io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
        org.neo4j.driver.internal.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
        org.neo4j.driver.internal.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
        org.neo4j.driver.internal.shaded.io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
        org.neo4j.driver.internal.shaded.io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310)
        org.neo4j.driver.internal.shaded.io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:284)
        org.neo4j.driver.internal.async.inbound.MessageDecoder.channelRead(MessageDecoder.java:47)
        org.neo4j.driver.internal.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
        org.neo4j.driver.internal.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
        org.neo4j.driver.internal.shaded.io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
        org.neo4j.driver.internal.shaded.io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310)
        org.neo4j.driver.internal.shaded.io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:284)
        org.neo4j.driver.internal.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
        org.neo4j.driver.internal.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
        org.neo4j.driver.internal.shaded.io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
        org.neo4j.driver.internal.shaded.io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1389)
        org.neo4j.driver.internal.shaded.io.netty.handler.ssl.SslHandler.decodeJdkCompatible(SslHandler.java:1159)
        org.neo4j.driver.internal.shaded.io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1203)
        org.neo4j.driver.internal.shaded.io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489)
        org.neo4j.driver.internal.shaded.io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428)
        org.neo4j.driver.internal.shaded.io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)
        org.neo4j.driver.internal.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
        org.neo4j.driver.internal.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
        org.neo4j.driver.internal.shaded.io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
        org.neo4j.driver.internal.shaded.io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1414)
        org.neo4j.driver.internal.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
        org.neo4j.driver.internal.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
        org.neo4j.driver.internal.shaded.io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:945)
        org.neo4j.driver.internal.shaded.io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:146)
        org.neo4j.driver.internal.shaded.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645)
        org.neo4j.driver.internal.shaded.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580)
        org.neo4j.driver.internal.shaded.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497)
        org.neo4j.driver.internal.shaded.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459)
        org.neo4j.driver.internal.shaded.io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:886)
        org.neo4j.driver.internal.shaded.io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
        java.lang.Thread.run(Thread.java:745)
 Request: HttpRequest(HttpMethod(GET),http://localhost:8080/lineage/graph/md?root_io=user_data,List(Timeout-Access: <function1>, Accept: application/moonlight.v1+json, */*;q=0.0, User-Agent: PostmanRuntime/7.26.1, Postman-Token: 0d8d2bde-97e9-43da-8d12-22621a6bae0b, Host: localhost:8080, Accept-Encoding: gzip, deflate, br, Connection: keep-alive),HttpEntity.Strict(application/moonlight.v1+json,0 bytes total),HttpProtocol(HTTP/1.1))

Set up CI/CD pipeline

Set up CI/CD pipeline to pack the API to docker container and deploy to docker hub.

Replace or complement neotypes with a library that enables easier querying of data from neo4j (building CYPHER queries)

Current library for querying data from neo4j (neotypes) requires producing a lot of boilerplate and/or complex DSL-like logic to not repeat the same queries for different objects multiple times.
The goal of this issue is to replace this tedious part with some library which could provide these functionalities out of the box.
So far, the only library I found that provides this is this one, but doesn't seem actively maintained.
Another possibility is to explore neo4j java connector and what could be done by using it.

Add scala client library

Implement, version and deploy/distribute a simple scala library which will make the usage of the functionality this project provide even easier for developers. Ideally, it would be something like annotation or a call which could make adding (and/or extracting lineage information from context) as easy as possible.

Introduce the concept of column/chunk in IOElememts

To understand the data sources (IOElements) better, the concept of column or some smaller chunk should be thought through as well.
Notes:

  • Maybe the dynamic details structure can be used for it
  • Each column/chunk should have its own description so it's known what does it represent
  • Specific columns/chunks have their own lineage and that should be taken in consideration as well

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.