Skip to content

Sort by create_ed or submit_time for query bills#1251

Merged
HaiHui886 merged 1 commit into
mainfrom
sync_mr_2704_61f7760
Jul 9, 2026
Merged

Sort by create_ed or submit_time for query bills#1251
HaiHui886 merged 1 commit into
mainfrom
sync_mr_2704_61f7760

Conversation

@Rader

@Rader Rader commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

Summary:

  • Modified ListByUserIDAndDate to sort bills by actual instance creation time (deploy.created_at or argo_workflows.submit_time) instead of bill date, ensuring the list order matches the chronological creation of instances.
  • Updated the Scene field type from int to SceneType across handlers and components, and refactored the query to use LEFT JOINs for direct retrieval of creation timestamps without secondary lookups.

@Rader

Rader commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator Author

Depends on #1250

@HaiHui886 HaiHui886 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm

@HaiHui886
HaiHui886 merged commit 4f23c4f into main Jul 9, 2026
7 checks passed
@HaiHui886
HaiHui886 deleted the sync_mr_2704_61f7760 branch July 9, 2026 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants