ragflow/api
Raghav Patidar 49d560583f
Fix: HTTP API Updates Read-Only Dataset Fields During Modification #5923 (#5937)
### What problem does this PR solve?

Fixes #5923 

Fixes the readonly variables from payload at
 /datasets/<dataset_id> 

_Briefly describe what this PR aims to solve. Include background context
that will help reviewers understand the purpose of the PR._

Now if user tries to modify readonly values then it will show " The
input parameters are invalid. "

invalid_keys = {"id", "embd_id", "chunk_num", "doc_num", "parser_id",
"create_date", "create_time", "created_by",
"status","token_num","update_date","update_time"}
    if any(key in req for key in invalid_keys):
return get_error_data_result(message="The input parameters are
invalid.")
i have include those readonly keys in invalid_keys

### Type of change

- [ ] Bug Fix (non-breaking change which fixes an issue)

---------

Co-authored-by: Raghav <2020csb1115@iitrpr.ac.in>
2025-03-12 10:27:02 +08:00
..
apps Fix: HTTP API Updates Read-Only Dataset Fields During Modification #5923 (#5937) 2025-03-12 10:27:02 +08:00
db Feat: apply LLM to optimize citations. (#5935) 2025-03-11 19:56:21 +08:00
utils Fix: add the validation for parser_config. (#5755) 2025-03-07 15:34:34 +08:00
__init__.py Update comments (#4569) 2025-01-21 20:52:28 +08:00
constants.py Add more web test cases (#3702) 2024-11-28 15:46:35 +08:00
ragflow_server.py Refactor graphrag to remove redis lock (#5828) 2025-03-10 15:15:06 +08:00
settings.py Add configuration to choose default llm models (#5245) 2025-02-24 10:13:39 +08:00
validation.py Fix errors detected by Ruff (#3918) 2024-12-08 14:21:12 +08:00
versions.py Fix VERSION 2024-12-07 16:56:34 +08:00