Commit Graph

41 Commits

Author SHA1 Message Date
8c981cc366 FIX: Update auth framework 2020-02-19 14:23:28 +00:00
David Taylor
97c0dffbd3 Order revisions by date created (#389) 2019-12-31 16:42:56 +00:00
David Taylor
3b28eafc82 Order RIGSVersions by date 2019-12-31 16:33:43 +00:00
01a87e0e0b FEAT: Add revision history to assets and suppliers (#387)
* FEAT: Initial work on revision history for assets

The revision history for individual items mostly works, though it shows database ID where it should show asset ID. Recent changes feed isn't yet done.

* FEAT: Initial implementation of asset activity stream

* CHORE: Fix pep8

* FIX: Asset history table 'branding'

* FIX: Individual asset version history is now correctly filtered

* FEAT: Make revision history for suppliers accessible

* CHORE: *sings* And a pep8 in a broken tree...

* Refactored out duplicated code from `AssetVersionHistory

* CHORE: pep8

And another random bit of wierd whitespace I found

Co-authored-by: Matthew Smith <mattysmith22@googlemail.com>

Closes #358
2019-12-31 12:25:42 +00:00
David Taylor
1a49bb50e5 Further version history improvements 2019-07-28 23:40:35 +01:00
David Taylor
86b349f60e Tidy up version history for risk assessments 2019-07-28 23:32:54 +01:00
David Taylor
3035320e82 Run through 2-to-3 converter. This is not in a working state 2017-09-04 23:19:22 +01:00
David Taylor
22c520e841 Refactored versioning.py (and associated templates) to improve readability and testability.
Takes inspiration from, but does not use, django-reversion-compare. We do a lot of RIGS-specific stuff that requires a lot of hacking to get working nicely with django-reversion-compare. The main example of this is event-item “many-to-one” fields. The performance difference of my code compared to django-reversion-compare was found to be negligible.
2017-06-21 03:09:46 +01:00
David Taylor
ae4f05a661 Update versioning.py to work with latest django-reversion 2017-06-19 23:53:00 +01:00
David Taylor
bdd7f02fe2 Add EventAuthorisation to the activity feed 2017-05-25 13:09:52 +01:00
David Taylor
d916c1ca19 Update all the things, and fix some upgrade issues 2017-05-10 20:05:36 +01:00
David Taylor
7f680dcffb Fix activity feed 2017-05-10 18:06:17 +01:00
David Taylor
29aa13316d Fix for versioning when event has been deleted, closes #226 2016-04-27 20:49:42 +01:00
David Taylor
f8a2a7a959 Made items display in version history again 2016-04-07 09:23:35 +01:00
David Taylor
b47cfed5a9 Fixed versioning UI for revisions containing multiple event versions, hopefully 2016-04-07 00:19:18 +01:00
Tom Price
df61225b73 Optimise imports
So many unused imports, these have been banished
2016-04-06 21:57:54 +01:00
Tom Price
823db68a6a PEP8 format files 2016-04-06 21:53:38 +01:00
David Taylor
33ce4b622d Fixed bug with versioning interface when related objects are deleted 2016-04-05 04:18:53 +01:00
David Taylor
f0a3c968a7 Added unicode support 2016-03-16 15:15:12 +00:00
David Taylor
2ed0a4bcf9 Updated changes view to use diff where appropriate. 2016-03-16 10:08:26 +00:00
David Taylor
c6e442b422 Fixed date formatting issue #141 2015-06-29 00:44:34 +01:00
Tom Price
e684ee0b2d Stop emails falling of the end of the world #122 2015-05-29 00:36:47 +01:00
Tom Price
d5fac0d146 Add translating choice fields to correct values. 2015-05-29 00:06:06 +01:00
David Taylor
f55adc0c40 Removed unnecessary select_related 2015-05-28 19:36:30 +01:00
David Taylor
4d76786f28 Moved grouping logic to view, and added time to stream 2015-05-26 04:34:23 +01:00
Tom Price
1eb7ea1181 Move selection logic from template to view
Required adding some extra data to the dict directly.
In theory this should produce better performance.
2015-05-26 00:20:09 +01:00
Tom Price
229138723b Change to select and order more accurately
Select by revision and order by revision date
2015-05-26 00:01:23 +01:00
David Taylor
623e8017e7 More UI Improvements 2015-05-24 12:54:29 +01:00
David Taylor
96f5353c8e Fixed deleted event errors 2015-05-24 03:01:01 +01:00
David Taylor
2bfa9321a3 Redesigned homepage 2015-05-23 23:03:41 +01:00
David Taylor
3c47b4a64b More work on other model support 2015-05-23 16:49:54 +01:00
David Taylor
5f2fde3ecc Made it work for other models 2015-05-23 14:57:29 +01:00
David Taylor
0eb9317fc2 More UI stuff, and pagination on activity stream 2015-05-23 04:53:17 +01:00
David Taylor
7d0e89eb18 More UI improvements 2015-05-23 03:20:27 +01:00
David Taylor
4e5ddee31c More refactoring & improvements 2015-05-23 02:23:31 +01:00
David Taylor
82c814cdd7 Added comments 2015-05-23 00:08:47 +01:00
David Taylor
71fe91086f Removed unnecessary function 2015-05-22 23:57:39 +01:00
David Taylor
f7318a41b7 Restructured comparison logic so model references are used 2015-05-22 23:53:47 +01:00
David Taylor
1cdf3e2b34 Added activity stream view 2015-05-22 21:08:22 +01:00
David Taylor
fb586b9501 Corrected variable name 2015-05-22 19:42:23 +01:00
David Taylor
8d355b8ffa Separate versioning into separate file 2015-05-22 19:20:37 +01:00