fix: restore channel losing sync models pattern, close #1203#1205
Merged
looplj merged 1 commit intorelease/v0.9.xfrom Mar 28, 2026
Merged
fix: restore channel losing sync models pattern, close #1203#1205looplj merged 1 commit intorelease/v0.9.xfrom
looplj merged 1 commit intorelease/v0.9.xfrom
Conversation
Contributor
There was a problem hiding this comment.
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 | ||
| } | ||
| */ |
Contributor
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.