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

Display options upon importing duplicate recipe URL #3408

Closed

Conversation

lavanyamehn
Copy link
Contributor

The user can either continue to import a duplicate recipe or edit the existing recipe. This addresses issue #2857.

atomkarinca and others added 30 commits April 1, 2024 22:04
Currently translated at 5.9% (29 of 485 strings)

Translation: Tandoor/Recipes Backend
Translate-URL: http://translate.tandoor.dev/projects/tandoor/recipes-backend/tr/
update compose configuration for pgbackup to include .env file
Bumps [pillow](https://github.com/python-pillow/Pillow) from 10.2.0 to 10.3.0.
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst)
- [Commits](python-pillow/Pillow@10.2.0...10.3.0)

---
updated-dependencies:
- dependency-name: pillow
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
…/pip/pillow-10.3.0

Bump pillow from 10.2.0 to 10.3.0
…/pip/recipe-scrapers-14.55.0

Bump recipe-scrapers from 14.52.0 to 14.55.0
…/pip/django-crispy-forms-2.1

Bump django-crispy-forms from 2.0 to 2.1
…/pip/pytest-cov-5.0.0

Bump pytest-cov from 4.1.0 to 5.0.0
…/pip/django-debug-toolbar-4.3.0

Bump django-debug-toolbar from 4.2.0 to 4.3.0
…/pip/beautifulsoup4-4.12.3

Bump beautifulsoup4 from 4.12.2 to 4.12.3
…/github_actions/awalsh128/cache-apt-pkgs-action-1.4.2

Bump awalsh128/cache-apt-pkgs-action from 1.4.1 to 1.4.2
…velop"

This reverts commit d766927, reversing
changes made to 4293ec7.
project level formatting with prettier
project level formatting with yapf
scrape_me has been deprecated
remove reliance on custom text_scraper class
changed url on test case to generic wildmode vs specific site
Matjaž T and others added 16 commits November 16, 2024 14:09
Currently translated at 15.3% (75 of 488 strings)

Translation: Tandoor/Recipes Backend
Translate-URL: http://translate.tandoor.dev/projects/tandoor/recipes-backend/sl/
Currently translated at 71.7% (409 of 570 strings)

Translation: Tandoor/Recipes Frontend
Translate-URL: http://translate.tandoor.dev/projects/tandoor/recipes-frontend/sl/
Currently translated at 100.0% (570 of 570 strings)

Translation: Tandoor/Recipes Frontend
Translate-URL: http://translate.tandoor.dev/projects/tandoor/recipes-frontend/it/
Currently translated at 84.0% (410 of 488 strings)

Translation: Tandoor/Recipes Backend
Translate-URL: http://translate.tandoor.dev/projects/tandoor/recipes-backend/sl/
Currently translated at 71.7% (409 of 570 strings)

Translation: Tandoor/Recipes Frontend
Translate-URL: http://translate.tandoor.dev/projects/tandoor/recipes-frontend/sl/
---
updated-dependencies:
- dependency-name: aiohttp
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
…/pip/aiohttp-3.10.11

Bump aiohttp from 3.10.2 to 3.10.11
Currently translated at 100.0% (488 of 488 strings)

Translation: Tandoor/Recipes Backend
Translate-URL: http://translate.tandoor.dev/projects/tandoor/recipes-backend/sl/
Currently translated at 100.0% (570 of 570 strings)

Translation: Tandoor/Recipes Frontend
Translate-URL: http://translate.tandoor.dev/projects/tandoor/recipes-frontend/sl/
Currently translated at 100.0% (570 of 570 strings)

Translation: Tandoor/Recipes Frontend
Translate-URL: http://translate.tandoor.dev/projects/tandoor/recipes-frontend/sl/
Currently translated at 94.5% (539 of 570 strings)

Translation: Tandoor/Recipes Frontend
Translate-URL: http://translate.tandoor.dev/projects/tandoor/recipes-frontend/da/
Currently translated at 100.0% (570 of 570 strings)

Translation: Tandoor/Recipes Frontend
Translate-URL: http://translate.tandoor.dev/projects/tandoor/recipes-frontend/hr/
Currently translated at 30.9% (151 of 488 strings)

Translation: Tandoor/Recipes Backend
Translate-URL: http://translate.tandoor.dev/projects/tandoor/recipes-backend/hr/
The user can either continue to import a duplicate
recipe or edit the existing recipe. This addresses
issue TandoorRecipes#2857.
@CLAassistant
Copy link

CLAassistant commented Nov 23, 2024

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
2 out of 8 committers have signed the CLA.

✅ vabene1111
✅ lavanyamehn
❌ smart2128
❌ johnnyip
❌ aija
❌ snippsysnappsy
❌ StudioIT
❌ weblate
You have signed the CLA already but the status is still pending? Let us recheck it.

@lavanyamehn
Copy link
Contributor Author

I have already signed the CLA. Also, with respect to the "not to be a GitHub user" issue, is it because my email on my account is private?

@vabene1111
Copy link
Collaborator

Hi, thanks for your PR.

Since I am currently working on #2976 I am not entirely sure if I want to merge this into the existing branch.

Also I think I would prefer if the API endpoint returned a list of existing recipes with the same URL and the client just showed an warning (found existing recipes with the same URL). This would reduce complexity and solve the issue just as well. What do you think.

@vabene1111
Copy link
Collaborator

I have already signed the CLA. Also, with respect to the "not to be a GitHub user" issue, is it because my email on my account is private?

Honestly I am not sure, so far it has worked for everyone, if you did it its fine for me.

@lavanyamehn
Copy link
Contributor Author

Hi, thanks for your PR.

Since I am currently working on #2976 I am not entirely sure if I want to merge this into the existing branch.

Also I think I would prefer if the API endpoint returned a list of existing recipes with the same URL and the client just showed an warning (found existing recipes with the same URL). This would reduce complexity and solve the issue just as well. What do you think.

Sure, I can remove the options I added (edit existing recipe and continue to import) and only display a warning message so the user can continue to import like normal.

Regarding the status of this PR, if you don't think it will get merged in the near future I am wondering if there is any other good first issue I can work on to support #2976. Contributing to open-source projects and getting a PR merged in is part of one of my courses so it would be great if you could guide me on how best to approach this, thanks!

@lavanyamehn
Copy link
Contributor Author

I have already signed the CLA. Also, with respect to the "not to be a GitHub user" issue, is it because my email on my account is private?

Honestly I am not sure, so far it has worked for everyone, if you did it its fine for me.

Screenshot 2024-11-23 at 9 31 23 AM This is what I see when I open the link, so not sure about it.

@vabene1111
Copy link
Collaborator

thank you very much. Yes please make it so that the only change for now is just a "warning" message in the importer when it detects a duplicate (maybe by annotating a field to the response).

Regarding your other question: Sadly its currently pretty hard to contribute as some technical fundamentals need to be implemented first. What are the parts you would like to work on most, frontend or backend ?

@lavanyamehn
Copy link
Contributor Author

Updated this PR to only display a warning message.

If there is a small beginner friendly task on the backend, I could try to help.

@lavanyamehn lavanyamehn deleted the handle_duplicate_import_urls branch November 26, 2024 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.