Commit Graph

7839 Commits

Author SHA1 Message Date
Finn Stutzenstein 6a488eb78e
Merge pull request #5323 from tsiegleauq/linter-prettier-updates
Update linting rules
2020-04-22 17:32:42 +02:00
Emanuel Schütze 0aef3f79ce
Merge pull request #5305 from tsiegleauq/weight-votes
Implement vote weight in client
2020-04-22 17:28:02 +02:00
Sean 97c2299aec Implement vote weight in client
Implements vote weight in client
The user detail page has a new property
change deserialize to parse floats
change "yes"-voting to send "Y" and "0" instead of "1" and "0"
add vote weight to user list, filter, sort
add vote weight to single voting result
votesvalid and votescast respect the individual vote weight
fix parse-poll pipe and null in pdf
2020-04-22 16:54:50 +02:00
Sean e702843f07 Update linting rules
Includes strickt(er) tslint line-length of 120, with an exception
for import statements (prettier does not like these)
2020-04-22 16:24:08 +02:00
Emanuel Schütze 0f3d07f151
Merge pull request #5324 from tsiegleauq/another-round-of-python-travis-fixes
Set version of pytest-django and pytest-asyncio
2020-04-22 16:09:23 +02:00
Sean aa097ee689 Set version of pytest-django and pytest-asyncio
Apparently, updates in these two libraries are not compatible
with out current testing setup
2020-04-22 14:56:25 +02:00
Sean f7a97cf886
Merge pull request #5299 from CatoTH/delete-obsolete-tests
Delete old test files that are reimplemented in Typescript by now
2020-04-21 13:21:16 +02:00
Emanuel Schütze 25f8f42c92
Merge pull request #5320 from sarah-github/sarah-github-typo-settings-rst
typo with brackets in settings.rst for logging config
2020-04-21 12:49:04 +02:00
Sarah 523eb96f9d
typo with brackets 2020-04-20 22:37:01 +02:00
Emanuel Schütze 2c548d2dfb
Merge pull request #5319 from tsiegleauq/fix-admin-self-set-present
Fixes an issue regarding self-set-present
2020-04-20 19:38:11 +02:00
Sean 91d4b3c7af Fixes an issue regarding self-set-present 2020-04-20 19:17:03 +02:00
Emanuel Schütze d210496146
Merge pull request #5293 from GabrielInTheWorld/subline-comment
Adds a third line for comments
2020-04-20 18:09:52 +02:00
Emanuel Schütze 35ce596706
Merge pull request #5317 from tsiegleauq/set_presence_on_userlist
Allow set present on user list if config was set
2020-04-20 17:13:48 +02:00
Tobias Hößl f007e07544
Delete old test files that are reimplemented in Typescript by now 2020-04-20 15:15:00 +02:00
Sean 70aadcdd28
Merge pull request #5307 from GabrielInTheWorld/no-found-button
Adds a 'not found'-button to search-value-selector
2020-04-20 14:52:46 +02:00
Sean 9ffbb39e95 Allow set present on user list if config was set
Depending on "selt self presence" config, allow users to set
themselves as present on the user list
2020-04-20 13:46:14 +02:00
GabrielMeyer 170aa1c8f0 Adds a third line for comments 2020-04-20 07:46:37 +02:00
jsangmeister ad4ed3443a
Merge pull request #5316 from jsangmeister/voting-autoupdate-fix
Fixes the voting autoupdate bug
2020-04-17 16:58:50 +02:00
Joshua Sangmeister 42fbe93314 fixes the voting autoupdate bug 2020-04-17 16:38:38 +02:00
Emanuel Schütze 6cdf9a5582
Merge pull request #5315 from emanuelschuetze/prepare-3.2
Prepare new 3.2 release
2020-04-16 13:55:24 +02:00
Emanuel Schütze 75ebf5bc77 Prepare new 3.2 release 2020-04-16 13:41:56 +02:00
Emanuel Schütze c26ef8c0bb
Merge pull request #5314 from jsangmeister/permissiveHtmlValidation
Adds more permissive html validation for topics and welcome page
2020-04-16 10:57:43 +02:00
Joshua Sangmeister 6eae497abe adds more permissive html validation 2020-04-16 10:26:48 +02:00
Finn Stutzenstein 1570b5b806
Merge pull request #5313 from jsangmeister/fix-user-import
Fixed user import
2020-04-15 13:44:30 +02:00
Emanuel Schütze 537eeadce4
Merge pull request #5312 from jsangmeister/adjustSettingsReadme
Add ENABLE_ELECTRONIC_VOTING to settings readme
2020-04-15 11:09:48 +02:00
Joshua Sangmeister 96ee1c0af3 fixed user import 2020-04-15 10:27:07 +02:00
Joshua Sangmeister 99416e3043 added ENABLE_ELECTRONIC_VOTING to settings readme 2020-04-15 10:15:19 +02:00
Emanuel Schütze 0f8167e39c
Merge pull request #5311 from jsangmeister/fixPseudoanonymize
Fix pseudoanonymize on client
2020-04-15 09:54:21 +02:00
Joshua Sangmeister 9864ff3847 fixed pseudoanonymize on client 2020-04-15 09:42:22 +02:00
Emanuel Schütze a7518ed5b6
Merge pull request #5310 from tsiegleauq/better-category-sorting
Sort motions in categories by inner weight (again)
2020-04-15 09:25:19 +02:00
Sean 5b7bbfd0bb Sort motions in categories by inner weight (again)
Fixes sorting categories by inner weight
2020-04-14 15:01:42 +02:00
Emanuel Schütze b7566fcc69
Merge pull request #5308 from tsiegleauq/sort-categories-by-weight
Sort motion list by category weight
2020-04-08 22:35:31 +02:00
Sean 82c6929a8d Sort motion list by category weight
Sorts the motion list by the weight of the category
rather than by name
2020-04-08 22:22:02 +02:00
GabrielMeyer 35a67017a3 Adds a 'not found'-button to search-value-selector 2020-04-08 11:48:18 +02:00
Finn Stutzenstein 4841343c02
Merge pull request #5303 from FinnStutzenstein/fixVoting
Cleanup for #5300
2020-04-07 10:07:07 +02:00
FinnStutzenstein 7a97aa1b79 Cleanup for #5300 2020-04-07 09:53:16 +02:00
Emanuel Schütze 12bc926b44
Merge pull request #5302 from emanuelschuetze/translations-20200407
Updated translations.
2020-04-07 09:40:02 +02:00
Emanuel Schütze 53b4b1c1f9 Updated translations. 2020-04-07 07:56:51 +02:00
Emanuel Schütze cc372cfba5
Merge pull request #5300 from FinnStutzenstein/fixVoting
Added vote weight and fixed named voting
2020-04-07 07:47:12 +02:00
Joshua Sangmeister b7b8620153 removed race condition & cleanup 2020-04-07 07:27:54 +02:00
FinnStutzenstein 7882ea1a25 Added vote weight and fixed named voting 2020-04-07 07:27:54 +02:00
Sean 04a7ce22fd
Merge pull request #5297 from tsiegleauq/esr-cd
Fix malfunctions in Firefox ESR
2020-04-06 23:34:32 +02:00
Sean 820a47123a Fix malfunctions in Firefox ESR
Various cryptic issues that had no usefull debug output.

ngx-translates "translate" directive was causing Firefox ESR
to jump in the "drainMicroTaskQueue" infinite recursion when
using the directive in the same component as nGrid.

Therefore, I changed all uses of the translate directive
to the pipe (arround 700 or so, regex is my best friend now)

open todo: adjust the linter that we may never use the translate
directive again.

There was another cryptic issue with the current version
of exceljs which was also causing firefox to go crash
when loading a workbook object. It was sufficient to
have any Workbook() function declared in a module to cause
firefox to crash.
2020-04-06 20:36:24 +02:00
Emanuel Schütze 42af962248
Merge pull request #5301 from tsiegleauq/new-extract-function
Update translation extractor
2020-04-06 17:52:16 +02:00
Sean 7b5f2648af Update translation extractor 2020-04-06 17:18:04 +02:00
Sean a1e2c49815
Merge pull request #5234 from tsiegleauq/angular9
Migrate to angular 9
2020-04-01 18:12:34 +02:00
Sean Engelhardt e1acf6e9d6 Update to Anulgar 9
Updates Angular to version 9.1
Updates most-to-all npm components
Removes deprecated components and npm commands
Updates travis node version
Adjust the whole code base to angular 9 standard
Increase TypeScipt version to 3.8
2020-04-01 14:50:15 +02:00
Finn Stutzenstein 83d57e9da7
Merge pull request #5290 from FinnStutzenstein/redisWaitForReplication
Redis: Wait for replication on writes
2020-04-01 13:32:11 +02:00
FinnStutzenstein bb2f958eb5 Redis: Wait for replication on writes
Since channels_redis does not support dedicated read-redis instances, the
autoupdate message may be received before the data was replicated. All workers
read the autoupdate message from the write host, so there is a race between
getting this message and a finished replication. For large payloads, the
replication is slower in the most cases (even more in a distributed setup, where
the master and replica are on different nodes). The easy way is to wait for
replication. But there is one difficulty: The number of replicas has to be
known. There is a new settings-variable "AMOUNT_REPLICAS" which defaults to 1.
It needs to be set correctly! If it is too high, every autoupdate will be
delayed by 1 seconds because of a timeout witing for non-existent replicas. If
it is too low, some autoupdates may be wrong (and not detectable by the client!)
becuase of reading from non-synchronised relicas.

The other possibility is to fork channel_redis and add the feature of a
read-only redis. This ould help, because on a single redis instance all commands
are ordered: First, the data is synced, then the autoupdate message. Attention:
This means, if redis-replicas are scaled up, one must make sure to read from the
same instance. I think this is not possible in the way how dockers overlay
networks work. The only way would be to open one connection and reuse the
connection from channels_redis in OpenSlides. This would mean a heavy
integration of channels_redis (meaning including the source code in our repo).

For the first fix, this one is easy and should work.
2020-04-01 13:09:48 +02:00
Emanuel Schütze 7b0a2d8ec2
Merge pull request #5291 from FinnStutzenstein/updateTwisted
Update Twisted
2020-04-01 10:46:17 +02:00