faker icon indicating copy to clipboard operation
faker copied to clipboard

LoremPixel is no longer available

Open saiqulhaq opened this issue 3 years ago • 8 comments
trafficstars

https://github.com/faker-ruby/faker/blob/master/lib/faker/default/lorem_pixel.rb

just FYI

saiqulhaq avatar Jul 03 '22 11:07 saiqulhaq

HI @saiqulhaq could you please provide more information about this issue? I am not sure I understand what is the problem and what is your proposal. Thanks!

stefannibrasil avatar Aug 05 '22 19:08 stefannibrasil

we need to delete the class because loremflickr.com is down

saiqulhaq avatar Aug 07 '22 11:08 saiqulhaq

I can access LoremFlickr normally. Could you try again on your side? What exactly is the error you're getting when running Faker? Thanks!

stefannibrasil avatar Aug 08 '22 18:08 stefannibrasil

sorry I meant lorem pixel

saiqulhaq avatar Aug 08 '22 23:08 saiqulhaq

Yeah, makes sense to delete it since it's not up anymore: https://github.com/faker-ruby/faker/blob/15a8bc35f489b2d5e06439c664363c779b125d6c/lib/faker/default/lorem_pixel.rb#L61

psibi avatar Aug 09 '22 08:08 psibi

oh, okay, it makes more sense now. It looks like Lorem Pixel is now Lorem Ipsum.

At first glance, LoremPixel seems to be used only here. Could we use LoremFlickr instead to get rid of LoremPixel (and subsequent TODOs in that file)?

stefannibrasil avatar Aug 09 '22 21:08 stefannibrasil

Hey folks, would it be okay if I started working on this one?

yagosansz avatar Aug 25 '22 22:08 yagosansz

Hey folks, would it be okay if I started working on this one?

yes, thank you! 👏

thdaraujo avatar Aug 25 '22 23:08 thdaraujo

I believe we need to add a deprecation warning before following along with this removal. I am going to update the issue with the steps needed for this.

stefannibrasil avatar Oct 12 '22 14:10 stefannibrasil

I'll pick this up.

uzorjchibuzor avatar Oct 12 '22 15:10 uzorjchibuzor

thank you @uzorjchibuzor the first two tasks could be done in two initial PRs.

stefannibrasil avatar Oct 12 '22 15:10 stefannibrasil

@stefannibrasil I'll make sure to mention you in the PRs. So this issue can remain open until all the tasks are done.

uzorjchibuzor avatar Oct 12 '22 20:10 uzorjchibuzor

Add Tests for LoremFlickr on test_lorem_flickr.rb

@stefannibrasil I am not sure I understand this part, shouldn't this say that I should add a test on lorem_pixel instead that when is it called to refer to the lorem_flickr?

Also, all of the previous assertions on test_lorem_flickr are not relevant anymore as calls to that class are forwarded to LoremFlickr. What I am asking is that, after I test for the referral, is there anything more to add?

uzorjchibuzor avatar Oct 13 '22 11:10 uzorjchibuzor

Hi @uzorjchibuzor I left a code review on your PR, thank you! About the tests, you're right. LoremFlickr already has tests. I removed this step from the issue.

stefannibrasil avatar Oct 15 '22 23:10 stefannibrasil

The merged PR fixes the first step of this issue. Reopening to complete the remaining steps.

stefannibrasil avatar Nov 01 '22 16:11 stefannibrasil

Thank you.

uzorjchibuzor avatar Nov 01 '22 16:11 uzorjchibuzor

@uzorjchibuzor I updated the issue to reflect the next steps. The next one, to replace LoremPixel with LoremFlickr on faker, can be started anytime. Let me know if you have any questions. Thank you!

stefannibrasil avatar Nov 02 '22 14:11 stefannibrasil

@stefannibrasil No questions.

uzorjchibuzor avatar Nov 02 '22 14:11 uzorjchibuzor

Hi there!

I saw the last free step, I just opened a PR to try complete this issue. Please fill free to review the last one.

italopires avatar Dec 04 '22 16:12 italopires

hi @italopires thank you for your interest in contributing to Faker! This issue is already assigned to @uzorjchibuzor. We were just waiting on the deprecation message date to arrive to complete the work.

@uzorjchibuzor We can move on with this issue because December is here 🎄 Do you want to open a PR or contribute with @italopires ? I just want to make sure we are collaborating. Thank you, both!

stefannibrasil avatar Dec 04 '22 22:12 stefannibrasil

Hi @stefannibrasil and @uzorjchibuzor, my apologies. It was my first attempt to contribute open source. I will close the PR and try another issue, in case you need it, I can reopen. Thank you very much!!

italopires avatar Dec 04 '22 23:12 italopires

@uzorjchibuzor are you still interested in finishing the issue?

stefannibrasil avatar Dec 20 '22 04:12 stefannibrasil

I will take care of this today. Sorry for the delay. I had to clear some backlog.

On Tue, 20 Dec 2022 at 5:26 AM, Stefanni Brasil @.***> wrote:

@uzorjchibuzor https://github.com/uzorjchibuzor are you still interested in finishing the issue?

— Reply to this email directly, view it on GitHub https://github.com/faker-ruby/faker/issues/2505#issuecomment-1358824890, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHZNEUXLT3WRBCOFSXJW523WOEYNZANCNFSM52QR5BLA . You are receiving this because you were mentioned.Message ID: @.***>

uzorjchibuzor avatar Dec 20 '22 04:12 uzorjchibuzor

@uzorjchibuzor no worries! I didn't mean to rush you, I just wanted to know if you still had the bandwidth. Thank you!

stefannibrasil avatar Dec 20 '22 04:12 stefannibrasil

I've just googled LoremPixel and it has indeed disappeared from the web. That was a good catch!

I tried to access the LoremFlickr website but my Avast is complaining..

Screenshot 2022-12-21 at 11 23 09 PM

Another alternative to LoremFlickr and LoremPixel would be Picsum:

  • https://picsum.photos/
  • https://picsum.photos/200/200

vbrazo avatar Dec 22 '22 07:12 vbrazo