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

replace attr with dataclass + fastapi.Query() for GET models #714

Merged
merged 4 commits into from
Jul 2, 2024

Conversation

vincentsarago
Copy link
Member

@vincentsarago vincentsarago commented Jun 24, 2024

closes #713
closes #638

@vincentsarago vincentsarago changed the title demonstrate issue 713 Refactor: replace attr with dataclass + fastapi.Query() for GET models Jun 24, 2024
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'STAC FastAPI Benchmarks'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.30.

Benchmark suite Current: a6d149b Previous: 8f400e1 Ratio
Items With Model validation (1000) 8.55517630649065 iter/sec (stddev: 0.025009408890116516) 11.339615164306212 iter/sec (stddev: 0.01866654147017851) 1.33

This comment was automatically generated by workflow using github-action-benchmark.

@vincentsarago vincentsarago changed the title Refactor: replace attr with dataclass + fastapi.Query() for GET models DO NOT MERGE: replace attr with dataclass + fastapi.Query() for GET models Jun 24, 2024
@vincentsarago vincentsarago changed the title DO NOT MERGE: replace attr with dataclass + fastapi.Query() for GET models replace attr with dataclass + fastapi.Query() for GET models Jun 26, 2024
@jonhealy1
Copy link
Collaborator

This is still a wip?

@vincentsarago
Copy link
Member Author

@jonhealy1 no, this is ready for review. but I'll merge the other PR first

Copy link
Collaborator

@jonhealy1 jonhealy1 left a comment

Choose a reason for hiding this comment

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

Changelog :) Looks good otherwise

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.

FilterExtensionGetRequest invalid fields Aliases in FilterExtensionGetRequest model are not working
2 participants