metacpan-web
metacpan-web copied to clipboard
unable to add to favorites
I pressed ++
(add to favorites) on https://metacpan.org/release/Plack.
It incremented the number and now it shows me on https://metacpan.org/release/Plack/plussers
But I don't see Plack
on https://metacpan.org/account/favorite/list
And when I reload https://metacpan.org/release/Plack the number is decreased but it still shows me on https://metacpan.org/release/Plack/plussers
Is it still this way? The last time I hit ++ on a package, it took a day or two to register.
Same for https://metacpan.org/release/Moose
Same problem here.
Same for me. Sometimes it is added, sometimes it's not. Also, favourites list seems to have some caching issues, as I get different results if I refresh it.
@ikorchynskyi are you seeing the numbers fluctuate or just change once on the refresh?
Hi @oalders,
Sorry for the delay in getting back to you. Seems there was a some change, that prevents me to have more than one identity at https://metacpan.org/account/identities (e.g. so I must select either github or google profile but not both). And it seems that favorites are separated per identity, so now I am able to add a repo to favorites under my github account.
But still, there is some weird behavior for favorites page, for example, on github identity:
- Start with empty faves:
$ curl https://metacpan.org/account/login_status
{"faves":[],"logged_in":true}
- Add Ref-Util repo to favs:
$ curl https://metacpan.org/account/favorite/add --data-raw "remove=0&release=Ref-Util-0.204&author=ARC&distribution=Ref-Util"
{"success":true}
- Check favorites
$ curl https://metacpan.org/account/login_status
{"logged_in":true,"faves":[{"author":"ARC","date":"2021-05-07T12:51:23","distribution":"Ref-Util"}]}
- Add MCE repo to favs:
$ curl https://metacpan.org/account/favorite/add --data-raw "remove=0&release=MCE-1.874&author=MARIOROY&distribution=MCE"
{"success":true}
- Check favorites again (no MCE here, and also no "blue ++" on distro page after refresh)
$ curl https://metacpan.org/account/login_status
{"logged_in":true,"faves":[{"distribution":"Ref-Util","author":"ARC","date":"2021-05-07T12:51:23"}]}
- Now, remove Ref-Util from favs and check fav list
$ curl https://metacpan.org/account/favorite/add --data-raw "remove=1&release=Ref-Util-0.204&author=ARC&distribution=Ref-Util"
{"success":true}
$ curl https://metacpan.org/account/login_status
{"logged_in":true,"faves":[{"author":"MARIOROY","distribution":"MCE","date":"2021-05-07T12:52:59"}]}
Thanks @ikorchynskyi. That's helpful. I think we may need to check whether our Elasticsearch replication is keeping all of the back ends in sync.