Skip to content
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: [settings] migrate config storage to unified settings system #991

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

Kakueeen
Copy link
Contributor

Refactored configuration storage mechanism across multiple components to use
the unified settings system:

  • Migrated language settings from file-based to settings-based storage
  • Updated CodeGeeX configuration to use OptionManager
  • Refactored profile settings to use centralized storage
  • Added compatibility code for smooth transition from old storage format
  • Cleaned up deprecated file-based storage methods

The changes improve configuration management consistency and maintainability
by centralizing all settings into a single system.

Log: refactored configuration storage to use unified settings system

Copy link

  • 敏感词检查失败, 检测到1个文件存在敏感词
详情
{
    "src/plugins/codegeex/codegeexmanager.cpp": [
        {
            "line": "static const char *kUrlSSEChat = \"https://codegeex.cn/prod/code/chatCodeSseV3/chat\";",
            "line_number": 30,
            "rule": "S35",
            "reason": "Url link | 9a3dc8cf24"
        },
        {
            "line": "static const char *kUrlNewSession = \"https://codegeex.cn/prod/code/chatGlmTalk/insert\";",
            "line_number": 32,
            "rule": "S35",
            "reason": "Url link | bed2c163c5"
        },
        {
            "line": "static const char *kUrlDeleteSession = \"https://codegeex.cn/prod/code/chatGlmTalk/delete\";",
            "line_number": 33,
            "rule": "S35",
            "reason": "Url link | 1c26bba3f3"
        },
        {
            "line": "static const char *kUrlQuerySession = \"https://codegeex.cn/prod/code/chatGlmTalk/selectList\";",
            "line_number": 34,
            "rule": "S35",
            "reason": "Url link | 354cff53d7"
        },
        {
            "line": "static const char *kUrlQueryMessage = \"https://codegeex.cn/prod/code/chatGmlMsg/selectList\";",
            "line_number": 35,
            "rule": "S35",
            "reason": "Url link | 63ba5cece9"
        }
    ]
}

@deepin-bot
Copy link

deepin-bot bot commented Nov 14, 2024

TAG Bot

New tag: 1.3.17
DISTRIBUTION: stable
Suggest: synchronizing this PR through rebase #994

LiHua000
LiHua000 previously approved these changes Nov 16, 2024
Refactored configuration storage mechanism across multiple components to use
the unified settings system:

- Migrated language settings from file-based to settings-based storage
- Updated CodeGeeX configuration to use OptionManager
- Refactored profile settings to use centralized storage
- Added compatibility code for smooth transition from old storage format
- Cleaned up deprecated file-based storage methods

The changes improve configuration management consistency and maintainability
by centralizing all settings into a single system.

Log: refactored configuration storage to use unified settings system
Copy link

  • 敏感词检查失败, 检测到1个文件存在敏感词
详情
{
    "src/plugins/codegeex/codegeexmanager.cpp": [
        {
            "line": "static const char *kUrlSSEChat = \"https://codegeex.cn/prod/code/chatCodeSseV3/chat\";",
            "line_number": 29,
            "rule": "S35",
            "reason": "Url link | 9a3dc8cf24"
        },
        {
            "line": "static const char *kUrlNewSession = \"https://codegeex.cn/prod/code/chatGlmTalk/insert\";",
            "line_number": 31,
            "rule": "S35",
            "reason": "Url link | bed2c163c5"
        },
        {
            "line": "static const char *kUrlDeleteSession = \"https://codegeex.cn/prod/code/chatGlmTalk/delete\";",
            "line_number": 32,
            "rule": "S35",
            "reason": "Url link | 1c26bba3f3"
        },
        {
            "line": "static const char *kUrlQuerySession = \"https://codegeex.cn/prod/code/chatGlmTalk/selectList\";",
            "line_number": 33,
            "rule": "S35",
            "reason": "Url link | 354cff53d7"
        },
        {
            "line": "static const char *kUrlQueryMessage = \"https://codegeex.cn/prod/code/chatGmlMsg/selectList\";",
            "line_number": 34,
            "rule": "S35",
            "reason": "Url link | 63ba5cece9"
        }
    ]
}

@deepin-mozart deepin-mozart merged commit 8874bfb into linuxdeepin:master Nov 21, 2024
8 of 10 checks passed
@deepin-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: deepin-mozart, Kakueeen

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants