forgejo/web_src/js/components
Andreas Ahlenstorf ac9c4282bd
Some checks are pending
/ release (push) Waiting to run
testing-integration / test-unit (push) Waiting to run
testing-integration / test-sqlite (push) Waiting to run
testing-integration / test-mariadb (v10.6) (push) Waiting to run
testing-integration / test-mariadb (v11.8) (push) Waiting to run
testing / backend-checks (push) Waiting to run
testing / frontend-checks (push) Waiting to run
testing / test-unit (push) Blocked by required conditions
testing / test-e2e (push) Blocked by required conditions
testing / test-remote-cacher (redis) (push) Blocked by required conditions
testing / test-remote-cacher (valkey) (push) Blocked by required conditions
testing / test-remote-cacher (garnet) (push) Blocked by required conditions
testing / test-remote-cacher (redict) (push) Blocked by required conditions
testing / test-mysql (push) Blocked by required conditions
testing / test-pgsql (push) Blocked by required conditions
testing / test-sqlite (push) Blocked by required conditions
testing / security-check (push) Blocked by required conditions
fix: download logs of currently displayed Action run attempt (#10225)
While the page `/{owner}/{repo}/actions/runs/{run}/jobs/{job}/attempt/{attempt}` offers a button to download the logs of the currently displayed Action run attempt, it always sent the logs of the last attempt. For example, if there were two attempts, it was impossible to download the logs of the first attempt. With this fix, the user receives the logs of the attempt currently being displayed.

Users that have the page open while Forgejo is being upgraded will not be able to download logs until they have refreshed the page.

Fixes https://codeberg.org/forgejo/forgejo/issues/10221.

## Checklist

The [contributor guide](https://forgejo.org/docs/next/contributor/) contains information that will be helpful to first time contributors. There also are a few [conditions for merging Pull Requests in Forgejo repositories](https://codeberg.org/forgejo/governance/src/branch/main/PullRequestsAgreement.md). You are also welcome to join the [Forgejo development chatroom](https://matrix.to/#/#forgejo-development:matrix.org).

### Tests

- I added test coverage for Go changes...
  - [ ] in their respective `*_test.go` for unit tests.
  - [x] in the `tests/integration` directory if it involves interactions with a live Forgejo server.
- I added test coverage for JavaScript changes...
  - [ ] in `web_src/js/*.test.js` if it can be unit tested.
  - [ ] in `tests/e2e/*.test.e2e.js` if it requires interactions with a live Forgejo server (see also the [developer guide for JavaScript testing](https://codeberg.org/forgejo/forgejo/src/branch/forgejo/tests/e2e/README.md#end-to-end-tests)).

### Documentation

- [ ] I created a pull request [to the documentation](https://codeberg.org/forgejo/docs) to explain to Forgejo users how to use this change.
- [ ] I did not document these changes and I do not expect someone else to do it.

### Release notes

- [ ] I do not want this change to show in the release notes.
- [ ] I want the title to show in the release notes with a link to this pull request.
- [ ] I want the content of the `release-notes/<pull request number>.md` to be be used for the release notes instead of the title.

<!--start release-notes-assistant-->

## Release notes
<!--URL:https://codeberg.org/forgejo/forgejo-->
- Bug fixes
  - [PR](https://codeberg.org/forgejo/forgejo/pulls/10225): <!--number 10225 --><!--line 0 --><!--description ZG93bmxvYWQgbG9ncyBvZiBjdXJyZW50bHkgZGlzcGxheWVkIEFjdGlvbiBydW4gYXR0ZW1wdA==-->download logs of currently displayed Action run attempt<!--description-->
<!--end release-notes-assistant-->

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/10225
Reviewed-by: Mathieu Fenniak <mfenniak@noreply.codeberg.org>
Co-authored-by: Andreas Ahlenstorf <andreas@ahlenstorf.ch>
Co-committed-by: Andreas Ahlenstorf <andreas@ahlenstorf.ch>
2025-11-25 04:54:29 +01:00
..
ActionRunStatus.vue feat: ability to view previous logs for Actions runs that have been retried (#9017) 2025-09-04 22:46:22 +02:00
ActivityHeatmap.vue Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
ContextPopup.test.js ui: update pull request icons 2024-08-22 17:06:10 +02:00
ContextPopup.vue ui: update pull request icons (#4455) 2024-07-16 14:38:46 +00:00
DashboardRepoList.vue feat(ui): lazy-load all Vue components (#9444) 2025-09-28 05:40:40 +02:00
DiffCommitSelector.vue chore: remove not working PREFERRED_TIMESTAMP_TENSE setting (#9490) 2025-10-01 15:16:01 +02:00
DiffFileTree.vue Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
DiffFileTreeItem.vue Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
PullRequestMergeForm.test.js fix: Don't double escape delete branch text 2024-10-19 22:05:35 +02:00
PullRequestMergeForm.vue feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
RepoActionView.test.js feat: display detailed action run diagnostics (#9966) 2025-11-11 04:39:02 +01:00
RepoActionView.vue fix: download logs of currently displayed Action run attempt (#10225) 2025-11-25 04:54:29 +01:00
RepoActivityTopAuthors.vue feat(ui): lazy-load all Vue components (#9444) 2025-09-28 05:40:40 +02:00
RepoBranchTagSelector.vue feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
RepoCodeFrequency.vue Have time.js use UTC-related getters/setters (#30857) 2024-05-12 20:03:09 +02:00
RepoContributors.test.js fix: compare week as numbers and not as strings (#8882) 2025-08-13 22:28:12 +02:00
RepoContributors.vue fix: compare week as numbers and not as strings (#8882) 2025-08-13 22:28:12 +02:00
RepoRecentCommits.vue Have time.js use UTC-related getters/setters (#30857) 2024-05-12 20:03:09 +02:00
ScopedAccessTokenSelector.vue fix(ui): make "Token name"-input a real required-field (#8877) 2025-10-01 12:07:30 +02:00