-
Notifications
You must be signed in to change notification settings - Fork 40
feat: add 'reissue' button #5862
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
feat: add 'reissue' button #5862
Conversation
Signed-off-by: yuda <yuda@megazone.com>
Signed-off-by: yuda <yuda@megazone.com>
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 4 Skipped Deployments
|
|
@yuda110 is attempting to deploy a commit to the cloudforet Team on Vercel. A member of the Team first needs to authorize it. |
|
🎉 @piggggggggy and @skdud4659 have been randomly selected as the reviewers! Please review. 🙏 |
There was a problem hiding this 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, andALT_E_REISSUE_REPORTtranslation keys in JSON and Babel files. - Adds
runverb to the cost-report-config API schema and composable. - Implements a
Reissuebutton inCostReportUpcomingReportCard.vuewith 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
languagesimport 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({ |
Copilot
AI
May 19, 2025
There was a problem hiding this comment.
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.
| const { mutateAsync: reissueReport, isPending: reissueReportLoading } = useMutation({ | |
| const { mutateAsync: reissueReport, isMutating: reissueReportLoading } = useMutation({ |
| </translation> | ||
| </translations> | ||
| </concept_node> | ||
| <concept_node> |
Copilot
AI
May 19, 2025
There was a problem hiding this comment.
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.
Signed-off-by: yuda <yuda@megazone.com>
piggggggggy
left a comment
There was a problem hiding this 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>, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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>
* 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>
* 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>
* 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>
* 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>
* 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>
Skip Review (optional)
style,chore,ci,test,docs)Description (optional)
SSIA

run
cost-report-config/runapi when clickreissuebutton