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

feat: pages left to ballot on #7516

Merged
merged 13 commits into from
Aug 9, 2024

Conversation

holloway
Copy link
Contributor

@holloway holloway commented Jun 10, 2024

Adds a 'pages left to ballot on' count for ADs for #6620

@holloway holloway changed the title feat: Ad pages left 6620 feat: pages left to ballot on Jun 10, 2024
@holloway holloway requested a review from rjsparks June 10, 2024 04:50
Copy link

codecov bot commented Jun 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

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

Additional details and impacted files
@@               Coverage Diff               @@
##             feat/ad-dash    #7516   +/-   ##
===============================================
  Coverage                ?   88.84%           
===============================================
  Files                   ?      295           
  Lines                   ?    41320           
  Branches                ?        0           
===============================================
  Hits                    ?    36709           
  Misses                  ?     4611           
  Partials                ?        0           

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

logged_in_request = self.client.get(url)
telechats = logged_in_request.context["telechats"]
self.assertGreater(len(telechats), 0, "Expected multiple telechats but received %d" % (len(telechats)))
self.assertEqual(telechats[0]["ad_pages_left_to_ballot_on"], 383, "Expected a specific number of pages left to ballot on for this AD '%s'" % (username))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The returned value telechats[0]["ad_pages_left_to_ballot_on"] varies on every test run due to (I'm guessing) race conditions in running tests. I tried moving lines 503-510 to the setUp but this didn't make a reproducible value. Thoughts anyone?

@@ -167,7 +166,7 @@ def setUp(self):
"conflrev": Document.objects.get(name="conflict-review-imaginary-irtf-submission"),
"statchg": Document.objects.get(name="status-change-imaginary-mid-review"),
"charter": Document.objects.filter(type="charter")[0],
}
}
Copy link
Member

Choose a reason for hiding this comment

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

stray whitespace?

@holloway holloway marked this pull request as ready for review June 24, 2024 20:14
@rjsparks rjsparks changed the base branch from main to feat/ad-dash August 9, 2024 16:27
@rjsparks rjsparks merged commit 414fcab into ietf-tools:feat/ad-dash Aug 9, 2024
9 checks passed
@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.

2 participants