Skip to content

feat: IESG table column 'Pre pubreq'#7462

Merged
rjsparks merged 12 commits intoietf-tools:feat/ad-dashfrom
holloway:total-ids-4577
Aug 9, 2024
Merged

feat: IESG table column 'Pre pubreq'#7462
rjsparks merged 12 commits intoietf-tools:feat/ad-dashfrom
holloway:total-ids-4577

Conversation

@holloway
Copy link
Copy Markdown
Contributor

Screenshot from 2024-05-24 08-42-39

Fixes #4577

@codecov
Copy link
Copy Markdown

codecov Bot commented May 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (feat/ad-dash@ff633dc). Learn more about missing BASE report.

Additional details and impacted files
@@               Coverage Diff               @@
##             feat/ad-dash    #7462   +/-   ##
===============================================
  Coverage                ?   88.79%           
===============================================
  Files                   ?      303           
  Lines                   ?    41412           
  Branches                ?        0           
===============================================
  Hits                    ?    36771           
  Misses                  ?     4641           
  Partials                ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment thread ietf/templates/doc/ad_list.html Outdated
Comment thread ietf/templates/doc/ad_list.html Outdated
Copy link
Copy Markdown
Member

@jennifer-richards jennifer-richards left a comment

Choose a reason for hiding this comment

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

One inline comment. Also, as a general matter, it'd be nice to keep chipping away at moving javascript out of inline <script> tags and into their own js files. It's not exactly on-topic for this PR, though.

Comment thread ietf/templates/doc/ad_list.html Outdated
cell
) => {
const key = cell.dataset.sum
const value = parseFloat(cell.textContent)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

May want to check more aggressively that cell.textContent is a float given parseFloat("1NaN") = 1.0. It's a little paranoid since these cells are under control, but it might help someone who unwittingly breaks the structure in a future change. (Could perhaps be a test rather than a run-time check if this gets covered by tests.)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

So something like this?

function safeParseFloat(text) {
        const trimNumber = text.trim()
        if(!trimNumber.match(/^[0-9.]+$/)) {
            console.warn(`Unable to parse "${trimNumber}" as a number.`)
            return Number.NaN
        }
        return parseFloat(text)
}

I think having tests for this is going to be hard with inline scripts but I guess I could put it into Playwright

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'll try refactoring this JS into a separate script in the next PR.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

That would do it, though we could also do it on the Django side just looking at the rendered template. That might be easier to turn into a test failure without having to add Playwright coverage or resort to console.warn.

Comment thread playwright/tests-legacy/docs/ad.spec.js Outdated
const viewports = require('../../helpers/viewports')

// ====================================================================
// NOMCOM - EXPERTISE
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Wrong title

@holloway holloway marked this pull request as ready for review June 6, 2024 20:53
@holloway holloway requested a review from NGPixel June 6, 2024 20:53
@rjsparks rjsparks changed the base branch from main to feat/ad-dash August 9, 2024 16:29
@rjsparks rjsparks merged commit c4b12d6 into ietf-tools:feat/ad-dash Aug 9, 2024
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Total Number of I-Ds to the I-D State Count table in the AD Dashboard

5 participants