-
-
Notifications
You must be signed in to change notification settings - Fork 764
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
feat: Create Recipe From HTML or JSON #4274
feat: Create Recipe From HTML or JSON #4274
Conversation
c55654f
to
53bf00d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was way more straigt-foreward than expected 😊
All good on this one 🚀
@@ -52,6 +52,11 @@ export default defineComponent({ | |||
text: i18n.tc("recipe.bulk-url-import"), | |||
value: "bulk", | |||
}, | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
at some point we should try to simplify that list somehow. It kepps getting longer and longer...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I agree, we're gonna have to do something about it soon
What type of PR is this?
(REQUIRED)
What this PR does / why we need it:
(REQUIRED)
This PR adds the ability to create a recipe from raw HTML or JSON. We leverage the existing URL scrapers as-is, but bypass calling the target URL and instead provide the HTML/JSON directly (JSON must be in schema.org format, although if OpenAI is enabled it might figure it out regardless).
This is suggested on the create by URL page:
Which brings you here:
You can put HTML or JSON into that text field, however you may optionally use the JSON editor mode for JSON:
The main advantages of this are:
Which issue(s) this PR fixes:
(REQUIRED)
Closes #3224
Closes #2391
Special notes for your reviewer:
I changed some of the "create" route names because they're getting a bit unorganized. All recipe create routes are now under
/recipe/create/...
. This is a breaking change, so I added it to the migration docs.Testing
(fill-in or delete this section)
Pytest