Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: issue 9455#9473

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nikhilsaikethe merged 4 commits intomainfromfix/issue-9455
Dec 4, 2025
Merged

fix: issue 9455#9473

nikhilsaikethe merged 4 commits intomainfromfix/issue-9455
Dec 4, 2025

Conversation

@nikhilsaikethe
Copy link
Contributor

This pr fixes the issue in#9455 , stream should be selected before creating scheduled job

greptile-apps[bot] reacted with thumbs up emoji
@github-actionsgithub-actionsbot added the ☢️ BugSomething isn't working labelDec 4, 2025
@github-actions
Copy link
Contributor

Failed to generate code suggestions for PR

@greptile-apps
Copy link
Contributor

Greptile Overview

Greptile Summary

This PR addresses issue#9455 by adding validation checks in the logs search bar download functionality:

  • Added validation inaddJobScheduler() to require stream selection before scheduling jobs
  • Added validation indownloadRangeData() to ensure a query exists before custom range downloads
  • Moved empty data validation to the beginning ofdownloadLogs() function, checking before processing rather than after conversion
  • Changed notification positions from "top" to "bottom" for consistency

Issues to address:

  • The notification changes will break an existing test inSearchBar.spec.ts that expects different message text and notification type
  • Code formatting has inconsistent indentation in the newdownloadRangeData() validation block

Confidence Score: 3/5

  • This PR adds useful validation but will break an existing test and has minor code quality issues that should be addressed before merging.
  • Score of 3 reflects that while the functional changes are correct and address the issue requirements, there is a breaking change to an existing test case that will cause test failures, and minor code formatting inconsistencies. The core logic is sound.
  • web/src/plugins/logs/SearchBar.vue needs test updates in the corresponding spec file and formatting fixes.

Important Files Changed

File Analysis

FilenameScoreOverview
web/src/plugins/logs/SearchBar.vue3/5Added validations for stream selection and query existence before download operations. Contains style inconsistencies (indentation) and notification color using "positive" for informational "no data" messages. Existing tests will fail due to changed notification parameters.

Sequence Diagram

sequenceDiagram    participant User    participant SearchBar    participant searchService    participant Notification        Note over User,Notification: Download Flow with New Validations        User->>SearchBar: Click Download (CSV/JSON)    SearchBar->>SearchBar: downloadLogs(data, format)    alt data is empty or null        SearchBar->>Notification: "No data found to download"        Notification-->>User: Show notification    else data exists        SearchBar->>SearchBar: Convert to CSV/JSON        SearchBar-->>User: Download file    end        User->>SearchBar: Click Custom Range Download    SearchBar->>SearchBar: downloadRangeData()    alt customDownloadQueryObj.query missing        SearchBar->>Notification: "Please run a query first"        Notification-->>User: Show notification    else query exists        SearchBar->>searchService: search(query)        searchService-->>SearchBar: results        alt results.hits.length > 0            SearchBar->>SearchBar: downloadLogs(hits, format)        else no hits            SearchBar->>Notification: "No data found to download"        end    end        User->>SearchBar: Schedule Job    SearchBar->>SearchBar: addJobScheduler()    alt no stream selected        SearchBar->>Notification: "Please select a stream"        Notification-->>User: Show notification    else stream selected        SearchBar->>SearchBar: proceed with scheduling    end
Loading

Copy link
Contributor

@greptile-appsgreptile-appsbot left a comment

Choose a reason for hiding this comment

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

No files reviewed, 2 comments

Edit Code Review Agent Settings |Greptile

@nikhilsaikethenikhilsaikethe merged commit2c6c83b intomainDec 4, 2025
51 of 54 checks passed
@nikhilsaikethenikhilsaikethe deleted the fix/issue-9455 branchDecember 4, 2025 11:39
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@bjp232004bjp232004bjp232004 approved these changes

+1 more reviewer

@greptile-appsgreptile-apps[bot]greptile-apps[bot] left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

☢️ BugSomething isn't working

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@nikhilsaikethe@bjp232004

[8]ページ先頭

©2009-2025 Movatter.jp