Web: Advanced Payout --> Incorrect Stats / Gitcoin Bot Comments

Created on 30 Aug 2018  Â·  38Comments  Â·  Source: gitcoinco/web

Describe the bug
When using the Advanced Payout feature, Gitcoin Bot does not recognize that a % of the bounty was paid out, as opposed to the whole bounty.

To Reproduce
See here. I paid out 70% of the bounty, but Gitcoin Bot still shows as if I paid the whole thing. It also still shows 350 DAI as the 'Work Done' amount, though I paid out only 245 DAI.

screen shot 2018-08-29 at 7 10 52 pm

Expected behavior
Provide the actual amount paid out on a) Gitcoin, b) Gitcoin Bot's comment on Github, and c) anywhere else it is needed.

Most helpful comment

per gitcoin slack, @mbeacom put a fix for this into the latest gitcoinco/master !

All 38 comments

recomend pivoting the 'work done' comment from gitcoin bot based upon whether it was an advanced payout or not... and customizing the message if so.

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


__This issue now has a funding of 50.0 DAI (50.0 USD @ $1.0/DAI) attached to it.__

@usmanmuhd thanks for picking this up. Let us know if you have any Q's!

Sure @vs77bb .

@usmanmuhd Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

  • [x] warning (3 days)
  • [ ] escalation to mods (6 days)

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

Hey @vs77bb . I am not able to get the bot working in my local instance. It says to locate a .pem file and also id for the gitcoinbot app, both of which I am not able to locate. Could you please help me with this?

@usmanmuhd is this still an issue on your side?

If so -- @SaptakS @thelostone-mc @mbeacom , would you be able to help out @usmanmuhd here?

@vs77bb yes it is still an issue.

@usmanmuhd did you go through the integration guide for github? see https://docs.gitcoin.co/mk_third_party_integrations/

if so, and you're still having issues, can you open up a github issue for this bug report and please include the exception you're getting back? we'd be happy to help ?

From the bot details, I am not able to get the following details

GITCOINBOT_APP_ID=7735  # Gitcoin Bot App ID
GITCOIN_BOT_CERT_PATH=app/gitcoin_bot_secret.pem  # If pem file is located at web/app/app/gitcoin_bot_secret.pem
  1. What is the app id? (I have attached a screenshot of the page, it shows no id as such)
  2. Where is the gitcoin_bot_secret.pem file?
    screenshot from 2018-09-12 09-02-00

@usmanmuhd until that gets resolved -> you can still log the response of the bot at notifications.py on the terminal when you recreate the scenario.
This is so that you aren't blocked by this issue

@thelostone-mc get-notifications.py seems to throw errors because the django.conf.settings is not getting set when I directly run the file. Changing it in one place does not seem to fix it. There are many other files that need a change. I think it's better for me to wait for this to resolve. @vs77bb @owocki @SaptakS Is there any way to directly just see the gitcoin bot notifications than this one?

@usmanmuhd you need to create your own github app for testing purposes.. we aren't going to give you access to the production gitcoinbot app.

i dont think you'll need to set GITCOIN_BOT_CERT_PATH for testing the gitcoinbot comments in this use case.. just set it to Falsy for now

@mbeacom maybe its worth updating the documentation to point users to to where they can get the bot id or app id?

@usmanmuhd on the off chance you decide to give it a shot! you'd have to move build_github_notification to L532 to ensure the message build up happens first.

That's kinda what I did here

Thanks @thelostone-mc ! It works!

How do we know in the notifications.py while triggering the bot that we have checked out using advanced payout option?

How do we know in the notifications.py while triggering the bot that we have checked out using advanced payout option?

i'm not sure i understand the question.

I mean when the bot is triggered when the payment is made. How does it know if we have checked out using the basic payout option or the advanced payout option?

the frontend tells th backend it has been paid via the /sync/web3 url route

there are also management commands that will check for changes to the smart contracts:

  • sync_web3
  • sync_listener

@usmanmuhd Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

  • [x] warning (3 days)
  • [ ] escalation to mods (6 days)

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


@usmanmuhd due to inactivity, we have escalated this issue to Gitcoin's moderation team. Let us know if you believe this has been done in error!

  • [x] warning (3 days)
  • [x] escalation to mods (6 days)

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

I am not able to get the docker to work. When I run docker-compose up --build I get the error https://pastebin.com/pSMc7sJz

per gitcoin slack, @mbeacom put a fix for this into the latest gitcoinco/master !

@usmanmuhd Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

  • [x] warning (3 days)
  • [ ] escalation to mods (6 days)

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

@usmanmuhd still having trouble with docker?

@thelostone-mc It is resolved. I am figuring out ways to know in the back end, the ways to differentiate between a basic payout and advanced payout.

@usmanmuhd Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

  • [x] warning (3 days)
  • [ ] escalation to mods (6 days)

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


@usmanmuhd due to inactivity, we have escalated this issue to Gitcoin's moderation team. Let us know if you believe this has been done in error!

  • [x] warning (3 days)
  • [x] escalation to mods (6 days)

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


__Work has been started__.

These users each claimed they can complete the work by 10 months, 1 week from now.
Please review their action plans below:

1) pinkiebell has started work.

I'm picking this up. Should be ready later today

Learn more on the Gitcoin Issue Details page.

@vs77bb
As the bounty actually got killed and you instead sent a tip (That's how it works),
we need another copy for a 'Bounty is Done but we have no fulfillments'.
😅 Ideas?

cc @PixelantDesign

@vs77bb
Thoughts?

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


__This Bounty has been completed.__

Additional Tips for this Bounty:

  • pinkiebell tipped 0.0100 ETH worth 2.29 USD to pinkiebell.
  • pinkiebell tipped 0.0100 ETH worth 2.29 USD to pinkiebell.
  • pinkiebell tipped 0.0100 ETH worth 2.29 USD to pinkiebell.
  • pinkiebell tipped 0.7000 ETH worth 160.62 USD to pinkiebell.

Hey @pinkiebell, Ryan from Gitcoin. Want to let you know that @vs77bb and the rest of the Gitcoin team have been busy with travel, and will get to look at this soon 😄 If you have any questions, feel free to ping me in Slack! I'm rshea. 🔨

@pinkiebell

Bounty is Done but we have no fulfillments

I'm not sure I understand when this can happen 🤔

@vs77bb

Well, the advanced payout feature does kill the bounty and will use the tip system to disburse payments.

We just save it as Work Done not Killed.
That means a bounty can be successfully marked as Done without even someone submitted work.

Snippet from Gitcoin.cli (Dead = Killed)

bounty 741
Project Type: traditional
Permission Type: permissionless
Status: Dead
Platform: gitcoin
Title: Add option to include transaction receipts in eth_getBlockByHash
Funder: vs77bb/0x60206c1F2B51Ac470cB0f71323474f7f9e4772e1
Token: 350 DAI
Available Balance: 0 DAI
Fulfillments: 0

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


__Work for 50.0 DAI (50.0 USD @ $1.0/DAI) has been submitted by__:

  1. @pinkiebell

@owocki please take a look at the submitted work:

  • PR by @pinkiebell

@vs77bb @owocki not sure what the status is on this one !

@ryan-shea @kuhnchris

I got an email that the issue is expiring, care to close this thing on gitcoin? :)
PR:https://github.com/gitcoinco/web/pull/2507
Gitcoin: https://gitcoin.co/issue/gitcoinco/web/2125/1095

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


__The funding of 50.0 DAI (50.0 USD @ $1.0/DAI) attached to this issue has been approved & issued to @pinkiebell.__

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  Â·  3Comments

pelsasser picture pelsasser  Â·  4Comments

NukeManDan picture NukeManDan  Â·  3Comments

mbeacom picture mbeacom  Â·  4Comments

owocki picture owocki  Â·  4Comments