Giter Club home page Giter Club logo

Comments (10)

snomelf avatar snomelf commented on May 29, 2024

Dave,
What is the second figure for each volunteer in the second link ?
Ta
Paul

On 23 September 2014 13:57, Dave Martin [email protected] wrote:

Compare

http://volunteer.ala.org.au/user/list?q=&sort=transcribedCount&max=10&order=desc

to

http://volunteer.ala.org.au/ws/stats

e.g.

Megan Edey 4,638 18636 2 years ago

vs

"Megan Edey", 23274,


Reply to this email directly or view it on GitHub
#44.

from volunteer-portal.

davidbairdala avatar davidbairdala commented on May 29, 2024

This is not contradictory. The web service returns a combined transcribed + validation count (23274 in this case for Megan). The user stats page splits the validated from the transcribed (4638 + 18636 = 23274). In the stats, the second number is the internal user id of the user, and should be ignored. This stats web service could be updated to include separate transcribed and validated figures, and should remove the internal user id, as it is of no use to anyone outside of the system.

The stats service could also be expanded to include other stats, like date joined, and time of last activity if desired.

from volunteer-portal.

sbearcsiro avatar sbearcsiro commented on May 29, 2024

Unless there are any responses to Dave B's comment I'm just going to close this issue.

If the stats web service should be updated to:

  • include separate transcribed and validated figures
  • to remove the internal user id
  • include other stats like date joined and time of last activity

then please raise a separate issue.

from volunteer-portal.

djtfmartin avatar djtfmartin commented on May 29, 2024

I think this web service as it is is pretty useless for the user counts. I suggest we split the counts as Dave describes.

"This stats web service could be updated to include separate transcribed and validated figures".

If we want to class this as an enhancement thats fine.

from volunteer-portal.

sbearcsiro avatar sbearcsiro commented on May 29, 2024

@djtfmartin the new stats format would be the following

note that each user is now a map instead of an array. Is that OK or should it be left as an array for compatibility with any existing clients?

[
  {"total":27443,"validated":22805,"transcribed":4638,"displayName":"Megan Edey","userId":"1142"},
  {"total":22180,"validated":9305,"transcribed":12875,"displayName":"Baz Walter","userId":"4710"},
  {"total":12152,"validated":0,"transcribed":12152,"displayName":"Teresa Van Der Heul","userId":"1058"},
  {"total":11690,"validated":8687,"transcribed":3003,"displayName":"Helen Bell","userId":"4213"},
  {"total":9555,"validated":2570,"transcribed":6985,"displayName":"Reiner Richter","userId":"1370"},
  {"total":9107,"validated":0,"transcribed":9107,"displayName":"Grahame Parsons","userId":"7484"},
  {"total":7496,"validated":1567,"transcribed":5929,"displayName":"Diana Gershwin","userId":"3458"},
  {"total":7118,"validated":1222,"transcribed":5896,"displayName":"Geoffrey Berry","userId":"4538"},
  {"total":6127,"validated":3641,"transcribed":2486,"displayName":"Jim Richardson","userId":"1186"},
  {"total":4868,"validated":1583,"transcribed":3285,"displayName":"Joy Pagon","userId":"1566"}
]

from volunteer-portal.

sbearcsiro avatar sbearcsiro commented on May 29, 2024

This is now available at http://volunteer-dev.ala.org.au/ws/stats

from volunteer-portal.

djtfmartin avatar djtfmartin commented on May 29, 2024

sorry for not responding to the earlier question. I dont think anything is consuming this service currently, so if you want to go with the map format (which looks better to me), go for it.

Once it is ready, I was going to suggest we add it as a widget in the ALA dashboard.

from volunteer-portal.

sbearcsiro avatar sbearcsiro commented on May 29, 2024

Apologies, this was not actually deployed to dev when I wrote the above message but it is now.

Re: adding it as a widget to the dashboard, would that get proxied through a server or would we need to add CORS/JSONP support as well?

from volunteer-portal.

djtfmartin avatar djtfmartin commented on May 29, 2024

CORS support makes sense and is easy to add with this plugin

http://grails.org/plugin/cors

from volunteer-portal.

djtfmartin avatar djtfmartin commented on May 29, 2024

looks good to me. closing

from volunteer-portal.

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.