-
Notifications
You must be signed in to change notification settings - Fork 40
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
Models and Schemas, Batch 1: Simple/One-Off Models #127
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Skipping defining the model/schemas this time, as nothing else uses them and it's irrelevant to just showing an additional endpoint router. I considered changing it to another more commonly used model/schema set, but decided it wasn't worth the hassle of figuring out.
Used for collapsed/folded code blocks as needed for doing multiple file includes via snippets.
This makes use of the `pymdownx.details` extension to allow for collapsed/folded code example blocks. (Other commits/PRs to come will also use this, but this is the first set.) I also replaced some uses of `MyModel` and `YourModel` (and associated schemas) with `Item` (and etc.) for simplicity, although there will also be some `MyModel` usage in the following commit.
bd2fa93
to
2c50438
Compare
igorbenav
approved these changes
Jul 17, 2024
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.
Really great work again, @slaarti, thank you so much!
3 tasks
slaarti
added a commit
to slaarti/fastcrud
that referenced
this pull request
Jul 22, 2024
These are some tweaks to spacing and naming that I apparently missed while doing igorbenav#127. Trying to combo-pack it with other changes I'm doing was proving confusing, so I'm making it its own thing.
slaarti
added a commit
to slaarti/fastcrud
that referenced
this pull request
Jul 23, 2024
These are some tweaks to spacing and naming that I apparently missed while doing igorbenav#127. Trying to combo-pack it with other changes I'm doing was proving confusing, so I'm making it its own thing.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This is the first batch of models and schemas for #72, covering the simpler, one-off models that don't have relationships. Further PRs will be batched out according to groups of related models.
Changes
Add simple example model for
Comment
.Correct schema names for
OtherModel
.Skipping defining the model/schemas this time, as nothing else uses them and it's irrelevant to just showing an additional endpoint router. I considered changing it to another more commonly used model/schema set, but decided it wasn't worth the hassle of figuring out.
Add
pymdownx.details
tomkdocs
config.Used for collapsed/folded code blocks as needed for doing multiple file includes via snippets.
Model, schemas, and doc fixes for
Item
.This makes use of the
pymdownx.details
extension to allow for collapsed/folded code example blocks. (Other commits/PRs to come will also use this, but this is the first set.) I also replaced some uses ofMyModel
andYourModel
(and associated schemas) withItem
(and etc.) for simplicity, although there will also be someMyModel
usage in the following commit.MyModel
model, schemas, docs/docstrings.Tests
No changes to tests; this is purely in documentation and examples.
Checklist