ruaok: i think its ready to be deployed. alastairp: sanity check please
atj
My suggestion would be that you have a simple boolean field to flag an image as potentially offensive. Then you can have an profile option to enable/disable display of such images, with the default to not display for anonymous users.
alastairp
looks good to me ruaok _lucifer
do we know what version of flask was used previously?
if it was on 0.9mumble then there _may_ be some incompatible upgrades, but I don't know the app enough to know if this was the case
ruaok
not that old. I recently upgraded pacakges.
alastairp
yeah, I see that the BU dependency is recent
ZaphodBeeblebrox really goes now
mmm
yeah, looks like flask didn't change since v0.15, so looks good to me 👍
alastairp: https://ci.metabrainz.org/job/listenbrainz-inte... the test to call our production labs api endpoint for recording lookup times out during testing. I personally think we should not be doing that in running integration tests. we should have a test for fetching the metadata with mocks and all that, but we should disable the metadata fetching during testing since it adds nothing to the tests and hitting a
production API for testing is questionable in the first place. Thoughts? How would you disable this?
in this case I'm adding a flag to get_paylist with fetch_metadata, which allows the tests to pass a False flag in order to skip this issue for the one test we have failing now.
iliekcomputers
ruaok: did you get a chance to look at stripe.com/climate ? I'd love to get your opinion on us participating.
ruaok
oh, I wanted to figure out what that number was for 2020, but then got angry at QuickBooks for never allowing the sorts of simple queries I want. let me see if I can do that after I submit this fix.
iliekcomputers
yeah, I think we could even mention that x% of donations via stripe go to carbon capture. wonder if that'd increase donations :)
$20,859 in stripe transactions last year. 1% of that would be $208.
iliekcomputers
+++
nice.
_lucifer
ruaok: alastairp: i think that listenbrainz_spark is using flask (and BU) only for logging and loading config values. but the sentry_sdk comes with a PysparkIntegration so its easy to use it directly instead. that way we can remove the BU dependency from spark. do you think its worthwhile to make the shift?
Mr_Monkey: alastairp ^^ see what you think, but I hope that should improve testing and fix the failing test.
alastairp
ruaok: and even the floating point data in AB isn't a single user-provided input
atj
that's a fun bug
ruaok
woo. all tests for 1288 pass. thoughts on the fix, alastairp ?
bitmap has quit
bitmap_ joined the channel
bitmap_ is now known as bitmap
Mr_Monkey
If we test the metadata fetching in another way, as you suggest, then this does look good. Thanks for looking at it, I was scratching my brain at those test failures yesterday.
ruaok
well, the previous method didn't test the metadata fetching either. :)
let me merge that branch into yours and then add a test for the metadata fetch.
gah. not sure I care to write this test. this test will soon be thrown away when we add the more nuanced service layer that is missing. we're not losing a test, so I'm all for merging and moving on.
Mr_Monkey: there are open conversations on PR 1276. have a look, please?
Mr_Monkey
OK
All converstions closed, pushed a small docstrings change.
ruaok
it would be nice to add another couple of tests...
wait, I take that back. what I was thinking would already be covered by other tests.