ubiquity / devpool-directory-tasks

Open bounties for the devpool-directory repository
1 stars 3 forks source link

Completed & Assigned Double Count in Analytics #29

Closed 0x4007 closed 4 months ago

0x4007 commented 4 months ago

According to the report, we have 173 tasks currently being worked on. I have a feeling its double counting the completed and assigned metrics. Another red flag is the dollar amount of projects being worked on right now ($25821)

Please verify that this is correct.

https://github.com/ubiquity/devpool-directory/blob/178460b549838e11e52c1d40763e656c5924a05b/total-rewards.json

{
  "rewards": {
    "notAssigned": 5724,
    "assigned": 25821,
    "completed": 52788,
    "total": 84333
  },
  "tasks": {
    "notAssigned": 24,
    "assigned": 173,
    "completed": 457,
    "total": 654
  }
}
0x4007 commented 4 months ago

@Keyrxng perhaps you can take a look. This came to mind because I want to display the analytics on ubq.fi for our marketing purposes, and as I started working on it I realized the numbers looked off.

Keyrxng commented 4 months ago

@0x4007 how should the opt.out be handled in in terms of stats, should they also be excluded?

This is how it looks with them excluded and removing an unnecessary call to labels.some()

rewards: { 
  notAssigned: 6299, 
  assigned: 4450, 
  completed: 34100, 
  total: 44849 
},
tasks: { 
  notAssigned: 23, 
  assigned: 18, 
  completed: 261, 
  total: 302 
}

Maybe exclude the open and assigned tasks from the counts if opt.out but keep in the completed figures I think this makes sense and looks good

rewards: {
  notAssigned: 6299,
  assigned: 4450,
  completed: 53238,
  total: 63987
},
tasks: {
  notAssigned: 23,
  assigned: 18,
  completed: 459,
  total: 500
}
Keyrxng commented 4 months ago

/start

ubiquibot[bot] commented 4 months ago

DeadlineTue, Jun 18, 7:45 PM UTC
Registered Wallet 0xAe5D1F192013db889b1e2115A370aB133f359765
Tips:
ubiquibot[bot] commented 4 months ago
+ Evaluating results. Please wait...
ubiquibot[bot] commented 4 months ago

[ 23.4 WXDAI ]

@0x4007
Contributions Overview
ViewContributionCountReward
IssueSpecification115.8
IssueComment17.6
Conversation Incentives
CommentFormattingRelevanceReward
According to the report, we have 173 tasks currently being worke...
15.8
code:
  count: 1
  score: "1"
  words: 0
115.8
@Keyrxng perhaps you can take a look. This came to mind because ...
7.60.777.6

[ 64.7 WXDAI ]

@Keyrxng
Contributions Overview
ViewContributionCountReward
IssueTask150
IssueComment10
IssueComment114.7
Conversation Incentives
CommentFormattingRelevanceReward
@0x4007 how should the `opt.out` be handled in in terms ...
-
code:
  count: 5
  score: "0"
  words: 6
0.79-
@0x4007 how should the `opt.out` be handled in in terms ...
14.7
code:
  count: 5
  score: "5"
  words: 6
0.7914.7
0x4007 commented 4 months ago
image

👍👍

Keyrxng commented 4 months ago

beautiful