13 Commits

Author SHA1 Message Date
Chris Weaver
d5bb10b61f
Improve indexing status display (#278)
Adds:
- actual error message in UI for indexing failure
- if a connector is disabled, stops indexing immediately (after the current batch of documents) to allow for deletion
- adds num docs indexed for the current run + a speed
2023-08-12 14:49:04 -07:00
Chris Weaver
89f71ac335
Support deletion of documents when a connector is deleted (#271) 2023-08-09 00:53:42 -07:00
Chris Weaver
132a9f750d
Add Github Action to run mypy / reorder-python-imports / black on all PRs (#251)
Also fixes import ordering (previously, local imports weren't grouped together as they should have been)
2023-07-29 16:53:38 -07:00
Yuhong Sun
87fe6f7575
Add ingestion metrics (#256) 2023-07-29 16:37:22 -07:00
jabdoa2
63780113d3
Add support for openid connect (#206)
This allow using Danswer in typical (non-google) enterprise environments.

* Access Tokens can be very large. A token without claims is already 1100 bytes for me (larger than allowed in danswer by default). With roles I got a 12kB token. For that reason I changed the field to TEXT in the database.
* Danswer used to swallow most errors when OIDC would fail. Nodejs forwards a request to the backend and swallows all errors. Even within the backend we catched all ValueErrors and only returned the last exception with the request. Added full stack trace logging to allow debugging issues with userinfo and other endpoints.
* Allow changing name of the login provider on the login button.
* Changed variables and URLs to generic OAUTH_XX (without google in the name) but kept compatibility with the existing google integration
* Tested again Keycloak with OpenID Connect

Next steps:
* Claim to role mappings
* Auto login/SSO (Login button is just an extra click)
2023-07-29 14:04:32 -07:00
Yuhong Sun
6fe54a4eed
DAN-115 Document Polling (#91)
Includes updated document counting for polling
2023-06-15 21:07:05 -07:00
Yuhong Sun
8c9b3079aa
Delete conflicting records from IndexAttempt on upgrade/downgrade (#83) 2023-05-31 08:54:09 -07:00
Yuhong Sun
6891e4f198
Standardize connectors + permissioning + new frontend for admin pages + small fixes / improvements (#75)
Introducing permissioning, standardize onboarding for connectors, re-make the data model for connectors / credentials / index-attempts, making all environment variables optional, a bunch of small fixes + improvements.

Co-authored-by: Weves <chrisweaver101@gmail.com>
2023-05-30 19:59:57 -07:00
Weves
e8bf6b0364 Fix time_updated default 😓 2023-05-08 12:57:51 -07:00
Yuhong Sun
9babe7fb95
DAN-40 Admin User Support (#18) 2023-05-07 16:30:49 -07:00
Yuhong Sun
e20179048d
DAN-5 OAuth Backend (#17)
Also added in an exception handler for logging
2023-05-06 23:47:21 -07:00
Yuhong Sun
63f93594a3
DAN-3 Authentication and User Registration (#12)
also added mypy.ini
2023-05-05 17:25:24 -07:00
Chris Weaver
e2a949ebaf
Setup Postgres to docker compose + add web indexing APIs + update background runner to look for web indices to run (#13)
* Adding Postgres to docker compose

* Model / migrations for indexing logs
2023-05-05 13:08:32 -07:00