Jin Hai
3670b047f0
Go: add audit log framework ( #17129 )
...
### Summary
Prepare for audit log
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-07-20 23:50:45 +08:00
Jin Hai
7ad27adecb
Go CLI: add admin stats commands ( #17090 )
...
### Summary
```
RAGFlow(admin)> STATS USERS TOP 5 FROM '2026-01-01' TO '2026-02-01';
+-----------------------+----------------------------------------------+------------+---------------------+-----+
| command | error | from_date | to_date | top |
+-----------------------+----------------------------------------------+------------+---------------------+-----+
| get_token_users_stats | 'Get API token users stats' is not supported | 2026-01-01 | 2026-02-01 23:59:59 | 5 |
+-----------------------+----------------------------------------------+------------+---------------------+-----+
RAGFlow(admin)> STATS USER 'aaa@aaa.com ' FROM '2026-01-01' TO '2026-02-01' MONTH;
+-----------------+----------------------------------------+------------+-------------+---------------------+-------------+
| command | error | from_date | granularity | to_date | user_name |
+-----------------+----------------------------------------+------------+-------------+---------------------+-------------+
| get_token_stats | 'Get API token stats' is not supported | 2026-01-01 | month | 2026-02-01 23:59:59 | aaa@aaa.com |
+-----------------+----------------------------------------+------------+-------------+---------------------+-------------+
RAGFlow(admin)> STATS SUMMARY FROM '2026-01-01' TO '2026-02-01' MONTH;
+-----------+------------------------------------------------+
| field | value |
+-----------+------------------------------------------------+
| to_date | 2026-02-01 23:59:59 |
| command | get_token_stats_summary |
| error | 'Get API token stats summary' is not supported |
| from_date | 2026-01-01 |
+-----------+------------------------------------------------+
```
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-07-20 14:24:28 +08:00
Jin Hai
7c698f8e4b
Python: remove unused index ( #17008 )
...
### Summary
Remove below indexes.
```
idx_tenant_langfuse_secret_key
idx_tenant_langfuse_public_key
idx_tenant_langfuse_host
```
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-07-16 23:00:44 +08:00
Jin Hai
8bc18154d2
Go: refactor and add version type ( #16863 )
...
### Summary
```
RAGFlow(admin)> show version;
+--------------+-----------------------+
| field | value |
+--------------+-----------------------+
| version | v0.26.4-84-g547bc8614 |
| version_type | open source |
+--------------+-----------------------+
```
---------
Signed-off-by: Jin Hai <haijin.chn@gmail.com >
2026-07-13 18:00:35 +08:00