Skip to content

Conversation

@yuda110
Copy link
Member

@yuda110 yuda110 commented May 19, 2025

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
스크린샷 2025-05-19 오후 4 49 14

run cost-report-config/run api when click reissue button

yuda110 added 2 commits May 19, 2025 16:51
Signed-off-by: yuda <yuda@megazone.com>
Signed-off-by: yuda <yuda@megazone.com>
@vercel
Copy link

vercel bot commented May 19, 2025

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

4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
console ⬜️ Ignored (Inspect) Visit Preview May 19, 2025 8:08am
dashboard ⬜️ Ignored (Inspect) Visit Preview May 19, 2025 8:08am
feature-integration-project-detail ⬜️ Ignored (Inspect) Visit Preview May 19, 2025 8:08am
web-storybook ⬜️ Ignored (Inspect) Visit Preview May 19, 2025 8:08am

@vercel
Copy link

vercel bot commented May 19, 2025

@yuda110 is attempting to deploy a commit to the cloudforet Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Contributor

🎉 @piggggggggy and @skdud4659 have been randomly selected as the reviewers! Please review. 🙏

@github-actions github-actions bot requested review from piggggggggy and skdud4659 May 19, 2025 07:53
@yuda110 yuda110 requested review from Copilot and removed request for piggggggggy and skdud4659 May 19, 2025 07:53
Copy link

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 adds a “Reissue” button to the upcoming cost report card, wiring it to a new API endpoint and providing success/error feedback, along with the necessary translation keys and API schema updates.

  • Introduces REISSUE_REPORT, ALT_S_REISSUE_REPORT, and ALT_E_REISSUE_REPORT translation keys in JSON and Babel files.
  • Adds run verb to the cost-report-config API schema and composable.
  • Implements a Reissue button in CostReportUpcomingReportCard.vue with a Vue Query mutation and success/error handling.

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/language-pack/ko.json, ja.json, en.json Added new translation keys for “Reissue” and alerts
packages/language-pack/console-translation-2.8.babel Added new <concept_node> entries (no default_text)
apps/web/src/services/cost-explorer/components/CostReportUpcomingReportCard.vue Render “Reissue” button and hook up mutation
apps/web/src/api-clients/cost-analysis/cost-report-config/schema/api-verbs/run.ts Defined CostReportConfigRunParameters
apps/web/src/api-clients/cost-analysis/cost-report-config/composables/use-cost-report-config-api.ts Exposed run in useCostReportConfigApi
Comments suppressed due to low confidence (2)

apps/web/src/services/cost-explorer/components/CostReportUpcomingReportCard.vue:16

  • [nitpick] The languages import is no longer used in this component—consider removing it to clean up unused dependencies.
import { languages } from '@/store/user/constant';

apps/web/src/services/cost-explorer/components/CostReportUpcomingReportCard.vue:61

  • There are no tests covering the new “Reissue” button or its mutation logic; consider adding unit or integration tests to verify API calls, query invalidation, and success/error notifications.
const handleReissueReport = async () => {

});

const { key: costReportConfigListQueryKey } = useServiceQueryKey('cost-analysis', 'cost-report-config', 'list');
const { mutateAsync: reissueReport, isPending: reissueReportLoading } = useMutation({
Copy link

Copilot AI May 19, 2025

Choose a reason for hiding this comment

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

Vue Query's useMutation does not expose isPending; you should use isLoading (or isMutating) to track loading state so the button loading indicator works correctly.

Suggested change
const { mutateAsync: reissueReport, isPending: reissueReportLoading } = useMutation({
const { mutateAsync: reissueReport, isMutating: reissueReportLoading } = useMutation({

Copilot uses AI. Check for mistakes.
</translation>
</translations>
</concept_node>
<concept_node>
Copy link

Copilot AI May 19, 2025

Choose a reason for hiding this comment

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

New <concept_node> entries lack <default_text> values — adding default text will give translators necessary context.

Copilot uses AI. Check for mistakes.
Signed-off-by: yuda <yuda@megazone.com>
Copy link
Member

@piggggggggy piggggggggy left a comment

Choose a reason for hiding this comment

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

LGTM! I left a small comment!

const actions = {
update: SpaceConnector.clientV2.costAnalysis.costReportConfig.update<CostReportConfigUpdateParameters, CostReportConfigModel>,
list: SpaceConnector.clientV2.costAnalysis.costReportConfig.list<CostReportConfigListParameters, ListResponse<CostReportConfigModel>>,
run: SpaceConnector.clientV2.costAnalysis.costReportConfig.run<CostReportConfigRunParameters, CostReportConfigModel>,
Copy link
Member

Choose a reason for hiding this comment

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

nitpick: Is value returned by run verb CostReportConfigModel correct?

Copy link
Member Author

Choose a reason for hiding this comment

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

oh, it returns {}

Signed-off-by: yuda <yuda@megazone.com>
@yuda110 yuda110 merged commit 4069041 into cloudforet-io:feature-cost-report May 19, 2025
8 checks passed
@yuda110 yuda110 deleted the feature/run branch May 19, 2025 08:11
yuda110 added a commit that referenced this pull request May 19, 2025
* feat: add 'reissue' button

Signed-off-by: yuda <yuda@megazone.com>

* chore: update language

Signed-off-by: yuda <yuda@megazone.com>

* chore: delete invalidating query cache

Signed-off-by: yuda <yuda@megazone.com>

* fix: set proper return value

Signed-off-by: yuda <yuda@megazone.com>

---------

Signed-off-by: yuda <yuda@megazone.com>
yuda110 added a commit that referenced this pull request May 21, 2025
* feat: add 'reissue' button

Signed-off-by: yuda <yuda@megazone.com>

* chore: update language

Signed-off-by: yuda <yuda@megazone.com>

* chore: delete invalidating query cache

Signed-off-by: yuda <yuda@megazone.com>

* fix: set proper return value

Signed-off-by: yuda <yuda@megazone.com>

---------

Signed-off-by: yuda <yuda@megazone.com>
yuda110 added a commit that referenced this pull request May 23, 2025
* feat: add 'reissue' button

Signed-off-by: yuda <yuda@megazone.com>

* chore: update language

Signed-off-by: yuda <yuda@megazone.com>

* chore: delete invalidating query cache

Signed-off-by: yuda <yuda@megazone.com>

* fix: set proper return value

Signed-off-by: yuda <yuda@megazone.com>

---------

Signed-off-by: yuda <yuda@megazone.com>
yuda110 added a commit that referenced this pull request May 26, 2025
* feat: add 'reissue' button

Signed-off-by: yuda <yuda@megazone.com>

* chore: update language

Signed-off-by: yuda <yuda@megazone.com>

* chore: delete invalidating query cache

Signed-off-by: yuda <yuda@megazone.com>

* fix: set proper return value

Signed-off-by: yuda <yuda@megazone.com>

---------

Signed-off-by: yuda <yuda@megazone.com>
yuda110 added a commit that referenced this pull request May 29, 2025
* feat: add 'reissue' button

Signed-off-by: yuda <yuda@megazone.com>

* chore: update language

Signed-off-by: yuda <yuda@megazone.com>

* chore: delete invalidating query cache

Signed-off-by: yuda <yuda@megazone.com>

* fix: set proper return value

Signed-off-by: yuda <yuda@megazone.com>

---------

Signed-off-by: yuda <yuda@megazone.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants