After updating to Discourse 3.2.0.beta4-dev with the latest Events version (0.2.11), the Calendar and Agenda views in my Discourse Events stopped rendering.
I’m seeing deprecation events in the console due to the usage of render, renderTemplate, registerUnbound, controller:navigation/category and controler:discovery/topics:
I’m in the progress of upgrading our Discourse from 2.4 to (hopefully) 3.2 and we use the Events plugin a lot. (in the meantime i’ve rolled back to 3.1.3 while i’m figuring out the plugin, but would love to go live with the latest version)
Well, it isn’t that simple. The Pavilion plugin isn’t legacy - just hasn’t yet been updated to work nicely with the latest Discourse version.
And the ‘New Discourse Plugin’ isn’t really - it is just the official one. It lacks a lot of functionality, but has been actively improved and maintained / supported by the Discourse team over the past year very effectively.
Migration over
Not a direct way.
But you have a lot of events to move over, you could try an indirect method via the calendar connection functionality of the Pavilion plugin itself if you like. For example:
Subscribe to the calendar for the whole site from a typical email calendar account (e.g. Google Calendar)
In the Google Calendar app, clone the events into a new calendar.
Choose to represent this calendar via the official plugin
This is just theoretical, but should work. You might want to try it on a staging server first though as it will create a whole bunch of posts. And you won’t be able to preserve any replies (although you could move them over manually).
However, this has led to bugs in the Discourse interface. I went over it step by step on the test02 branch. But I am not a web developer; I’m a sys admin.
Would you fancy completing this job, by any chance?
There are some very clear steps detailed here:
Then ./launcher rebuild app when I change just a comma in the pluggin code, so wait for 10 minutes before see the result.
Just a restart doesn’t apply changes.
Is there a faster way to dev a Discourse pluggin ?
Actualy modal pop, but not as expected…
index.js:2071 Uncaught TypeError: h.forEach is not a function
at ze.didCreateElement (index.js:2071:1)
at Object.evaluate (runtime.js:2845:1)
at Object.evaluate (runtime.js:1052:1)
at It.evaluateSyscall (runtime.js:4204:1)
at It.evaluateInner (runtime.js:4175:1)
at It.evaluateOuter (runtime.js:4168:1)
at Wt.next (runtime.js:4999:1)
at Wt._execute (runtime.js:4986:1)
at Wt.execute (runtime.js:4979:1)
at Ut.handleException (runtime.js:4313:1)
at Vt.handleException (runtime.js:4521:1)
at Dt.throw (runtime.js:4260:1)
at $e.evaluate (runtime.js:2088:1)
at Dt._execute (runtime.js:4247:1)
at Dt.execute (runtime.js:4232:1)
at qt.rerender (runtime.js:4547:1)
at hr.render (index.js:4674:1)
at index.js:4934:1
at Nt (runtime.js:4080:1)
at gr._renderRoots (index.js:4916:1)
at gr._renderRootsTransaction (index.js:4960:1)
at gr._revalidate (index.js:4992:1)
at invoke (backburner.js.js:280:1)
at h.flush (backburner.js.js:197:1)
at p.flush (backburner.js.js:358:1)
at B._end (backburner.js.js:798:1)
at B.end (backburner.js.js:589:1)
at B._run (backburner.js.js:842:1)
at B._join (backburner.js.js:819:1)
at B.join (backburner.js.js:629:1)
at l (index.js:81:1)
at index.js:1781:1
at e.flaggedInstrument (index.js:117:1)
at index.js:1780:1
at index.js:1754:1
at d._triggerAction (d-button.js:117:25)
at d.click (d-button.js:87:21)