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

feat: basic filemanager query API #372

Merged
merged 14 commits into from
Jul 1, 2024
Merged

feat: basic filemanager query API #372

merged 14 commits into from
Jul 1, 2024

Conversation

mmalenic
Copy link
Member

@mmalenic mmalenic commented Jun 24, 2024

Closes #315
Related to #110
Depends on #357 (Merging into that branch for now so that viewing this PR is easier).

Changes

  • Rename object table to object_group to better represent it's purpose.
  • Add a basic API router with calls to list/count object/s3_object, and fetch an object/s3_object by id.
  • Uses the sea-orm query builder.
    • Note, currently this does not do any compile time checking. It's possible that the queries could be pre-compiled in filemanager-build, and then used by sqlx in filemanager to achieve compile time query checking, although I think this probably won't be worth the effort. The sea-orm library is much less likely to produce queries that are invalid, and any issues should be caught at test time anyway. However, I will look into this.

Todo (in a different PR)

  • Add OpenAPI docs and setup using CDK API Gateway infrastructure.

@mmalenic mmalenic self-assigned this Jun 24, 2024
@mmalenic mmalenic added filemanager an issue relating to the filemanager feature New feature labels Jun 24, 2024
@mmalenic mmalenic linked an issue Jun 24, 2024 that may be closed by this pull request
Base automatically changed from feat/filemanager to main June 26, 2024 07:10
mmalenic added 3 commits June 28, 2024 09:00
…-queries

# Conflicts:
#	lib/workload/stateless/stacks/filemanager/filemanager-build/src/gen_entities.rs
#	lib/workload/stateless/stacks/filemanager/filemanager-build/src/lib.rs
@mmalenic mmalenic marked this pull request as ready for review June 27, 2024 23:26
@mmalenic mmalenic requested review from brainstorm and victorskl June 27, 2024 23:26
@mmalenic mmalenic merged commit 321366a into main Jul 1, 2024
9 checks passed
@mmalenic mmalenic deleted the feat/filemanager-queries branch July 1, 2024 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature filemanager an issue relating to the filemanager
Projects
None yet
Development

Successfully merging this pull request may close these issues.

filemanager: experiment with sea-orm query builder filemanager: implement a querying Lambda function
3 participants