-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 Config API and Settings pages for Reuse and Consistency #852
Merged
debanjum
merged 11 commits into
features/big-upgrade-chat-ux
from
make-config-api-clean-consistent
Jul 17, 2024
Merged
Refactor Config API and Settings pages for Reuse and Consistency #852
debanjum
merged 11 commits into
features/big-upgrade-chat-ux
from
make-config-api-clean-consistent
Jul 17, 2024
Conversation
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
- Put logic to get config data, detailed or basic into router helpers module - Use the get config func across the config pages on web clients - Put configure content and get_notion_auth_url funcs in router helper module to avoid circular import
- Consistently use /content/ for data. Remove content-source from path - Remove unnecessary /data/ prefix for API endpoints under /config
- Update clients calling /api/config to call /api/configure instead
Update docs, clients and error messages to point to /configure instead of /config
Update references to point to page at /configure instead of /config
Until web interface code is reformatted with prettier
sabaimran
reviewed
Jul 17, 2024
- Use name, id for every [search|chat|voice|pain]_model_option - Rename current_model_state field to more intuitive enabled_content_source - Update references to the update fields in config.html
debanjum
force-pushed
the
make-config-api-clean-consistent
branch
from
July 17, 2024 07:35
3abe947
to
1d943ec
Compare
There are a lot of fields being returned. Group returned fields and add comment header to each Group for readability
- Update references to the settings page to use new url across docs and code - Rename desktop and web settings page to settigns.html instead of config[ure].html
debanjum
force-pushed
the
make-config-api-clean-consistent
branch
from
July 17, 2024 07:47
1d943ec
to
a1c362a
Compare
debanjum
changed the title
Rename path to Config API, Pages. Reuse get user config logic
Refactor Config API and Settings pages for Reuse and Consistency
Jul 17, 2024
debanjum
added a commit
that referenced
this pull request
Jul 27, 2024
## Major: Breaking Changes - Move API endpoints under /configure/<type>/model to /api/model/<type> - Move API endpoints under /api/configure/content/ to /api/content/ - Accept file deletion requests by clients during sync - Split /api/v1/index/update into /api/content PUT, PATCH API endpoints ## Minor: Create New API Endpoint - Create API endpoints to get user content configurations Related: #852
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Major
/settings
from the previous/config
url pathMinor