Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: order of conversation by updated_at#1662

Merged
tusharmath merged 1 commit into
mainfrom
conversation-order
Oct 5, 2025
Merged

fix: order of conversation by updated_at#1662
tusharmath merged 1 commit into
mainfrom
conversation-order

Conversation

@tusharmath

Copy link
Copy Markdown
Collaborator
  • refactor: replace 'inquire' with 'dialoguer' for improved user prompts
  • refactor: replace 'inquire' with 'dialoguer' in dependencies
  • refactor: streamline command execution and prompt reset functions
  • fix: sort conversations by updated at

@tusharmath tusharmath changed the title conversation order fix: order of conversation by updated_at Oct 5, 2025
@github-actions github-actions Bot added the type: fix Iterations on existing features or infrastructure. label Oct 5, 2025
@tusharmath tusharmath enabled auto-merge (squash) October 5, 2025 08:18
Comment on lines +118 to +119
.filter(conversations::context.is_not_null())
.order(conversations::updated_at.desc())

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.

The PR title indicates this change is about sorting conversations by updated_at, but the implementation also adds a filter for non-null contexts. This additional filter could potentially exclude conversations that were previously included in the results.

Consider whether:

  1. The filter is an intentional change that should be mentioned in the PR description
  2. The filter is necessary for the sorting change to work correctly
  3. The filter should be removed if it's not part of the intended change

The tests have been updated to include contexts in all test conversations, which suggests this might be intentional, but it would be helpful to clarify the purpose of this additional filter in the PR description.

Suggested change
.filter(conversations::context.is_not_null())
.order(conversations::updated_at.desc())
.order(conversations::updated_at.desc())

Spotted by Diamond

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

@tusharmath tusharmath merged commit 3683465 into main Oct 5, 2025
10 checks passed
@tusharmath tusharmath deleted the conversation-order branch October 5, 2025 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: fix Iterations on existing features or infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant