Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: Fix the issue of pagination errors in the backup list #7673

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

ssongliu
Copy link
Member

@ssongliu ssongliu commented Jan 9, 2025

No description provided.

Copy link

f2c-ci-robot bot commented Jan 9, 2025

Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@@ -156,7 +156,6 @@ const currentRow = ref();
const data = ref();
const title = ref();
const paginationConfig = reactive({
cacheSizeKey: 'upload-page-size',
currentPage: 1,
pageSize: 10,
total: 0,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes to the code seem mostly correct, but there is a change regarding imports and types. The UploadProps, UploadRawFile types have been added to the import. These likely provide additional functionality such as handling file properties directly within the Vue component.

No other significant irregularities, potential issues, or optimizations were noted in this particular code snippet based on my analysis of its content.

@@ -883,7 +883,7 @@ const message = {
perDayHelper: '每日 {0}:{1} 執行',
perHourHelper: '每小時 {0}分 執行',
perNDayHelper: '每 {0} 日 {1}:{2} 執行',
perNHourHelper: '每 {0}小時 {1} 執行',
perNHourHelper: '每 {0}小時 {1} 執行',
perNMinuteHelper: '每 {0}分 執行',
perNSecondHelper: '每 {0}秒 執行',
perMonth: '每月',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code difference you provided involves updating a message template for scheduling options. Specifically, the "每 {0} 小時 {1}" (per hour) message has been changed to "每 {0} 小時 {1} 分" (every X hours Y minutes), which is more accurate and natural.

Suggestion: Remove the extra space after "{1}" in the original line, resulting in perNHourHelper: '每 {0}小時{1} 執行'.

@@ -883,7 +883,7 @@ const message = {
perDayHelper: '每日 {0}:{1} 执行',
perHourHelper: '每小时 {0}分 执行',
perNDayHelper: '每 {0} 日 {1}:{2} 执行',
perNHourHelper: '每 {0}小时 {1} 执行',
perNHourHelper: '每 {0}小时 {1} 执行',
perNMinuteHelper: '每 {0}分 执行',
perNSecondHelper: '每 {0}秒 执行',
perMonth: '每月',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There seems to be an incorrect format for the "perNHourHelper" string. It appears that the current pattern includes minutes (e.g., "每 5小时 30分 执行"), but it might not match expected behavior if hours and minutes were intended separately.

To correct this, you could simplify the string patterns where necessary:

- perNHourHelper: '每 {0}小时 {1} 分执行',
+ perNHourHelper: '每 {0} 小时{1}分钟执行', // Simplify to just hours and minutes

This change ensures consistency between different time units by providing a more straightforward representation of the schedule format.

Copy link

sonarqubecloud bot commented Jan 9, 2025

Copy link
Member

@wanghe-fit2cloud wanghe-fit2cloud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@wanghe-fit2cloud
Copy link
Member

/approve

Copy link

f2c-ci-robot bot commented Jan 9, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: wanghe-fit2cloud

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

@f2c-ci-robot f2c-ci-robot bot added the approved label Jan 9, 2025
@f2c-ci-robot f2c-ci-robot bot merged commit 070f61e into dev Jan 9, 2025
6 checks passed
@f2c-ci-robot f2c-ci-robot bot deleted the pr@dev@fix_backup_page branch January 9, 2025 03:07
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants