Merge lp:~mhall119/summit/change-irclog-urls-1226818 into lp:summit

Proposed by Michael Hall
Status: Merged
Approved by: Chris Johnston
Approved revision: 565
Merged at revision: 563
Proposed branch: lp:~mhall119/summit/change-irclog-urls-1226818
Merge into: lp:summit
Diff against target: 96 lines (+46/-2)
5 files modified
summit/schedule/models/agendamodel.py (+8/-0)
summit/schedule/models/meetingmodel.py (+8/-0)
summit/schedule/templates/schedule/meeting.html (+1/-1)
summit/schedule/templates/schedule/virtual_meeting.html (+3/-1)
summit/schedule/tests/meeting_model.py (+26/-0)
To merge this branch: bzr merge lp:~mhall119/summit/change-irclog-urls-1226818
Reviewer Review Type Date Requested Status
Chris Johnston Approve
Review via email: mp+194050@code.launchpad.net

Commit message

Point IRC links and iframes to irclogs.ubuntu.com after the end of a summit

Description of the change

Point IRC links and iframes to irclogs.ubuntu.com after the end of a summit

To post a comment you must log in.
Revision history for this message
Chris Johnston (cjohnston) wrote :
Download full text (5.1 KiB)

Do any of the older summits still have valid ubottu logs? If so, do we want
to break the old links?
On Nov 5, 2013 9:33 PM, "Michael Hall" <email address hidden> wrote:

> Michael Hall has proposed merging
> lp:~mhall119/summit/change-irclog-urls-1226818 into lp:summit.
>
> Commit message:
> Point IRC links and iframes to irclogs.ubuntu.com after the end of a
> summit
>
> Requested reviews:
> Summit Hackers (summit-hackers)
> Related bugs:
> Bug #1226818 in Summit: "IRC Logs"
> https://bugs.launchpad.net/summit/+bug/1226818
>
> For more details, see:
>
> https://code.launchpad.net/~mhall119/summit/change-irclog-urls-1226818/+merge/194050
>
> Point IRC links and iframes to irclogs.ubuntu.com after the end of a
> summit
> --
>
> https://code.launchpad.net/~mhall119/summit/change-irclog-urls-1226818/+merge/194050
> Your team Summit Hackers is requested to review the proposed merge of
> lp:~mhall119/summit/change-irclog-urls-1226818 into lp:summit.
>
> === modified file 'summit/schedule/models/agendamodel.py'
> --- summit/schedule/models/agendamodel.py 2013-02-26 19:31:21 +0000
> +++ summit/schedule/models/agendamodel.py 2013-11-06 02:32:28 +0000
> @@ -48,3 +48,11 @@
>
> def __unicode__(self):
> return "%s" % self.meeting
> +
> + @property
> + def irc_log(self):
> + return 'http://irclogs.ubuntu.com/%s/%%23%s.html#t%s' % (
> + self.slot.start_utc.strftime('%Y/%m/%d'),
> + self.room.irc_channel,
> + self.slot.start_utc.strftime('%H:%M'),
> + )
>
> === modified file 'summit/schedule/models/meetingmodel.py'
> --- summit/schedule/models/meetingmodel.py 2013-11-05 20:56:44 +0000
> +++ summit/schedule/models/meetingmodel.py 2013-11-06 02:32:28 +0000
> @@ -717,6 +717,14 @@
> return False
>
> @property
> + def irc_logs(self):
> + logs = list()
> + for agenda in self.agenda_set.all():
> + logs.append(agenda.irc_log)
> + return logs
> +
> +
> + @property
> def current(self):
> for agenda in self.agenda_set.all():
> if agenda.slot.current:
>
> === modified file 'summit/schedule/templates/schedule/meeting.html'
> --- summit/schedule/templates/schedule/meeting.html 2013-05-14
> 02:30:50 +0000
> +++ summit/schedule/templates/schedule/meeting.html 2013-11-06
> 02:32:28 +0000
> @@ -143,7 +143,7 @@
> {% for ai in agenda_items %}
> {% if ai.room.irc_channel %}
> {% if summit.state == 'public' %}
> - <li><a href="
> http://ubottu.com/uds-logs/archives/{{summit.name}}/%23{{ai.room.irc_channel}}.log">IRC
> Logs for #{{ai.room.irc_channel}}</a></li>
> + <li><a href="{{ai.irc_log}}">IRC Logs for
> #{{ai.room.irc_channel}}</a></li>
> {% else %}
> <li><a href="{{ai.room.webchat_url}}">IRC Channel:
> #{{ai.room.irc_channel}}</a></li>
> {% endif %}
>
> === modified file 'summit/schedule/templates/schedule/virtual_meeting.html'
> --- summit/schedule/templates/schedule/virtual_meeting.html 2013-11-05
> 20:56:44 +0000
> +++ summit/schedule/templa...

Read more...

Revision history for this message
Michael Hall (mhall119) wrote :

The last one that might have valid ubuttu logs would be uds-r a year ago, everything else will be on irclogs.u.c, I think it's okay if we don't link to those older ones

Revision history for this message
Chris Johnston (cjohnston) :
review: Approve
Revision history for this message
Chris Johnston (cjohnston) wrote :

The `tree_dir` option for the target branch is not a lightweight checkout. Please ask a project administrator to resolve the issue, and try again.

Revision history for this message
Chris Johnston (cjohnston) wrote :

The `tree_dir` option for the target branch is not a lightweight checkout. Please ask a project administrator to resolve the issue, and try again.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'summit/schedule/models/agendamodel.py'
--- summit/schedule/models/agendamodel.py 2013-02-26 19:31:21 +0000
+++ summit/schedule/models/agendamodel.py 2013-11-06 02:32:28 +0000
@@ -48,3 +48,11 @@
4848
49 def __unicode__(self):49 def __unicode__(self):
50 return "%s" % self.meeting50 return "%s" % self.meeting
51
52 @property
53 def irc_log(self):
54 return 'http://irclogs.ubuntu.com/%s/%%23%s.html#t%s' % (
55 self.slot.start_utc.strftime('%Y/%m/%d'),
56 self.room.irc_channel,
57 self.slot.start_utc.strftime('%H:%M'),
58 )
5159
=== modified file 'summit/schedule/models/meetingmodel.py'
--- summit/schedule/models/meetingmodel.py 2013-11-05 20:56:44 +0000
+++ summit/schedule/models/meetingmodel.py 2013-11-06 02:32:28 +0000
@@ -717,6 +717,14 @@
717 return False717 return False
718718
719 @property719 @property
720 def irc_logs(self):
721 logs = list()
722 for agenda in self.agenda_set.all():
723 logs.append(agenda.irc_log)
724 return logs
725
726
727 @property
720 def current(self):728 def current(self):
721 for agenda in self.agenda_set.all():729 for agenda in self.agenda_set.all():
722 if agenda.slot.current:730 if agenda.slot.current:
723731
=== modified file 'summit/schedule/templates/schedule/meeting.html'
--- summit/schedule/templates/schedule/meeting.html 2013-05-14 02:30:50 +0000
+++ summit/schedule/templates/schedule/meeting.html 2013-11-06 02:32:28 +0000
@@ -143,7 +143,7 @@
143 {% for ai in agenda_items %}143 {% for ai in agenda_items %}
144 {% if ai.room.irc_channel %}144 {% if ai.room.irc_channel %}
145 {% if summit.state == 'public' %}145 {% if summit.state == 'public' %}
146 <li><a href="http://ubottu.com/uds-logs/archives/{{summit.name}}/%23{{ai.room.irc_channel}}.log">IRC Logs for #{{ai.room.irc_channel}}</a></li>146 <li><a href="{{ai.irc_log}}">IRC Logs for #{{ai.room.irc_channel}}</a></li>
147 {% else %}147 {% else %}
148 <li><a href="{{ai.room.webchat_url}}">IRC Channel: #{{ai.room.irc_channel}}</a></li>148 <li><a href="{{ai.room.webchat_url}}">IRC Channel: #{{ai.room.irc_channel}}</a></li>
149 {% endif %}149 {% endif %}
150150
=== modified file 'summit/schedule/templates/schedule/virtual_meeting.html'
--- summit/schedule/templates/schedule/virtual_meeting.html 2013-11-05 20:56:44 +0000
+++ summit/schedule/templates/schedule/virtual_meeting.html 2013-11-06 02:32:28 +0000
@@ -126,7 +126,9 @@
126 </div>126 </div>
127 <div id="chat">127 <div id="chat">
128 {% if summit.state == 'public' %}128 {% if summit.state == 'public' %}
129 <iframe style="width:100%; border:2px solid #000000" src="http://ubottu.com/uds-logs/archives/{{ summit.name }}/%23{% for ai in agenda_items %}{{ ai.room.irc_channel }}{% endfor %}.log" height="395"></iframe>129 {% for irc_log in meeting.irc_logs %}
130 <iframe style="width:100%; border:2px solid #000000" src="{{irc_log}}" height="395"></iframe>
131 {% endfor %}
130 {% else %}132 {% else %}
131 {% for ai in agenda_items %}133 {% for ai in agenda_items %}
132 <iframe style="width:100%; border:2px solid #000000" src="{{ ai.room.webchat_url}}" height="395"></iframe>134 <iframe style="width:100%; border:2px solid #000000" src="{{ ai.room.webchat_url}}" height="395"></iframe>
133135
=== modified file 'summit/schedule/tests/meeting_model.py'
--- summit/schedule/tests/meeting_model.py 2013-11-05 20:56:44 +0000
+++ summit/schedule/tests/meeting_model.py 2013-11-06 02:32:28 +0000
@@ -851,3 +851,29 @@
851 slot.end_utc = now + one_hour851 slot.end_utc = now + one_hour
852 slot.save()852 slot.save()
853 self.assertTrue(self.meeting.current)853 self.assertTrue(self.meeting.current)
854
855 def test_irc_log_urls(self):
856 now = datetime.datetime.utcnow()
857 one_hour = datetime.timedelta(0, 3600)
858
859 slot = factory.make_one(
860 Slot,
861 start_utc=now + one_hour,
862 end_utc=now + one_hour + one_hour,
863 type='open',
864 )
865 room = factory.make_one(
866 Room,
867 summit=self.summit,
868 irc_channel='test-irc',
869 )
870 agenda = factory.make_one(Agenda, meeting=self.meeting, slot=slot, room=room)
871
872 check_url = 'http://irclogs.ubuntu.com/%s/%%23%s.html#t%s' % (
873 agenda.slot.start_utc.strftime('%Y/%m/%d'),
874 agenda.room.irc_channel,
875 agenda.slot.start_utc.strftime('%H:%M'),
876 )
877 self.assertEqual(check_url, agenda.irc_log)
878 self.assertEqual(check_url, self.meeting.irc_logs[0])
879

Subscribers

People subscribed via source and target branches