This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Row( | |
mb_artist_credit_id=1000868, | |
mb_artist_credit_mbids=['b071f9fa-14b0-4217-8e97-eb41da73f598'], | |
mb_artist_credit_name='Rolling Stones', | |
mb_recording_mbid='af05ee7e-9931-40a0-a494-7e162bdf973e', | |
mb_recording_name='Beast of Burden', | |
mb_release_mbid='a9b2b066-b10d-4a92-ab5b-57f663408337', | |
mb_release_name='Latest Greatest', | |
msb_artist_credit_name_matchable='rollingstones', | |
msb_artist_msid='ce4d7966-bea7-47b9-848e-3481023b5d8f', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FAIL static/js/src/RecentListens.test.tsx (30.65s) | |
● handleClickNewerRecommendations › should not change offset value if offset = 0 | |
expect(received).toEqual(expected) // deep equality | |
- Expected - 50 | |
+ Received + 50 | |
@@ -1,23 +1,23 @@ | |
Array [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe("handleClickNewerRecommendations", () => { | |
it("should not change offset value if offset = 0", async () => { | |
const wrapper = shallow<RecentListens>(<RecentListens {...props} />); | |
const instance = wrapper.instance(); | |
wrapper.setState({ offset: 0, mode: "cf_recs", listens: recentListensProps.listens.slice(0, 25)}); | |
await instance.handleClickNewerRecommendations(); | |
expect(wrapper.state("loading")).toBeFalsy(); | |
expect(wrapper.state("offset")).toEqual(0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
handleClickOlderRecommendations = () => { | |
const { listens } = this.props; | |
const { offset, recommendationLength } = this.state; | |
if (offset & offset < (recommendationLength - this.expectedRecommendationsPerPage)) { | |
const newOffset = offset + this.expectedRecommendationsPerPage; | |
this.setState({ loading: true }); | |
this.setState( | |
{ | |
offset: newOffset, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.handleRecommendationChange() | |
handleRecommendationChange = () => { | |
const { offset, recommendationLength } = this.state; | |
return ( | |
<ul className="pager" style={{ display: "flex" }}> | |
<li | |
className={`previous ${ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Warning: Encountered two children with the same key, `0-While My Guitar Gently Weeps-undefined-undefined`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version. | |
in div (created by RecentListens) | |
in div (created by RecentListens) | |
in div (created by RecentListens) | |
in div (created by RecentListens) | |
in div (created by RecentListens) | |
in RecentListens |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{listen.playing_now ? ( | |
<span className="listen-time text-center text-muted"> | |
<FontAwesomeIcon icon={faMusic as IconProp} /> Playing now | |
</span> | |
) : mode === "cf_recs" ? ( | |
<span | |
className="score text-center text-muted" | |
title={listen.score ? listen.score.toString() : "Undefined"} | |
> | |
score: {listen.score ? listen.score.toString() : "Undefined"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sep 10 23:00:01 lemmy CRON[144]: (listenbrainz_stats_cron) CMD (/usr/local/bin/python /code/listenbrainz/docker/cf_recommendation.sh cf) | |
Sep 10 23:00:01 lemmy CRON[143]: (CRON) info (No MTA installed, discarding output) | |
Sep 10 23:17:01 lemmy CRON[147]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Test suite failed to run | |
static/js/src/listens/ListenCard.tsx:187:33 - error TS2339: Property 'score' does not exist on type 'Listen'. | |
187 title={listen.score} > | |
~~~~~ | |
static/js/src/listens/ListenCard.tsx:188:34 - error TS2339: Property 'score' does not exist on type 'Listen'. | |
188 score: {listen.score} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
listenbrainz/webserver/rate_limiter.py:138: in rate_limited | |
data = get_rate_limit_data(request) | |
listenbrainz/webserver/rate_limiter.py:130: in get_rate_limit_data | |
values = get_per_ip_limits() | |
listenbrainz/webserver/rate_limiter.py:95: in get_per_ip_limits | |
check_limit_freshness() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
def check_limit_freshness(): | |
limits_timeout = getattr(g, '_' + RATELIMIT_TIMEOUT, 0) |