mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-02 22:01:05 +02:00
feat: enhance periodic indexing configuration with detailed validation and UI options
- Updated the SearchSourceConnectorBase class to include detailed documentation on supported periodic indexing frequencies. - Added "Every 5 minutes" option to the frequency selection in multiple connector forms (BookStack, ClickUp, Confluence, Discord, Elasticsearch, Github, Jira, Luma, Slack) to improve user experience and flexibility in scheduling.
This commit is contained in:
parent
76de0b5530
commit
431ea44b56
12 changed files with 37 additions and 2 deletions
|
|
@ -30,7 +30,12 @@ class SearchSourceConnectorBase(BaseModel):
|
|||
|
||||
@model_validator(mode="after")
|
||||
def validate_periodic_indexing(self):
|
||||
"""Validate that periodic indexing configuration is consistent."""
|
||||
"""Validate that periodic indexing configuration is consistent.
|
||||
|
||||
Supported frequencies: Any positive integer (in minutes).
|
||||
Common values: 5, 15, 60 (1 hour), 360 (6 hours), 720 (12 hours), 1440 (daily), etc.
|
||||
The schedule checker will handle any frequency >= 1 minute.
|
||||
"""
|
||||
if self.periodic_indexing_enabled:
|
||||
if not self.is_indexable:
|
||||
raise ValueError(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue