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

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

Merged
merged 1 commit into from
May 22, 2024

Conversation

zackpollard
Copy link
Contributor

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

Copy link

cloudflare-pages bot commented May 21, 2024

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

@@ -4337,14 +4337,16 @@
},
"/server-info": {
"get": {
"deprecated": true,
"description": "This property was deprecated in v1.106.0",
Copy link
Contributor

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
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

Copy link
Member

@danieldietzler danieldietzler left a comment

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
Contributor 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
24 checks passed
@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.

None yet

3 participants