Skip to content

fix: Fix layout issue in ballot modals on narrow screens#4911

Merged
rjsparks merged 4 commits into
ietf-tools:mainfrom
larseggert:fix-4902
Dec 16, 2022
Merged

fix: Fix layout issue in ballot modals on narrow screens#4911
rjsparks merged 4 commits into
ietf-tools:mainfrom
larseggert:fix-4902

Conversation

@larseggert

Copy link
Copy Markdown
Collaborator

Fixes #4902

@codecov

codecov Bot commented Dec 16, 2022

Copy link
Copy Markdown

Codecov Report

Merging #4911 (f56f3ee) into main (bc1cba1) will decrease coverage by 0.01%.
The diff coverage is 80.00%.

@@            Coverage Diff             @@
##             main    #4911      +/-   ##
==========================================
- Coverage   88.47%   88.46%   -0.02%     
==========================================
  Files         296      296              
  Lines       39795    39802       +7     
==========================================
+ Hits        35208    35210       +2     
- Misses       4587     4592       +5     
Impacted Files Coverage Δ
ietf/doc/utils.py 88.05% <77.77%> (-0.16%) ⬇️
ietf/doc/templatetags/ballot_icon.py 84.82% <100.00%> (ø)
ietf/doc/views_search.py 88.81% <0.00%> (-0.83%) ⬇️
ietf/nomcom/utils.py 91.30% <0.00%> (-0.25%) ⬇️
ietf/utils/mail.py 79.85% <0.00%> (+0.23%) ⬆️
ietf/person/utils.py 86.98% <0.00%> (+0.59%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@larseggert

Copy link
Copy Markdown
Collaborator Author

Have been trying to reproduce this CI fail locally, but no luck: https://github.com/ietf-tools/datatracker/actions/runs/3713251155/jobs/6295685280#step:6:27

@rjsparks

Copy link
Copy Markdown
Member

Looks like it was a transient - bet it was name related, but not enough output to say for sure. It passed when I just reran the failed jobs.

@rjsparks rjsparks merged commit ad5cf0b into ietf-tools:main Dec 16, 2022
@larseggert larseggert deleted the fix-4902 branch December 16, 2022 20:45
@larseggert

Copy link
Copy Markdown
Collaborator Author

@rjsparks here is a repeat where it failed, printing out post_data before and after modification. Don't see anything obvious wrong:

System check identified no issues (1 silenced).
{'basis': 'reorder the authors', 'author-TOTAL_FORMS': 4, 'author-INITIAL_FORMS': '3', 'author-MIN_NUM_FORMS': '0', 'author-MAX_NUM_FORMS': '1000', 'author-__prefix__-person': '', 'author-__prefix__-email': '', 'author-__prefix__-affiliation': '', 'author-__prefix__-country': '', 'author-__prefix__-ORDER': '', 'author-0-person': '32', 'author-0-email': 'brett.lambe_1@key.com', 'author-0-affiliation': 'Dixon-Johnson', 'author-0-country': 'Falkland Islands (Malvinas)', 'author-0-ORDER': '0', 'author-1-person': '33', 'author-1-email': 'monica.soto_2@zimmerman.net', 'author-1-affiliation': 'Reed-Gonzalez', 'author-1-country': 'Faroe Islands', 'author-1-ORDER': '1', 'author-2-person': '34', 'author-2-email': 'brenda.simmons_3@newton.com', 'author-2-affiliation': 'Snyder, Leon and Kelley', 'author-2-country': 'Chile', 'author-2-ORDER': '2'}
{'basis': 'reorder the authors', 'author-TOTAL_FORMS': 4, 'author-INITIAL_FORMS': '3', 'author-MIN_NUM_FORMS': '0', 'author-MAX_NUM_FORMS': '1000', 'author-__prefix__-person': '', 'author-__prefix__-email': '', 'author-__prefix__-affiliation': '', 'author-__prefix__-country': '', 'author-__prefix__-ORDER': '', 'author-0-person': '32', 'author-0-email': 'carolyn.hill_4@moore.com', 'author-0-affiliation': 'Dixon-Johnson', 'author-0-country': 'Falkland Islands (Malvinas)', 'author-0-ORDER': '0', 'author-1-person': '33', 'author-1-email': 'monica.soto_2@zimmerman.net', 'author-1-affiliation': 'University of Nowhere', 'author-1-country': 'Faroe Islands', 'author-1-ORDER': '1', 'author-2-person': '34', 'author-2-email': 'brenda.simmons_3@newton.com', 'author-2-affiliation': 'Snyder, Leon and Kelley', 'author-2-country': 'Chile', 'author-2-ORDER': '2'}
b''
F
======================================================================
FAIL: test_edit_authors_edit_fields (ietf.doc.tests.DocDraftTestCase.test_edit_authors_edit_fields)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/workspace/ietf/doc/tests.py", line 1332, in test_edit_authors_edit_fields
    self.assertEqual(EditedAuthorsDocEvent.objects.count(), events_before + 3)
AssertionError: 2 != 3

@jennifer-richards

Copy link
Copy Markdown
Member

Only two authors' data changed. Using the data you posted,

>>> {k: (before[k], after[k]) for k in before if before[k] != after[k]}
{'author-0-email': ('brett.lambe_1@key.com', 'carolyn.hill_4@moore.com'), 'author-1-affiliation': ('Reed-Gonzalez', 'University of Nowhere')}

I think the 3rd change is setting author-2-country='Chile' but it looks like it was already Chile.

@jennifer-richards

Copy link
Copy Markdown
Member

(Working on a PR to fix that)

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Dec 23, 2022
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.

Wrapping issues in ballot modal on narrow screens

3 participants