Skip to content

Replace additional info in server response with async requests from client#252

Merged
AdventurousGui merged 5 commits into
stjiris:mainfrom
AdventurousGui:async-updates
Jul 13, 2025
Merged

Replace additional info in server response with async requests from client#252
AdventurousGui merged 5 commits into
stjiris:mainfrom
AdventurousGui:async-updates

Conversation

@AdventurousGui
Copy link
Copy Markdown
Collaborator

The server is currently gathering and returning information about the file system in several endpoints, which may be unnecessary and bloat the response if the calls are being made through an API. This also implies duplicate code that increases the chance of mistakes if the functions that gather file system information are altered.

This PR ensures that the server avoids performing unnecessary work for API requests, and the client must rely on calls to /files and /info to get updated information. In the web application, this means making these calls asynchronously after receiving responses from the endpoints that previously returned file system information.

@AdventurousGui AdventurousGui self-assigned this Jul 13, 2025
@AdventurousGui AdventurousGui merged commit 75a6bf9 into stjiris:main Jul 13, 2025
@AdventurousGui AdventurousGui deleted the async-updates branch August 4, 2025 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant