Commit Graph

47 Commits

Author SHA1 Message Date
FinnStutzenstein cf7a5ce714 Reworked config
- Move config meta data into REST
- seperate views for config groups
2019-10-21 13:45:06 +02:00
FinnStutzenstein 5aef823807 Major cache rewrite:
- Removed the restricted data cache (it wasn't used since OS 3.0)
- unify functions for restricted and full data: Just one function, which
  accteps an optional user_id: If it is None, full data is returned, and
  with a user id given, the restricted data
- More atomic access to redis, especially for:
- Check for data-existance in redis and do an auto-ensure-cache.
- Speedup through hashing of scripts and redis' script cache.
- Save schema version into the redis cache and rebuild, if the version
  changed

Client changes:
- Simplified the ConstantsService
- Fixed bug, when receiving an autoupdate with all_data=True from the
  Server
2019-08-08 08:35:02 +02:00
FinnStutzenstein 77dee0d977 Recover-strategy to detect an updated server without a reload 2019-07-11 19:23:25 +02:00
Oskar Hahn 41aed15426 Make the projector-system explicit async.
Also lock config.build_key_to_id
2019-04-06 06:40:15 +02:00
Oskar Hahn 206eb9bcba decode only the needed data when calculating the required users 2019-03-29 22:38:12 +01:00
Oskar Hahn 8409378e00 Fix a race condition when creating config.key_to_id 2019-03-09 18:55:58 +01:00
FinnStutzenstein ecdfdf4b87 Resort python import for isort 4.3.11 (fixes #4467)
One dot imports are again behind two dot imports since this new isort
release.
2019-03-06 14:54:03 +01:00
Oskar Hahn dd4754d045 Disable the future-lock when updating the restircted data cache
Before this commit, there where two different locks when updating the restricted
data cache. A future lock, what is faster but only works in the same thread. The
other lock is in redis, it is not so fast, but also works in many threads.

The future lock was buggy, because on a second call of update_restricted_data
the same future was reused. So on the second run, the future was already done.

I don't see any way to delete. The last client would have to delete it, but there
is no way to find out which client the last one is.
2019-03-04 21:37:00 +01:00
Oskar Hahn b329115007 use f-string syntax for strings 2019-01-18 17:37:36 +01:00
Oskar Hahn eddbd86d3a Run black 2019-01-08 21:51:52 +01:00
FinnStutzenstein 3d4bd67980 new configs for statute amendments; improved the majorityMethod config variable
Removed none from os-search-value-selector; improved list of speakers
2018-11-22 17:34:00 +01:00
Oskar Hahn eead4efe6a Remove CollectionElement
* Use user_id: int instead of Optional[CollectionElment] in utils
* Rewrote autoupdate system without CollectionElement
2018-11-04 01:06:01 +01:00
Oskar Hahn b034839ac8 Remove old projector code 2018-10-29 13:10:15 +01:00
Oskar Hahn 9af6bf1606 ensures test on startup 2018-09-23 16:57:49 +02:00
FinnStutzenstein 180dedfc38 Moved the collection of config variables before the generation of angular constants 2018-09-18 07:50:33 +02:00
FinnStutzenstein f1ddd16dc6 Motion rework
- remove motion version
- migrations for versions and change recommendations
- Redone motion comments. Wording changed from comment fields to comment
  sections
- fixed test order, tests are not atomic
- introduce get_group_model. Just use OpenSlides Groups and not the
django's ones.
2018-09-10 09:00:55 +02:00
Oskar Hahn aac9dcabf5 drop python 3.5 2018-08-23 17:51:30 +02:00
Oskar Hahn 10b3bb6497 Update to channels 2
* geis does not work with channels2 and never will be (it has to be python now)
* pytest
* rewrote cache system
* use username instead of pk for admin user in tests
2018-08-22 06:30:11 +02:00
Oskar Hahn 92a39a3fc6 support python 3.7
fix new pep8 stype
2018-08-08 21:46:56 +02:00
FinnStutzenstein dfb40684ee Custom fonts for pdf and projector 2018-02-16 14:06:54 +01:00
Norman Jäckel 1527cc69dd Cleaned up config app. Removed OPTIONS request. Fixed #3531. 2018-01-26 13:58:21 +01:00
FinnStutzenstein 288a706d01 Rework on motion comments (fixes #3350). 2017-09-12 14:58:43 +02:00
Norman Jäckel c9ad15621c Merge pull request #3383 from FinnStutzenstein/CustomTranslations
Custom Translations
2017-09-05 22:15:21 +02:00
FinnStutzenstein b30919eada Custom Translations 2017-09-05 08:04:02 +02:00
Oskar Hahn be94e97889 more typings 2017-09-03 18:34:55 +02:00
Oskar Hahn 87b889fbf2 Rewrite config to have id field 2017-08-24 15:02:42 +02:00
FinnStutzenstein 6c932aa77a Support logos 2017-04-12 14:28:46 +02:00
FinnStutzenstein 4530a5faed Use ckeditor in config 2017-01-07 14:45:58 +01:00
Emanuel Schütze ff359ea629 Improved assignments and motions pdf.
Load all users in pdfmake function - not in state resolver of
assignment list.
2016-11-14 17:55:50 +01:00
Norman Jäckel 45aa4146da Refactored majority calculation. Added cache for MotionPollDetailCtrl. 2016-10-17 17:03:42 +02:00
Maximilian Krambach e5e1e3e8ba Majority test for motions 2016-10-17 17:03:31 +02:00
FinnStutzenstein f1c58f98e8 Using a datetimepicker for agenda start time (closes #2413 and fixes #2440) 2016-10-06 22:12:51 +02:00
Norman Jäckel 2e7555e720 Fixed broadcast. Fixed #2467. 2016-10-01 14:37:04 +02:00
Finn Stutzenstein e6b9b21d41 Added support for multiple projectors. 2016-09-30 18:58:59 +02:00
Finn Stutzenstein d13e11beb1 New ui element for comments in config (closes #2348) 2016-09-23 14:37:13 +02:00
Oskar Hahn 6abb0976c2 Change system for autoupdate on the projector (#2394)
* Second websocket channel for the projector

* Removed use of projector requirements for REST API requests.

Refactored data serializing for projector websocket connection.

* Refactor the way that the projector autoupdate get its data.

* Fixed missing assignment slide title for hidden items.

* Release all items for item list slide and list of speakers slide. Fixed error with motion workflow.

* Created CollectionElement class which helps to handle autoupdate.
2016-09-17 22:26:23 +02:00
Finn Stutzenstein a8dcc2abdc Control the resolution of the projector 2016-08-31 14:18:29 +02:00
Maximilian Krambach 5061ea1770 typo fixing (issue #2181) 2016-06-08 22:18:35 +02:00
Norman Jäckel 8c5c5dc556 Fixed bug on config view. 2016-06-06 14:19:57 +02:00
Oskar Hahn 2221b23447 Redesign of the config variables.
Removed the config cache and created files for each app in which the
config variables are defined.
2016-06-03 13:47:54 +02:00
Emanuel Schuetze 0613304724 Use colorpicker for projector header color config. 2016-02-23 22:24:41 +01:00
Norman Jäckel cc55aff8cc Added possibility to hide config variables. 2016-02-14 21:38:26 +01:00
Oskar Hahn 3ae6482863 Fix autoupdate of config 2016-01-09 22:13:55 +01:00
Norman Jäckel d7e39be708 Added config field for legal notes. 2016-01-09 13:01:18 +01:00
Norman Jäckel 1016af3c52 Updated English language files. 2015-11-20 23:23:01 +01:00
Oskar Hahn 3dead745c6 Let the config app accept values that can be converted to the right type.
Fixed config app
2015-06-29 15:41:36 +02:00
Oskar Hahn e042c668d5 Moved config app into the core app 2015-06-29 15:15:33 +02:00