Skip to content

refactor: deprecate /server-info and replace with /server-info/storage - #9645

Merged
zackpollard merged 1 commit into
mainfrom
refactor/server-info-storage-info
May 22, 2024
Merged

zackpollard merged 1 commit into
mainfrom
refactor/server-info-storage-info

Conversation

@zackpollard

Copy link
Copy Markdown
Member

/server-info root endpoint was used for storage info only, moving this to a more sensible place

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented May 21, 2024 •

Copy link
Copy Markdown

Deploying immich with  Cloudflare Pages  Cloudflare Pages

Latest commit: 14849a9
Status: ✅  Deploy successful!
Preview URL: https://7a7544c4.immich.pages.dev
Branch Preview URL: https://refactor-server-info-storage.immich.pages.dev

View logs

"/server-info": {
"get": {
"deprecated": true,
"description": "This property was deprecated in v1.106.0",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

oh this might be a little bug that it should say endpoint instead of property. looks like it uses the same description for both.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yup, fixing this is actually not super-trivial. I think I'd prefer a neutral name that works for both properties and endpoints

@danieldietzler danieldietzler left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Except for the tests this looks good ;)

@zackpollard

Copy link
Copy Markdown
Member Author

Except for the tests this looks good ;)

I'll fix those in the morning, brain was mush by the time this was done 🤣

@zackpollard
zackpollard force-pushed the refactor/server-info-storage-info branch from 40c4fb3 to 14849a9 Compare May 22, 2024 09:20
@zackpollard
zackpollard merged commit a3e7e8c into main May 22, 2024
@zackpollard
zackpollard deleted the refactor/server-info-storage-info branch May 22, 2024 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants