Skip to content

Conversation

@ianyc
Copy link
Contributor

@ianyc ianyc commented Mar 13, 2025

Fixed the bug mentioned in #22330 where the value of field 'Show logs since a given time' did not affect the initial content of the log. The root cause of this bug was that the sinceSeconds field was always set to 0 when calling the backend API: /api/v1/applications/{name}/logs, resulting in no change in the API response regardless of the selection of field 'Show logs since a given time'.

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this does not need to be in the release notes.
  • The title of the PR states what changed and the related issues number (used for the release note).
  • The title of the PR conforms to the Toolchain Guide
  • I've included "Closes [ISSUE #]" or "Fixes [ISSUE #]" in the description to automatically close the associated issue.
  • I've updated both the CLI and UI to expose my feature, or I plan to submit a second PR with them.
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • I have signed off all my commits as required by DCO
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My build is green (troubleshooting builds).
  • My new feature complies with the feature status guidelines.
  • I have added a brief description of why this PR is necessary and/or what this PR solves.
  • Optional. My organization is added to USERS.md.
  • Optional. For bug fixes, I've indicated what older releases this fix should be cherry-picked into (this may or may not happen depending on risk/complexity).

Closes #22330

@ianyc ianyc requested a review from a team as a code owner March 13, 2025 07:05
@bunnyshell
Copy link

bunnyshell bot commented Mar 13, 2025

❌ Preview Environment deleted from Bunnyshell

Available commands (reply to this comment):

  • 🚀 /bns:deploy to deploy the environment

@ianyc ianyc marked this pull request as draft March 13, 2025 07:05
@ianyc ianyc marked this pull request as ready for review March 13, 2025 07:10
@ianyc ianyc changed the title fix UI log viewer 'Show logs since a given time' filed has no effect bug #22330 fix: UI log viewer 'Show logs since a given time' filed has no effect bug #22330 Mar 13, 2025
@andrii-korotkov-verkada andrii-korotkov-verkada added the ready-for-review An approver should give a final review and merge the PR label Mar 15, 2025
@github-project-automation github-project-automation bot moved this to Ready for final review in Argo CD Review Mar 15, 2025
@agaudreault agaudreault merged commit 6340e7e into argoproj:master Mar 20, 2025
28 of 29 checks passed
PaulSonOfLars pushed a commit to PaulSonOfLars/argo-cd that referenced this pull request Mar 22, 2025
Hapshanko pushed a commit to Hapshanko/argo-cd that referenced this pull request Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review An approver should give a final review and merge the PR

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

UI log viewer bug: Show logs since a given time function didn't work

3 participants