GithubHelp home page GithubHelp logo

o2r-project / o2r-badger Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 2.0 818 KB

API for serving badges on reproducibility of research.

Home Page: https://doi.org/10.31223/osf.io/xtsqh

License: Apache License 2.0

JavaScript 95.33% HTML 2.21% Shell 0.63% Dockerfile 1.82%
badge badge-generator badges o2r reproducible-research

o2r-badger's People

Contributors

antoniave avatar crend02 avatar lukaslohoff avatar m-mohr avatar nuest avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

lukaslohoff nuest

o2r-badger's Issues

Add support for "service-less" badges

http://localhost:8089/api/1.0/badge currently gives

{

    "type": [
        "executable",
        "peerreview",
        "licence",
        "spatial",
        "releasetime"
    ],
    "services": [
        "o2r",
        "doaj",
        "crossref"
    ]
}

So different services can be used for different badges. The use does not know, which service+badge - combination will yield a result. That is not nice. Ideally, the user should not care about the service but only about the badge!

Therefore update the API to not require the services, but instead internally map from badge type to a suitable service. In case multiple services can provide information for a badge, we internally choose the "better" one (i.e. the one that is not N/A), or a "preferred" one if two differing results are obtained.

For transparency, a ?all_services could be appended and return a JSON providing all the different labels...

Add left-click action to extension button

When a user left-clicks on the icon in Chrome, nothing happens.

Why not open the menu, just as with a right click?
Or show the number of retrieved badges for the current page?

Other ideas what could be shown welcome.

Make timeout configurable per service

Right now the timeout is quite high, so the requests to the badger are open for quite some time, allowing a lot of time for the third party services in the backend to reply. This could be a good thing, but puts additional load on the badger (keeping all the connections open) and also is not an optimal user experience.

Therefore it should be possible to configure a timeout for each service (e.g. doaj, o2r) that is queried for badge information in the background, and return the request to the user of the badger API quicker.

Provide landing pages for concrete badges

If a user clicks on a badge, he should be taken to a landing page with information why this concrete badge was awared. Links are generated in extender, but the landing pages should be provided by badger.

Related to #12 because we could distinguish the landing page and #12 simply by requested content type. If HTML is requested, a server-side rendering of the JSON that is returned to fulfil #12 is returned.

Add Piwik tracker

Add tracking of API calls based on Piwik (we have a Piwik instance running)

Questions

  1. Which badge type is requested how often?
  2. What are the most (Top 10, Top 20, Top 100) requested DOIs of publications?
  3. Which research websites are used how often? (via referer header)
  4. What are the shares of "n/a" - badges? (for each badge type)
  5. Which data-backend/"service" ist used how often (only if we have a badge where the same information is queried from different sources) ?
  6. How many requests do not come from the o2r-extender?
  7. What are the shares for extended (/ svg / png) badges?
  8. Which extender version are users using? What is the version distribution?

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.