Skip to content

fix: stable and correct ordering of agenda items - #4621

Merged
rjsparks merged 2 commits into
ietf-tools:mainfrom
rjsparks:agendastability
Oct 21, 2022
Merged

fix: stable and correct ordering of agenda items#4621
rjsparks merged 2 commits into
ietf-tools:mainfrom
rjsparks:agendastability

Conversation

@rjsparks

Copy link
Copy Markdown
Member

No description provided.

@codecov

codecov Bot commented Oct 20, 2022

Copy link
Copy Markdown

Codecov Report

Merging #4621 (5ad0e63) into main (cbf3431) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #4621   +/-   ##
=======================================
  Coverage   88.39%   88.39%           
=======================================
  Files         296      296           
  Lines       39741    39709   -32     
=======================================
- Hits        35130    35102   -28     
+ Misses       4611     4607    -4     
Impacted Files Coverage Δ
ietf/help/urls.py 100.00% <ø> (ø)
ietf/ietfauth/views.py 91.04% <ø> (+0.25%) ⬆️
ietf/doc/views_draft.py 91.94% <100.00%> (+0.04%) ⬆️
ietf/ietfauth/forms.py 95.10% <100.00%> (+0.26%) ⬆️
ietf/meeting/models.py 84.68% <100.00%> (+0.03%) ⬆️
ietf/person/models.py 91.91% <100.00%> (+0.75%) ⬆️
ietf/person/utils.py 86.98% <100.00%> (ø)
ietf/utils/text.py 85.36% <0.00%> (-0.61%) ⬇️
ietf/utils/mail.py 79.62% <0.00%> (-0.47%) ⬇️
ietf/submit/forms.py 82.70% <0.00%> (ø)
... and 1 more

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

Comment thread ietf/meeting/models.py
self._all_meeting_sessions_for_group_cache = sorted(sessions, key = lambda x: x.official_timeslotassignment().timeslot.time)
sessions = [s for s in add_event_info_to_session_qs(self.meeting.session_set.filter(group=self.group)) if s.official_timeslotassignment()]
for s in sessions:
s.ota = s.official_timeslotassignment()

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.

After approving, noticed that this means official_timeslotassignment() is called twice for each session. Is that cheap enough (or cached effectively by the ORM) not to worry about it? There are only a couple dozen sessions filtered out in the list comprehension so it'd probably be preferable to filter the list after caching s.ota.

@rjsparks
rjsparks merged commit 3c19190 into ietf-tools:main Oct 21, 2022
@rjsparks
rjsparks deleted the agendastability branch October 21, 2022 16:04
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Oct 25, 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.

2 participants