Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak history #178

Merged
merged 5 commits into from
Aug 17, 2023
Merged

Tweak history #178

merged 5 commits into from
Aug 17, 2023

Conversation

maleadt
Copy link
Member

@maleadt maleadt commented Aug 15, 2023

Copy link
Contributor

@LilithHafner LilithHafner left a comment

Choose a reason for hiding this comment

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

Tooltips are a great addition. Good idea!

src/jobs/PkgEvalJob.jl Outdated Show resolved Hide resolved
src/jobs/PkgEvalJob.jl Outdated Show resolved Hide resolved
@maleadt
Copy link
Member Author

maleadt commented Aug 16, 2023

Example output: https://s3.amazonaws.com/julialang-reports/nanosoldier/pkgeval/by_date/2023-08/15/report.html

I should probably use span instead of p to avoid those ugly margins.

@maleadt
Copy link
Member Author

maleadt commented Aug 17, 2023

@maleadt maleadt merged commit 950e04d into master Aug 17, 2023
1 check passed
@maleadt maleadt deleted the tb/history_tweaks branch August 17, 2023 11:43
@@ -1114,14 +1121,14 @@ function printreport(io::IO, job::PkgEvalJob, results)
end
against_status = String(test.status_1)
print(io, "[$against_status]($against_log) | ")
print(io, "$(get(history, test.package, "missing")) |")
print(io, "<span class=\"history\">$(get(history, test.package, "missing"))</span> |")
Copy link
Contributor

Choose a reason for hiding this comment

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

Good solution!

Copy link
Member Author

Choose a reason for hiding this comment

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

Eh, it's not great, as it embeds HTML now in Markdown. I tried using the AttributeRule from CommonMark.jl, but that only allows attaching IDs to entities, not to plain text (so *history*{{#id}} would work, but then the history string would be emphasized). I couldn't find a way to create non-semantic group in Markdown, so and just ended up using HTML instead...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants