Skip to content

chore: fixed minor issue#5957

Merged
skdud4659 merged 3 commits intodevelopfrom
hotfix-cost-anomaly
Jun 23, 2025
Merged

chore: fixed minor issue#5957
skdud4659 merged 3 commits intodevelopfrom
hotfix-cost-anomaly

Conversation

@skdud4659
Copy link
Copy Markdown
Member

Skip Review (optional)

  • Minor changes that don't affect the functionality (e.g. style, chore, ci, test, docs)
  • Previously reviewed in feature branch, further review is not mandatory
  • Self-merge allowed for solo developers or urgent changes

Description (optional)

SSIA

Things to Talk About (optional)

Signed-off-by: NaYeong,Kim <nayeongkim@megazone.com>
Signed-off-by: NaYeong,Kim <nayeongkim@megazone.com>
Signed-off-by: NaYeong,Kim <nayeongkim@megazone.com>
@skdud4659 skdud4659 requested a review from Copilot June 23, 2025 07:26
@skdud4659 skdud4659 added the self_approved/review Pull Request has been reviewed and approved by the author without requiring additional reviewers. label Jun 23, 2025
@vercel
Copy link
Copy Markdown

vercel bot commented Jun 23, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
console ⬜️ Ignored (Inspect) Jun 23, 2025 7:26am
web-storybook ⬜️ Ignored (Inspect) Jun 23, 2025 7:26am

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR makes minor chore changes including updating localization string text, replacing a placeholder with a numeric input type, and commenting out old temporary asset functionality code.

  • Updated the Korean language pack text for anomaly detection notifications.
  • Changed the input component in the cost explorer admin page to a number type.
  • Commented out sections in alert-manager components related to temporary asset handling.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
packages/language-pack/ko.json Updated text for the notification rules localization.
apps/web/src/services/cost-explorer/pages/admin/AdminAnomalyDetectionConfigurationPage.vue Changed the input field from displaying a placeholder to enforcing numeric input.
apps/web/src/services/alert-manager/v2/components/ServiceDetailTabsSettingsEventRuleFormCard.vue Commented out the temporary asset validation logic.
apps/web/src/services/alert-manager/v2/components/ServiceDetailTabsSettingsEventRuleCard.vue Commented out code that previously pushed temporary asset options into the result array.
apps/web/src/services/alert-manager/v2/components/ServiceDetailTabsSettingsEventRuleActionAsset.vue Removed unused imports and commented out temporary asset functionality in both script and template sections.

Comment on lines +106 to +109
// if (state.actions.match_asset?.create_temporary_asset) {
// const matchAssetValid = state.actions.match_asset.asset_types.length > 0 && state.actions.match_asset.key !== '';
// if (!matchAssetValid) return false;
// }
Copy link

Copilot AI Jun 23, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider removing or clarifying the commented-out temporary asset validation code if it is no longer needed.

Suggested change
// if (state.actions.match_asset?.create_temporary_asset) {
// const matchAssetValid = state.actions.match_asset.asset_types.length > 0 && state.actions.match_asset.key !== '';
// if (!matchAssetValid) return false;
// }

Copilot uses AI. Check for mistakes.
Comment on lines +111 to +115
// result[type].push({
// label: i18n.t('ALERT_MANAGER.EVENT_RULE.TEMP_ASSET'),
// name: 'create_temporary_asset',
// value: matchAssetValue.create_temporary_asset ? i18n.t('ALERT_MANAGER.CREATE') : i18n.t('ALERT_MANAGER.EVENT_RULE.DO_NOT_CREATE'),
// });
Copy link

Copilot AI Jun 23, 2025

Choose a reason for hiding this comment

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

[nitpick] If temporary asset functionality is deprecated, consider permanently removing the commented-out push block to improve code clarity.

Suggested change
// result[type].push({
// label: i18n.t('ALERT_MANAGER.EVENT_RULE.TEMP_ASSET'),
// name: 'create_temporary_asset',
// value: matchAssetValue.create_temporary_asset ? i18n.t('ALERT_MANAGER.CREATE') : i18n.t('ALERT_MANAGER.EVENT_RULE.DO_NOT_CREATE'),
// });

Copilot uses AI. Check for mistakes.
key,
asset_types: assetList?.map((asset) => asset.name),
create_temporary_asset: tempAsset === 'CREATE',
// create_temporary_asset: tempAsset === 'CREATE',
Copy link

Copilot AI Jun 23, 2025

Choose a reason for hiding this comment

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

[nitpick] If the temporary asset functionality is no longer used, consider removing the commented-out assignment to reduce clutter.

Suggested change
// create_temporary_asset: tempAsset === 'CREATE',

Copilot uses AI. Check for mistakes.
</p-field-group>
</div>
<div class="field-group flex items-center">
<!-- TODO: used when adding temporary asset functionality -->
Copy link

Copilot AI Jun 23, 2025

Choose a reason for hiding this comment

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

[nitpick] Review the commented HTML block regarding temporary asset functionality to ensure it does not impact the template readability; remove it if it is no longer necessary.

Copilot uses AI. Check for mistakes.
@skdud4659 skdud4659 merged commit 8feaabd into develop Jun 23, 2025
11 checks passed
@skdud4659 skdud4659 deleted the hotfix-cost-anomaly branch June 23, 2025 07:40
@github-actions github-actions bot mentioned this pull request Jul 9, 2025
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pass/signedoff self_approved/review Pull Request has been reviewed and approved by the author without requiring additional reviewers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants