Web: [Profile / Dashboard / Feedback] Multiple broken feedback items

Created on 2 Jun 2019  路  23Comments  路  Source: gitcoinco/web

Describe the bug
Evaluated/rated my bounty interactions, got the same bounty 4 times, can only interact with the first

To Reproduce
unknown

Expected behavior
Correct amount of bounties to rate

Screenshots
grafik

Bountied bug

All 23 comments

Thanks for the report!

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


__This issue now has a funding of 0.2 ETH (53.76 USD @ $268.82/ETH) attached to it.__

Just a quick heads up: may this be connected to the Rinkeby issue? (just a heads up @uivlis, so we are not doing double work)

https://github.com/gitcoinco/web/pull/4344

If a bounty was first posted on Rinkeby and then moved to Mainnet, shouldn't it appear only twice, or, at most, a few times? I have hundreds of duplicates on my profile, I can't see how this bug would be connected with that issue, but am investigating.

Hello,

well, if they use the same ID, or IDs only valid on rinkeby, it may cause issues like that, but please, do investigate, it was only a lead, just to make sure you're not double-investigating. ;-)

how was a bounty moved from rinkeby to mainnet?

Not sure, I just assumed he meant that if the ids from rinkeby bounty match (some other) mainnet bounty...

No, yeah, well I thought... anyway, nevermind.
I barely managed to build the docker image and play with the admin dashboard. I'm not sure where lays the bug (yet), however, I can't reproduce the issue locally (yet).

Right, I've been able to reproduce the issue locally. Does that rule out the possibility of mismatching mainnet and rinkeby ID's, since there are no mainnet bounties locally?

Apparently, I was wrong. The duplicates I saw were not so duplicates (they were in the 'Funded' section, just multiple fulfillments). I cannot, however, reproduce anything in the 'Contributed' pan.

I allocated a bit too much time on this bounty, so if I cannot move forward in the following days, I will have to backtrack, unfortunately.

@kuhnchris I've tried to reproduce this bug in local but without any success. For each bounties completed I did only have one unrated bounty card.

image

I think the problem lies in the data, cause in production we have the same kind of problem in the All activity tab.

image

Here is the piece of code in app/dashboard/views.py, that retrieves the unrated bounties:

    context['unrated_funded_bounties'] = Bounty.objects.current().prefetch_related('fulfillments', 'interested', 'interested__profile', 'feedbacks') \
        .filter(
            bounty_owner_github_username__iexact=profile.handle,
            network=network,
        ).exclude(
            feedbacks__feedbackType='approver',
            feedbacks__sender_profile=profile,
        )

context['unrated_contributed_bounties'] = Bounty.objects.current().prefetch_related('feedbacks').filter(interested__profile=profile, network=network,) \
            .filter(interested__status='okay') \
            .filter(interested__pending=False).filter(idx_status='done') \
            .exclude(
                feedbacks__feedbackType='worker',
                feedbacks__sender_profile=profile
            )

I don't really know how I could fix this problem since I don't have access to the production database but I hope it can help the team figure out where the problem is coming from. :)

Thanks for trying @PierrickGT - guess we will have to try to find some irregularities in the database then.

i think this should do it https://github.com/gitcoinco/web/pull/4842

i think this should do it #4842

Nice! I should have been more persistent to complete this bounty haha.

Well, we will see if this "fixes" it. If those entries exist with multiple PKs then Kevin's fix will be moot. but I vote for attempting to try it and see if it fixes it. :-)

its not that the entries exist with multiple PKs, its that the JOIN creates multiple rows for the same PK

then we can try it

@kuhnchris @owocki since I've helped debug this issue, do I qualify for the bounty reward?

we typically give out rewards to those who have completed the bounty.. but i'd be happy to leave a tip for you here.

we typically give out rewards to those who have completed the bounty.. but i'd be happy to leave a tip for you here.

Thank you @owocki!

Issue Status: 1. Open 2. Cancelled


__The funding of 0.2 ETH (44.63 USD @ $223.14/ETH) attached to this issue has been cancelled by the bounty submitter__

Hi @owocki,
Are you still planning on tipping me for this issue?
I would understand if you don鈥檛, for the reason you鈥檝e mentioned, just want to know where you stand. 馃檪

鈿★笍 A tip worth 0.10000 ETH (21.38 USD @ $213.83/ETH) has been granted to @pierrickgt for this issue from @owocki. 鈿★笍

Nice work @pierrickgt! Your tip has automatically been deposited in the ETH address we have on file.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Skyge picture Skyge  路  3Comments

sethmcleod picture sethmcleod  路  4Comments

kziemianek picture kziemianek  路  3Comments

jasonrhaas picture jasonrhaas  路  4Comments

kziemianek picture kziemianek  路  3Comments