Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

add API server-reload-ui and server-reload-script-bodies#16743

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
w-e-w wants to merge2 commits intodev
base:dev
Choose a base branch
Loading
fromserver-reload-API

Conversation

@w-e-w
Copy link
Collaborator

@w-e-ww-e-w commentedDec 23, 2024
edited
Loading

Description

Add 2 api route
/sdapi/v1/server-reload-ui
/sdapi/v1/server-reload-script-bodies
same function as theseReload UI andReload custom script bodies (No ui updates, No restart) buttons
image

similer to the existing api rounts
/sdapi/v1/server-stop/sdapi/v1/server-restart/sdapi/v1/server-restart

note only available if--api and--api-server-stop is used

image


context

some settings needsreload ui to apply, but it only does is update the UI visually and so does not really impact API use
but there are some settings that goes deeper such ascontrol_net_unit_count, this setting dose needreload ui as it will correctly corresponding inputs for the API, and some reloading in these cases are important

it is possible to just Restart UI, but this is slower then just reloading the UI, (also sometimes restarting is not available)
so I see no reason why we shouldn't add/sdapi/v1/server-reload-ui for those cases that actually do need it

/sdapi/v1/server-reload-script-bodies it's just something I decide to also Implement because why not (I'm not sure how useful is this one)

Checklist:

@w-e-ww-e-w marked this pull request as draftDecember 28, 2024 03:33
@w-e-w
Copy link
CollaboratorAuthor

w-e-w commentedDec 28, 2024
edited
Loading

found issue
/sdapi/v1/server-reload-ui dose not work inapi only mode /--nowebui

existing routes
/sdapi/v1/server-restart/sdapi/v1/server-stop also have the same issue

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@AUTOMATIC1111AUTOMATIC1111Awaiting requested review from AUTOMATIC1111AUTOMATIC1111 is a code owner

@catboxanoncatboxanonAwaiting requested review from catboxanoncatboxanon is a code owner

At least 0 approving reviews are required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@w-e-w

[8]ページ先頭

©2009-2025 Movatter.jp