Skip to content

Commit

Permalink
Clear filter bar conditions before starting the run
Browse files Browse the repository at this point in the history
  • Loading branch information
hxz393 committed Nov 20, 2023
1 parent 2f2b3ef commit a45f329
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 4 deletions.
1 change: 0 additions & 1 deletion ConfigCenterComparer.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ def _configure_main_window(self) -> None:
"""
# 设置窗口大小、图标和名称
self.setGeometry(10, 10, 1280, 720)
self.setMinimumSize(1280, 720)
self.setWindowTitle(PROGRAM_NAME)
self.setWindowIcon(QIcon(get_resource_path('media/main.svg')))

Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,15 @@ Apollo 和 Nacos 的连接配置分别保存在 `config\config_apollo.json` 和

为避免更新日志过长,只保留最近更新日志。

## 版本 1.0.1(2023.11.19)

修复内容:

1. 开始运行前,清空过滤栏条件,避免再次运行时界面卡死;
2. 优化日志显示文字。



## 版本 1.0.0(2023.11.19)

发布初版。
2 changes: 1 addition & 1 deletion config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
LOG_PATH = 'logs/run.log'
# 程序信息
PROGRAM_NAME = 'ConfigCenterComparer'
VERSION_INFO = 'v1.0.0'
VERSION_INFO = 'v1.0.1'
AUTHOR_NAME = 'assassing'
CONTACT_MAIL = 'hxz393@gmail.com'
WEBSITE_URL = 'https://blog.x2b.net'
Expand Down
9 changes: 9 additions & 0 deletions doc/README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,15 @@ When encountering errors in software operation, first check the logs. If it's a

To avoid an overly lengthy update log, only the most recent updates are retained.

## Version 1.0.1 (2023.11.19)

Updates:

1. Clear filter bar conditions before starting the run to prevent the interface from freezing when running again;
2. Optimize the text displayed in logs.



## Version 1.0.0 (2023.11.19)

First release.
Expand Down
4 changes: 3 additions & 1 deletion ui/action_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def run(self) -> None:
if not self._perform_query():
return
self._finalize()
logger.info(f'Running done')
logger.info(f'Run Complete')
self.signal.emit('done')
except Exception:
logger.exception('Error occurred during execution')
Expand All @@ -143,6 +143,8 @@ def _initialize(self):
此方法会清空表格数据,禁用表格排序,并加载配置信息。它是配置比较过程开始前的准备步骤。
"""
# 清空过滤条件
self.filter_bar.filter_reset()
# 清空表格数据
self.table.clear()
# 初始化表宽
Expand Down
2 changes: 1 addition & 1 deletion ui/action_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def run(self) -> None:
logger.info(f'Start running test')
_, config_connection = read_config()
test_result = test_connection(config_connection)
logger.info(f'Testing done.')
logger.info(f'Test Completed')
except Exception:
logger.exception(f'Error during testing')
test_result = None
Expand Down

0 comments on commit a45f329

Please sign in to comment.