Merge branch 'release-0.4.1'
[mediagoblin.git] / docs / source / siteadmin / relnotes.rst
CommitLineData
5be6425c
E
1.. MediaGoblin Documentation
2
3 Written in 2012 by MediaGoblin contributors
4
5 To the extent possible under law, the author(s) have dedicated all
6 copyright and related and neighboring rights to this software to
7 the public domain worldwide. This software is distributed without
8 any warranty.
9
10 You should have received a copy of the CC0 Public Domain
11 Dedication along with this software. If not, see
12 <http://creativecommons.org/publicdomain/zero/1.0/>.
13
b21220e9
CAW
14.. _release-notes:
15
5be6425c
E
16=============
17Release Notes
18=============
19
20This chapter has important information for releases in it.
21If you're upgrading from a previous release, please read it
22carefully, or at least skim over it.
23
bed9ad06
CAW
240.4.1
25=====
26
27This is a bugfix release for 0.4.0. This only implements one major
28fix in the newly released document support which prevented the
29"conversion via libreoffice" feature.
30
31If you were running 0.4.0 you can upgrade to v0.4.1 via a simple
32switch and restarting mediagoblin/celery with no other actions.
33
d3b1fd2e
CAW
34Otherwise, follow 0.4.0 instructions.
35
bed9ad06 36
8ca51d32
CAW
370.4.0
38=====
39
24ede044 40**Do this to upgrade**
5622cc44
CAW
411. Make sure to run
42 ``./bin/python setup.py develop --upgrade && ./bin/gmg dbupdate``
43 after upgrading.
24ede044
CAW
442. See "For Theme authors" if you have a custom theme.
453. Note that ``./bin/gmg theme assetlink`` is now just
46 ``./bin/gmg assetlink`` and covers both plugins and assets.
47 Keep on reading to hear more about new plugin features.
484. If you want to take advantage of new plugins that have statically
49 served assets, you are going to need to add the new "plugin_static"
50 section to your nginx config. Basically the following for nginx::
51
52 # Plugin static files (usually symlinked in)
53 location /plugin_static/ {
54 alias /srv/mediagoblin.example.org/mediagoblin/user_dev/plugin_static/;
55 }
56
51702d5b
CAW
57 Similarly, if you've got a modified paste config, you may want to
58 borrow the app:plugin_static section from the default paste.ini
59 file.
605. We now use itsdangerous for sessions; if you had any references to
61 beaker in your paste config you can remove them. Again, see the
62 default paste.ini config
d3b1fd2e
CAW
636. We also now use git submodules. Please do:
64 ``git submodule init && git submodule fetch``
65 You will need to do this to use the new PDF support.
51702d5b 66
8ca51d32
CAW
67**For theme authors**
68
69If you have your own theme or you have any "user modified templates",
70please note the following:
71
72* mediagoblin/bits/ files above-content.html, body-end.html,
73 body-start.html now are renamed... they have underscores instead of
74 dashes in the filenames now :)
75* There's a new file: ``mediagoblin/bits/frontpage_welcome.html``.
76 You can easily customize this to give a welcome page appropriate to
77 your site.
78
51702d5b 79
24ede044 80**New features**
51702d5b
CAW
81* PDF media type!
82* Improved plugin system. More flexible, better documented, with a
83 new plugin authoring section of the docs.
84* itsdangerous based sessions. No more beaker!
85* New, experimental Piwigo-based API. This means you should be able
86 to use MediaGoblin with something like Shotwell. (Again, a word of
87 caution: this is *very experimental*!)
88* Human readable timestamps, and the option to display the original
89 date of an image when available (available as the
90 "original_date_visible" variable)
91* Moved unit testing system from nosetests to py.test so we can better
92 handle issues with sqlalchemy exploding with different database
93 configurations. Long story :)
94* You can now disable the ability to post comments.
95* Tags now can be up to length 255 characters by default.
24ede044 96
8ca51d32 97
6e2dcbff 980.3.3
8d19cb24
SS
99=====
100
6e2dcbff
CAW
101**Do this to upgrade**
102
1031. Make sure to run ``bin/gmg dbupdate`` after upgrading.
1042. OpenStreetMap is now a plugin, so if you want to use it, add the
997ef976 105 following to your config file:
6e2dcbff 106
997ef976
E
107 .. code-block:: ini
108
109 [plugins]
110 [[mediagoblin.plugins.geolocation]]
6e2dcbff
CAW
111
112If you have your own theme, you may need to make some adjustments to
a28c6c4c
CAW
113it as some theme related things may have changed in this release. If
114you run into problems, don't hesitate to
115`contact us <http://mediagoblin.org/pages/join.html>`_
116(IRC is often best).
6e2dcbff 117
8d19cb24
SS
118**New features**
119
6e2dcbff
CAW
120* New dropdown menu for accessing various features.
121
122* Significantly improved URL generation. Now mediagoblin won't give
123 up on making a slug if it looks like there will be a duplicate;
124 it'll try extra hard to generate a meaningful one instead.
125
126 Similarly, linking to an id no longer can possibly conflict with
127 linking to a slug; /u/username/m/id:35/ is the kind of reference we
128 now use to linking to entries with ids. However, old links with
129 entries that linked to ids should work just fine with our migration.
130 The only urls that might break in this release are ones using colons
131 or equal signs.
132
133* New template hooks for plugin authoring.
134
135* As a demonstration of new template hooks for plugin authoring,
136 openstreetmap support now moved to a plugin!
137
a28c6c4c
CAW
138* Method to add media to collections switched from icon of paperclip
139 to button with "add to collection" text.
6e2dcbff
CAW
140
141* Bug where videos often failed to produce a proper thumbnail fixed!
142
fda5ea7a 143* Copying around files in MediaGoblin now much more efficient, doesn't
6e2dcbff
CAW
144 waste gobs of memory.
145
146* Video transcoding now optional for videos that meet certain
fda5ea7a
CAW
147 criteria. By default, MediaGoblin will not transcode webm videos
148 that are smaller in resolution than the MediaGoblin defaults, and
149 MediaGoblin can also be configured to allow theora files to not be
a28c6c4c 150 transcoded as well.
6e2dcbff
CAW
151
152* Per-user license preference option; always want your uploads to be
153 BY-SA and tired of changing that field? You can now set your
154 license preference in your user settings.
155
156* Video player now responsive; better for mobile!
157
70177c1f
CAW
158* You can now delete your account from the user preferences page if
159 you so wish.
160
a28c6c4c 161**Other changes**
8d19cb24 162
b0c8328e
SS
163* Plugin writers: Internal restructuring led to mediagoblin.db.sql* be
164 mediagoblin.db.* starting from 0.3.3
165
6e2dcbff
CAW
166* Dependency list has been reduced not requiring the "webob" package anymore.
167
168* And many small fixes/improvements, too numerous to list!
169
8d19cb24 170
cacb6fea
SS
1710.3.2
172=====
173
174This will be the last release that is capable of converting from an earlier
175MongoDB-based MediaGoblin instance to the newer SQL-based system.
176
1f01df1d
CAW
177**Do this to upgrade**
178
42ce372e
ML
179 # directory of your mediagoblin install
180 cd /srv/mediagoblin.example.org
181
182 # copy source for this release
183 git fetch
184 git checkout tags/v0.3.2
185
186 # perform any needed database updates
187 bin/gmg dbupdate
188
189 # restart your servers however you do that, e.g.,
190 sudo service mediagoblin-paster restart
191 sudo service mediagoblin-celeryd restart
1f01df1d 192
cacb6fea
SS
193
194**New features**
195
1f01df1d
CAW
196* **3d model support!**
197
198 You can now upload STL and OBJ files and display them in
199 MediaGoblin. Requires a recent-ish Blender; for details see:
200 :ref:`deploying-chapter`
cacb6fea
SS
201
202* **trim_whitespace**
203
204 We bundle the optional plugin trim_whitespace which reduces the size
205 of the delivered html output by reducing redundant whitespace.
206
207 See :ref:`core-plugin-section` for plugin documentation
208
1f01df1d
CAW
209* **A new API!**
210
211 It isn't well documented yet but we do have an API. There is an
212 `android application in progress <https://gitorious.org/mediagoblin/mediagoblin-android>`_
213 which makes use of it, and there are some demo applications between
214 `automgtic <https://github.com/jwandborg/automgtic>`_, an
215 automatic media uploader for your desktop
216 and `OMGMG <https://github.com/jwandborg/omgmg>`_, an example of
217 a web application hooking up to the API.
218
219 This is a plugin, so you have to enable it in your mediagoblin
220 config file by adding a section under [plugins] like::
221
222 [plugins]
223 [[mediagoblin.plugins.api]]
224
225 Note that the API works but is not nailed down... the way it is
226 called may change in future releases.
227
228* **OAuth login support**
229
230 For applications that use OAuth to connect to the API.
231
232 This is a plugin, so you have to enable it in your mediagoblin
233 config file by adding a section under [plugins] like::
234
235 [plugins]
236 [[mediagoblin.plugins.oauth]]
237
238* **Collections**
239
240 We now have user-curated collections support. These are arbitrary
241 galleries that are customizable by users. You can add media to
242 these by clicking on the paperclip icon when logged in and looking
243 at a media entry.
244
245* **OpenStreetMap licensing display improvements**
246
247 More accurate display of OSM licensing, and less disruptive: you
248 click to "expand" the display of said licensing.
249
250 Geolocation is also now on by default.
251
252* **Miscelaneous visual improvements**
253
254 We've made a number of small visual improvements including newer and
255 nicer looking thumbnails and improved checkbox placement.
256
257
5be6425c 258
3a438f5e
WKG
2590.3.1
260=====
261
9e579cde
WKG
262**Do this to upgrade**
263
2641. Make sure to run ``bin/gmg dbuptdate`` after upgrading.
265
2662. If you set up your server config with an older version of
267 mediagoblin and the mediagoblin docs, it's possible you don't
268 have the "theme static files" alias, so double check to make
269 sure that section is there if you are having problems.
270
271
272
273**New features**
274
275* **theming support**
276
277 MediaGoblin now also includes theming support, which you can
278 read about in the section :ref:`theming-chapter`.
279
280* **flatpages**
281
282 MediaGoblin has a flatpages plugin allowing you to add pages that
283 are aren't media-related like "About this site...", "Terms of
284 service...", etc.
285
286 See :ref:`core-plugin-section` for plugin documentation
3a438f5e
WKG
287
288
6e930791
CAW
2890.3.0
290=====
5be6425c
E
291
292This release has one important change. You need to act when
293upgrading from a previous version!
294
295This release changes the database system from MongoDB to
296SQL(alchemy). If you want to setup a fresh instance, just
297follow the instructions in the deployment chapter. If on
298the other hand you want to continue to use one instance,
299read on.
300
dce37922 301To convert your data from MongoDB to SQL(alchemy), you need
5be6425c
E
302to follow these steps:
303
3041. Make sure your MongoDB is still running and has your
305 data, it's needed for the conversion.
306
abe74178
WKG
3072. Configure the ``sql_engine`` URI in the config to represent
308 your target database (see: :ref:`deploying-chapter`)
5be6425c
E
309
3103. You need an empty database.
311
3124. Then run the following command::
313
abe74178 314 bin/gmg [-cf mediagoblin_config.ini] convert_mongo_to_sql
5be6425c
E
315
3165. Start your server and investigate.
317
3186. That's it.