-
-
Notifications
You must be signed in to change notification settings - Fork 892
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
Pictrs delete token #5317
Merged
Merged
Pictrs delete token #5317
Changes from 56 commits
Commits
Show all changes
59 commits
Select commit
Hold shift + click to select a range
56ab67f
Split image endpoints into API v3 and v4
Nutomic 05843fb
Move into subfolders
Nutomic cfa866a
Upload avatar endpoint and other changes
Nutomic d252be2
Various other changes
Nutomic e815778
clippy
Nutomic 60ba7af
config options
Nutomic 7c771d2
fix ts bindings
Nutomic 8ae4b40
fix api tests
Nutomic b0d4bdb
Add option to disable image upload (fixes #1118)
Nutomic 55b8ace
split files into upload, download
Nutomic 460ccc8
move sitemap to top level, not in api
Nutomic 5f06195
simplify code
Nutomic 5f49b2a
add upload user banner
Nutomic a6f7e76
community icon/banner
Nutomic ada8f1b
site icon/banner
Nutomic 4951aa0
update js client
Nutomic 2ec8cd3
Merge branch 'main' into image-api-rework
Nutomic 961c7f1
wip
Nutomic 705703f
add delete endpoints
Nutomic 216fca2
change comment
Nutomic 6f91754
Merge branch 'main' into image-api-rework
Nutomic 4d51f53
optimization
Nutomic 96cf017
move fn
Nutomic f04da5e
1024px banner
Nutomic 7cbbb9a
dont use static client
Nutomic 83c3304
fix api tests
Nutomic f040f91
shear
Nutomic 6123659
proxy pictrs in request.rs (fixes #5270)
Nutomic ec74669
clippy
Nutomic f10d0f1
Get rid of pictrs delete token
Nutomic b36c16a
remove delete token params
Nutomic ee091c7
try to fix api tests
Nutomic 44c83e8
fmt
Nutomic 76f4508
skip api tests
Nutomic fa8aaba
clippy
Nutomic c9dfbfe
create user
Nutomic 7f78275
debug
Nutomic 2e7a961
dbg
Nutomic a1e7c1c
ignore test
Nutomic 1c12993
test
Nutomic e484489
image
Nutomic a45fcc5
run another
Nutomic 4b3f2f5
fixed?
Nutomic 4b94043
Merge branch 'main' into image-api-rework
Nutomic 91a67cc
Merge branch 'image-api-rework' into pictrs-delete-token
Nutomic 79cdb83
clippy
Nutomic 2be56b7
fix
Nutomic a665515
Merge branch 'image-api-rework' into pictrs-delete-token
Nutomic 0692900
migration with column order
Nutomic 95bd69b
drop default
Nutomic 47638cc
fix health check
Nutomic 01730ef
Merge branch 'image-api-rework' into pictrs-delete-token
Nutomic 7aff084
Merge branch 'main' into pictrs-delete-token
Nutomic 98a09c5
update client
Nutomic 0e11b8c
remove unused
Nutomic 1e9a5b7
fix
Nutomic 6cfd825
reuse delete_image_from_pictrs
Nutomic 61bf184
Merge branch 'main' into pictrs-delete-token
Nutomic 9d592d6
update lib
Nutomic File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
ALTER TABLE local_image | ||
ADD COLUMN pictrs_delete_token text NOT NULL DEFAULT ''; | ||
|
||
ALTER TABLE local_image | ||
ALTER COLUMN pictrs_delete_token DROP DEFAULT; | ||
|
||
ALTER TABLE local_image | ||
ADD COLUMN published_new timestamp with time zone DEFAULT now() NOT NULL; | ||
|
||
UPDATE | ||
local_image | ||
SET | ||
published_new = published; | ||
|
||
ALTER TABLE local_image | ||
DROP COLUMN published; | ||
|
||
ALTER TABLE local_image RENAME published_new TO published; | ||
dessalines marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ALTER TABLE local_image | ||
DROP COLUMN pictrs_delete_token; | ||
|
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.
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.
No need to build this again, you could just the
delete_image_from_pictrs
function you made above.