Added a switchover date (currently July 6th) for Etherpad to CodiMD use, and modified views and templates accordingly.

- Legacy-Id: 18063
This commit is contained in:
Henrik Levkowetz 2020-06-25 16:35:40 +00:00
parent 6a38234b0a
commit 729b52fb36
5 changed files with 80 additions and 7 deletions

View file

@ -1,3 +1,55 @@
ietfdb (7.5.0) ietf; urgency=medium
**Django 2.1 upgrade and bugfixes**
* Merged in [18036] from rjsparks@nostrum.com:
Tweaked the title of the page used to complete reviews. Fixes #2767.
* Merged in [18037] from rjsparks@nostrum.com:
Removed abandoned charters from any future telechats. Fixes #3003.
* Separated the session cache from the default cache, using slightly
different settings, in order to not drop sessions when a new release is
deployed.
* Added a default logger and level for 'django.security' log items, to
route them to our regular syslog. This will give us more information about
failures to retrieve session info, and also things like 404 responses,
which will already be captured in the apache log but with less info. May
need revisiting if it proves to cause excessive logging.
* Fixed a problem with the code to update a missing person record
association in a meeting registration record.
* Fixed an issue in a test function that could occasionally fail
incorrectly.
* Removed the wsgi.py warning about starting without virtualenv; this is
normal under Py3.
* Fixed a problem with the handling of multiple registrations for the
same person and meeting in api_new_meeting_registration().
Django 2.1 transition changes:
* Changed NullBoleanField() to BooleanField(null=True), according to the
2.1 upgrade recommendations.
* Changed the removed django.contrib.auth.views.logout to LogoutView.
* Adjusted to the changed signature of admin.utils.get_deleted_objects()
* Adjusted the code to the attribute name change from ._size to .size in
file upload objects.
* Updated the requirements for Django 2.1
* The .render() method of widgets now must accept an additional keyword
argument 'renderer'; adjusted the code accordingly (including a library
patch -- pull request also submitted).
-- Henrik Levkowetz <henrik@levkowetz.com> 24 Jun 2020 20:45:14 +0000
ietfdb (7.4.0) ietf; urgency=medium
**Test suite and OpenID improvements**

View file

@ -957,6 +957,7 @@ def agenda(request, num=None, name=None, base=None, ext=None, owner=None, utc=""
"group_parents": group_parents,
"now": datetime.datetime.now(),
"is_current_meeting": bool(num == get_current_ietf_meeting_num()),
"use_codimd": True if meeting.date>=settings.MEETING_USES_CODIMD_DATE else False,
}, content_type=mimetype[ext])
# If the agenda is for the current meeting, only cache for 2 minutes
@ -1625,6 +1626,7 @@ def session_details(request, num, acronym):
'can_view_request': can_view_request,
'thisweek': datetime.date.today()-datetime.timedelta(days=7),
'now': datetime.datetime.now(),
'use_codimd': True if meeting.date>=settings.MEETING_USES_CODIMD_DATE else False,
})
class SessionDraftsForm(forms.Form):
@ -2733,7 +2735,8 @@ def upcoming(request):
'menu_actions': actions,
'menu_entries': menu_entries,
'selected_menu_entry': selected_menu_entry,
'now': datetime.datetime.now()
'now': datetime.datetime.now(),
'use_codimd': True if datetime.date.today()>=settings.MEETING_USES_CODIMD_DATE else False,
})

View file

@ -905,6 +905,8 @@ INTERNET_DRAFT_DAYS_TO_EXPIRE = 185
FLOORPLAN_MEDIA_DIR = 'floor'
FLOORPLAN_DIR = os.path.join(MEDIA_ROOT, FLOORPLAN_MEDIA_DIR)
MEETING_USES_CODIMD_DATE = datetime.date(2020,7,6)
# === OpenID Connect Provide Related Settings ==================================
# Used by django-oidc-provider

View file

@ -14,10 +14,18 @@
<a class="" href="/meeting/{{ meeting.number }}/agenda/{{session.historic_group.acronym}}-drafts.pdf" title="Download meeting materials as PDF file"><span class="fa fa-fw fa-file-pdf-o"></span></a>
{% endif %}
<!-- etherpad -->
{% if item.timeslot.type.slug == 'plenary' %}
<a class="" href="https://etherpad.ietf.org:9009/p/notes-ietf-{{ meeting.number }}-plenary?useMonospaceFont=true" title="Etherpad for note-takers"><span class="fa fa-fw fa-edit"></span></a>
{% if use_codimd %}
{% if item.timeslot.type.slug == 'plenary' %}
<a class="" href="https://codimd.ietf.org/notes-ietf-{{ meeting.number }}-plenary title="Etherpad for note-takers"><span class="fa fa-fw fa-edit"></span></a>
{% else %}
<a class="" href="https://codimd.ietf.org/notes-ietf-{{ meeting.number }}-{{session.historic_group.acronym}}" title="Etherpad for note-takers"><span class="fa fa-fw fa-edit"></span></a>
{% endif %}
{% else %}
<a class="" href="https://etherpad.ietf.org:9009/p/notes-ietf-{{ meeting.number }}-{{session.historic_group.acronym}}?useMonospaceFont=true" title="Etherpad for note-takers"><span class="fa fa-fw fa-edit"></span></a>
{% if item.timeslot.type.slug == 'plenary' %}
<a class="" href="https://etherpad.ietf.org:9009/p/notes-ietf-{{ meeting.number }}-plenary?useMonospaceFont=true" title="Etherpad for note-takers"><span class="fa fa-fw fa-edit"></span></a>
{% else %}
<a class="" href="https://etherpad.ietf.org:9009/p/notes-ietf-{{ meeting.number }}-{{session.historic_group.acronym}}?useMonospaceFont=true" title="Etherpad for note-takers"><span class="fa fa-fw fa-edit"></span></a>
{% endif %}
{% endif %}
{# show stream buttons up till end of session, then show archive buttons #}

View file

@ -16,10 +16,18 @@
{% endif %}
<!-- etherpad -->
{% if item.timeslot.type.slug == 'plenary' %}
<a class="" href="https://etherpad.ietf.org:9009/p/notes-ietf-{{ meeting.number }}-plenary?useMonospaceFont=true" title="Etherpad for note-takers"><span class="fa fa-fw fa-edit"></span></a>
{% if use_codimd %}
{% if item.timeslot.type.slug == 'plenary' %}
<a class="" href="https://codimd.ietf.org/notes-ietf-{{ meeting.number }}-plenary title="Etherpad for note-takers"><span class="fa fa-fw fa-edit"></span></a>
{% else %}
<a class="" href="https://codimd.ietf.org/notes-ietf-{{ meeting.number }}-{{session.historic_group.acronym}}" title="Etherpad for note-takers"><span class="fa fa-fw fa-edit"></span></a>
{% endif %}
{% else %}
<a class="" href="https://etherpad.ietf.org:9009/p/notes-ietf-{{ meeting.number }}-{{session.historic_group.acronym}}?useMonospaceFont=true" title="Etherpad for note-takers"><span class="fa fa-fw fa-edit"></span></a>
{% if item.timeslot.type.slug == 'plenary' %}
<a class="" href="https://etherpad.ietf.org:9009/p/notes-ietf-{{ meeting.number }}-plenary?useMonospaceFont=true" title="Etherpad for note-takers"><span class="fa fa-fw fa-edit"></span></a>
{% else %}
<a class="" href="https://etherpad.ietf.org:9009/p/notes-ietf-{{ meeting.number }}-{{session.historic_group.acronym}}?useMonospaceFont=true" title="Etherpad for note-takers"><span class="fa fa-fw fa-edit"></span></a>
{% endif %}
{% endif %}
{# show stream buttons up till end of session, then show archive buttons #}