Giter Site home page Giter Site logo

Refactor Source metrics about checklistbank HOT 5 CLOSED

mdoering avatar mdoering commented on July 24, 2024
Refactor Source metrics

from checklistbank.

Comments (5)

thomasstjerne avatar thomasstjerne commented on July 24, 2024

The source metrics view is tightly connected to the metrics endpoint: https://api.dev.checklistbank.org/dataset/3/source/1010/metrics
If an issuesCount object is added to the endpoint (like on the import endpoint: https://api.dev.checklistbank.org/dataset/1010/import?limit=1), it will be trivial to have a view for that - might even show up automatically.

It is less obvious how the metadata view could be included. If we want it in the same table, there should be an object for that also in the metrics endpoint. Alternatively, it could be under a separate tab on the same page.

from checklistbank.

mdoering avatar mdoering commented on July 24, 2024

I was hoping to retrieve separate data for different views instead of putting it all into the source metrics, but I'll see how easy / performant it is. I fear we slow down services while most people only use the default view.

from checklistbank.

mdoering avatar mdoering commented on July 24, 2024

It is actually super simple to get the issues for the current public dataset into the source metrics - at no extra cost.
Keeping in mind we only want to show it for projects, I won't add it for releases.

from checklistbank.

mdoering avatar mdoering commented on July 24, 2024

@thomasstjerne do you maybe remember why we keep a list of MD5s in the source metrics? It will have more than one entry if different sectors from the same source have syncs from different times, i.e. import files. Do we use that in the UI anywhere?

"latestMd5":"3D89239DEC0FCF8E2CC68C83AB4640B8",
"datasetMd5":[
"3D89239DEC0FCF8E2CC68C83AB4640B8",
],
"datasetAttempt":[
8,
],

from checklistbank.

thomasstjerne avatar thomasstjerne commented on July 24, 2024

Yes, the UI seems to use it to add an asterisk if the latest is not first in the list of datasetMd5s

from checklistbank.

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.