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.
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
refactor(organization): switch to one-bucket-per-org policy #336
refactor(organization): switch to one-bucket-per-org policy #336
Changes from all commits
d2eb60e
d69085c
f4ec529
0f4026e
ceb525e
b698b2c
a4caaaa
79a9867
40e6889
1495e21
87d3ef9
ecf5ad2
0e647d8
65dec07
ea9089f
76d46b7
926b0c3
147804f
185b2de
1877874
4dda307
12e4258
10f9f7e
0f15ca2
6c6fd43
ecdf13c
52b6abb
522fc2b
77473ec
357ae53
9cb48cc
d1f3ac1
fef57e0
cd2d224
16cde9c
f0caa1f
67944fd
e82a80a
cd43ed7
9137247
57e6aca
58d922f
22b83a6
34df116
a8859b0
bc5abfc
3eb3e85
a7bf55e
f6d6a41
09bd16a
47dc24b
d0ca4b3
09a66ef
10f4feb
cf6c234
f53ab50
1c5d9cf
ccbcc15
ef99973
5e7b366
77dda00
b971477
8b5a382
6c641b2
be6574e
4fc04d4
2613e1a
02c884b
2d3cde3
c2f7b91
5da3d23
4acd511
348c603
72d7a43
c2a95ca
aea99d2
dc4a6f0
565b48b
37cbddb
50dbed5
09568e0
e36535e
6adbd6a
4cc6e51
fedb8bf
d15191c
76ea0c3
bd709cc
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 82 in src/app/api/api_v1/endpoints/detections.py
src/app/api/api_v1/endpoints/detections.py#L82
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.
Shouldn't we also delete the bucket when the org is deleted? it was the core motivation I think
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.
btw are we sure we want that ? maybe we will need the images for the ML part @MateoLostanlen
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.
Mmmh I was about to suggest we do this after making sure the S3 ops haven't failed, but we need the org ID for the bucket 🤔
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.
I can raise an Error if create_bucket send false ?
Check warning on line 33 in src/app/api/api_v1/endpoints/organizations.py
src/app/api/api_v1/endpoints/organizations.py#L32-L33
Check warning on line 37 in src/app/api/api_v1/endpoints/organizations.py
src/app/api/api_v1/endpoints/organizations.py#L35-L37
Check warning on line 74 in src/app/api/api_v1/endpoints/organizations.py
src/app/api/api_v1/endpoints/organizations.py#L74
Check warning on line 51 in src/app/db.py
src/app/db.py#L51