Closed Bug 674557 Opened 13 years ago Closed 13 years ago

events: fix devmo_calendar_reload error

Categories

(developer.mozilla.org Graveyard :: Wiki pages, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: groovecoder, Unassigned)

Details

(Whiteboard: c=events p=3 u=visitor)

Attachments

(1 file)

Cron <apache@mradm02> cd /data/devmostage/src/developer-stage9.mozilla.org/kuma; python26 manage.py cron devmo_calendar_reload > /dev/null Traceback (most recent call last): File "manage.py", line 49, in <module> execute_manager(settings) File "/data/dekiwiki-stage/src/developer-stage9.mozilla.org/kuma/vendor/src/django/django/core/management/__init__.py", line 438, in execute_manager utility.execute() File "/data/dekiwiki-stage/src/developer-stage9.mozilla.org/kuma/vendor/src/django/django/core/management/__init__.py", line 379, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/data/dekiwiki-stage/src/developer-stage9.mozilla.org/kuma/vendor/src/django/django/core/management/base.py", line 191, in run_from_argv self.execute(*args, **options.__dict__) File "/data/dekiwiki-stage/src/developer-stage9.mozilla.org/kuma/vendor/src/django/django/core/management/base.py", line 220, in execute output = self.handle(*args, **options) File "/data/dekiwiki-stage/src/developer-stage9.mozilla.org/kuma/vendor/src/django-cronjobs/cronjobs/management/commands/cron.py", line 38, in handle registered[script](*args) File "/data/dekiwiki-stage/src/developer-stage9.mozilla.org/kuma/apps/devmo/cron.py", line 9, in devmo_calendar_reload calendar.reload() File "/data/dekiwiki-stage/src/developer-stage9.mozilla.org/kuma/apps/devmo/models.py", line 190, in reload if event_line[1] != "Conference": IndexError: list index out of range
Summary: calendar: fix devmo_calendar_reload error → events: fix devmo_calendar_reload error
Luke: Is this a quick IT fix? If so, I would like to try to get this in for 0.9.9 next week.
I'm not sure exactly. It's more than IT. Something in the doc structure has changed. I'll have to spend some time debugging it.
Target Milestone: 1.0 → 0.9.9
Change the script to check for list index existence before reference.
Traceback (most recent call last): File "./manage.py", line 49, in <module> execute_manager(settings) File "/Users/lcrouch/Sites/kuma/kuma/vendor/src/django/django/core/management/__init__.py", line 438, in execute_manager utility.execute() File "/Users/lcrouch/Sites/kuma/kuma/vendor/src/django/django/core/management/__init__.py", line 379, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/Users/lcrouch/Sites/kuma/kuma/vendor/src/django/django/core/management/base.py", line 191, in run_from_argv self.execute(*args, **options.__dict__) File "/Users/lcrouch/Sites/kuma/kuma/vendor/src/django/django/core/management/base.py", line 220, in execute output = self.handle(*args, **options) File "/Users/lcrouch/Sites/kuma/kuma/vendor/src/django-cronjobs/cronjobs/management/commands/cron.py", line 38, in handle registered[script](*args) File "/Users/lcrouch/Sites/kuma/kuma/apps/devmo/cron.py", line 9, in devmo_calendar_reload calendar.reload() File "/Users/lcrouch/Sites/kuma/kuma/apps/devmo/models.py", line 215, in reload event.save() File "/Users/lcrouch/Sites/kuma/kuma/vendor/src/django/django/db/models/base.py", line 458, in save self.save_base(using=using, force_insert=force_insert, force_update=force_update) File "/Users/lcrouch/Sites/kuma/kuma/vendor/src/django/django/db/models/base.py", line 551, in save_base result = manager._insert(values, return_id=update_pk, using=using) File "/Users/lcrouch/Sites/kuma/kuma/vendor/src/django/django/db/models/manager.py", line 195, in _insert return insert_query(self.model, values, **kwargs) File "/Users/lcrouch/Sites/kuma/kuma/vendor/src/django/django/db/models/query.py", line 1524, in insert_query return query.get_compiler(using=using).execute_sql(return_id) File "/Users/lcrouch/Sites/kuma/kuma/vendor/src/django/django/db/models/sql/compiler.py", line 788, in execute_sql cursor = super(SQLInsertCompiler, self).execute_sql(None) File "/Users/lcrouch/Sites/kuma/kuma/vendor/src/django/django/db/models/sql/compiler.py", line 732, in execute_sql cursor.execute(sql, params) File "/Users/lcrouch/Sites/kuma/kuma/vendor/src/django/django/db/backends/util.py", line 15, in execute return self.cursor.execute(sql, params) File "/Users/lcrouch/Sites/kuma/kuma/vendor/src/django/django/db/backends/mysql/base.py", line 86, in execute return self.cursor.execute(query, args) File "/Users/lcrouch/python/kuma/lib/python2.6/site-packages/MySQLdb/cursors.py", line 175, in execute if not self._defer_warnings: self._warning_check() File "/Users/lcrouch/python/kuma/lib/python2.6/site-packages/MySQLdb/cursors.py", line 89, in _warning_check warn(w[-1], self.Warning, 3) _mysql_exceptions.Warning: Data truncated for column 'people' at row 1
quick-fixed the doc so bumping this to 1.0 to make the Real Fix™
Target Milestone: 0.9.9 → 1.0
Delete date column Make "people" and "description" fields unlimited char's Use end date to put events into "Past"
Whiteboard: c=events p=1 → c=events p=2
Also, error-check the map pins
Whiteboard: c=events p=2 → c=events p=3 u=visitor
Assignee: nobody → lcrouch
Exceptions are cleared during reload. Events will automatically move to "Past" section based on their date. No more "Cannot geocode this address." messages
Assignee: lcrouch → mozbugs.retornam
Status: NEW → RESOLVED
Closed: 13 years ago
Keywords: qawanted
Resolution: --- → FIXED
I broke other pages. Need to make a new 'events' js bundle.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee: mozbugs.retornam → lcrouch
Stormy, You can take a look at https://developer-stage9.mozilla.org/en-US/events to see the fixes/enhancements.
Assignee: lcrouch → mozbugs.retornam
Status: REOPENED → RESOLVED
Closed: 13 years ago13 years ago
Resolution: --- → FIXED
Attached image screenshot
re-opening as I the google map does not load. Luke,Stormy filed a bug to show the most recent past conference under the Past Conferences section and it looks like that has also not been implemented yet
Assignee: mozbugs.retornam → nobody
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee: nobody → server-ops
Component: Website → Server Operations: Web Content Push
Product: Mozilla Developer Network → mozilla.org
QA Contact: website → mrz
Target Milestone: 1.0 → ---
Version: MDN → other
Assignee: server-ops → nobody
Component: Server Operations: Web Content Push → Website
Product: mozilla.org → Mozilla Developer Network
QA Contact: mrz → website
Target Milestone: --- → 1.0
Version: other → MDN
Assignee: nobody → mozbugs.retornam
Status: REOPENED → RESOLVED
Closed: 13 years ago13 years ago
Keywords: qawanted
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Version: MDN → unspecified
Component: Website → Landing pages
Assignee: mozbugs.retornam → nobody
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: