Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unavailable LoremPixel generator #2505

Closed
2 of 3 tasks
saiqulhaq opened this issue Jul 3, 2022 · 25 comments · Fixed by #2590 or #2664
Closed
2 of 3 tasks

Remove unavailable LoremPixel generator #2505

saiqulhaq opened this issue Jul 3, 2022 · 25 comments · Fixed by #2590 or #2664

Comments

@saiqulhaq
Copy link

saiqulhaq commented Jul 3, 2022

LoremPixel is no longer an available service. An option is to use LoremFlickr whenever LoremPixel is referenced in the codebase.

Before we remove it, we need to add a deprecation for users.

Steps

@stefannibrasil
Copy link
Contributor

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!

@saiqulhaq
Copy link
Author

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

@stefannibrasil
Copy link
Contributor

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

@saiqulhaq saiqulhaq changed the title LoremFlickr is no longer available LoremPixel is no longer available Aug 8, 2022
@saiqulhaq
Copy link
Author

sorry I meant lorem pixel

@psibi
Copy link
Member

psibi commented Aug 9, 2022

Yeah, makes sense to delete it since it's not up anymore:

url_parts << ['lorempixel.com']

@stefannibrasil
Copy link
Contributor

stefannibrasil commented Aug 9, 2022

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)?

@yagosansz
Copy link

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

@thdaraujo
Copy link
Contributor

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

yes, thank you! 👏

@stefannibrasil
Copy link
Contributor

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.

@uzorjchibuzor
Copy link
Contributor

I'll pick this up.

@stefannibrasil
Copy link
Contributor

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

@uzorjchibuzor
Copy link
Contributor

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

@uzorjchibuzor
Copy link
Contributor

uzorjchibuzor commented Oct 13, 2022

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?

@stefannibrasil stefannibrasil changed the title LoremPixel is no longer available Remove unavaivable LoremPixel generator Oct 15, 2022
@stefannibrasil stefannibrasil linked a pull request Oct 15, 2022 that will close this issue
2 tasks
@stefannibrasil
Copy link
Contributor

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.

@vbrazo vbrazo changed the title Remove unavaivable LoremPixel generator Remove unavailable LoremPixel generator Oct 20, 2022
@stefannibrasil
Copy link
Contributor

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

@stefannibrasil stefannibrasil reopened this Nov 1, 2022
@uzorjchibuzor
Copy link
Contributor

Thank you.

@stefannibrasil
Copy link
Contributor

@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!

@uzorjchibuzor
Copy link
Contributor

@stefannibrasil No questions.

@italopires
Copy link
Contributor

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.

@stefannibrasil
Copy link
Contributor

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!

@italopires
Copy link
Contributor

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!!

@stefannibrasil
Copy link
Contributor

@uzorjchibuzor are you still interested in finishing the issue?

@uzorjchibuzor
Copy link
Contributor

uzorjchibuzor commented Dec 20, 2022 via email

@stefannibrasil
Copy link
Contributor

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

@vbrazo
Copy link
Member

vbrazo commented Dec 22, 2022

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment