Skip to content

fix: restore channel losing sync models pattern, close #1203#1205

Merged
looplj merged 1 commit intorelease/v0.9.xfrom
dev-tmp
Mar 28, 2026
Merged

fix: restore channel losing sync models pattern, close #1203#1205
looplj merged 1 commit intorelease/v0.9.xfrom
dev-tmp

Conversation

@looplj
Copy link
Copy Markdown
Owner

@looplj looplj commented Mar 28, 2026

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the backend development guidelines to restrict custom code in resolver files and migrates the parseTimeWindow helper to a dedicated helper file. Frontend improvements include enhanced table responsiveness through column width adjustments and sticky action columns. Additionally, the PR updates several Go dependencies and extends the backup restoration logic to support new channel fields. A commented-out code block in the resolver file, left by the code generator, should be removed.

Comment on lines +1728 to +1756
// !!! WARNING !!!
// The code below was going to be deleted when updating resolvers. It has been copied here so you have
// one last chance to move it out of harms way if you want. There are two reasons this happens:
// - When renaming or deleting a resolver the old code will be put in here. You can safely delete
// it when you're done.
// - You have helper methods in this file. Move them out to keep these resolver files clean.
/*
func (r *queryResolver) parseTimeWindow(ctx context.Context, timeWindow *string) (since time.Time, applyFilter bool) {
loc := r.systemService.TimeLocation(ctx)
period := xtime.GetCalendarPeriods(loc)
if timeWindow != nil && *timeWindow != "" && *timeWindow != "allTime" {
applyFilter = true
switch *timeWindow {
case "day":
since = period.Today.Start
case "week":
since = period.ThisWeek.Start
case "month":
since = period.ThisMonth.Start
default:
// Unknown value - default to allTime behavior (no filtering)
applyFilter = false
}
}
return since, applyFilter
}
*/
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

It looks like gqlgen has left behind the parseTimeWindow function that you've correctly moved to dashboard_helpers.go. This commented-out block can now be safely removed to clean up the file.

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

@looplj looplj merged commit 32c8c08 into release/v0.9.x Mar 28, 2026
3 checks passed
NekoNuo pushed a commit to NekoNuo/axonhub that referenced this pull request Mar 28, 2026
NekoNuo pushed a commit to NekoNuo/axonhub that referenced this pull request Apr 2, 2026
NekoNuo pushed a commit to NekoNuo/axonhub that referenced this pull request Apr 2, 2026
NekoNuo pushed a commit to NekoNuo/axonhub that referenced this pull request Apr 4, 2026
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.

1 participant