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

Api v3 #1543

Merged
merged 116 commits into from
Dec 20, 2023
Merged

Api v3 #1543

merged 116 commits into from
Dec 20, 2023

Conversation

YishaiGlasner
Copy link
Contributor

new branch for only api

YishaiGlasner and others added 26 commits October 30, 2023 14:22
If `other` Ref is a whole book, and `self` begins anywhere after first segment, `contains` is trivially false and we can avoid expensive code.
fix: Performance improvement of Ref.contains
…r stripping notes and html), or wrap_all_entities (for adding html for ref links and topic links).
… in the api rather than actualLanguage which is just the language ISO code.
try:
self.oref = Ref.instantiate_ref_with_legacy_parse_fallback(kwargs['tref'])
except Exception as e:
return jsonResponse({'error': getattr(e, 'message', str(e))}, status=400)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a 404, no?

@edamboritz edamboritz marked this pull request as ready for review December 18, 2023 14:19
@nsantacruz nsantacruz merged commit 08a2e47 into master Dec 20, 2023
19 of 20 checks passed
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.

4 participants