Commit Graph

757 Commits

Author SHA1 Message Date
Azul 4e634b0c8a update: repo location to liberate group
Did not update translations yet.
Also looks like the source url on transifex needs to be updated.
2021-12-17 19:52:19 +01:00
Azul 2b242886b9 feat: add invisible_captcha on signup form
log signup attempts that fill in the honeypot
without their IP address.
2020-06-20 12:30:09 +02:00
Azul db929e91cc i18n: add rails translations for fa and hu 2020-04-28 10:33:52 +02:00
Azul c4f4812919 i18n: update translations from transifex 2020-04-25 11:02:01 +02:00
Ali Reza Hayati fe912fbab1 Update fa.yml 2020-02-25 00:15:15 -08:00
Ali Reza Hayati a2ec481969 Added Persian (fa) Translation 2020-02-24 23:18:56 -08:00
Azul 46e4738d83 rails: do not require active_storage and action_cable
Need to require all railties separately so we can pick from them.
We are not using the two so better not require them either.

fixes #298.
2019-08-23 11:42:15 +02:00
Azul 0d3aa3f56f fix: bring back parts of 17911b99
The more verbose messages still make sense.
Letting users remove themselves from pages owned by groups aswell.
2019-08-23 11:42:15 +02:00
Azul e6ddc9b267 Revert "WIP: remove user participations when group membership ends"
This reverts commit 17911b998f.
2019-08-23 11:42:15 +02:00
Azul ff129c4429 config: use tmp/pids/thinking_sphinx.pid
this matches the naming scheme of delayed_job. Now both pids are in the same dir.
2019-08-23 11:42:15 +02:00
Azul 203aa07297 cleanup: pagination helpers and link renderers 2019-08-23 11:42:15 +02:00
Azul 439aad0d10 cleanup: use to_partial_path for pages
Also cleanup the corresponding views a bit.
Maily removing unused options
2019-08-23 11:42:15 +02:00
Azul 81f265184a cleanup: create_a_secret task is not used anymore 2019-08-23 11:42:15 +02:00
Azul 115b5f0052 stage: fallback to random secret_key_base
Since no ENV["SECRET_KEY_BASE"] this sets a fallback.

Every server restart will lead to a new SECRET_KEY_BASE being used.
This will effectively log out everyone from the staging server.
We will need to set ENV["SECRET_KEY_BASE"] eventually and then revert this change.
2019-08-23 11:42:15 +02:00
dgt 9237d2730f Update: Add some new Rails 5.2 config params 2019-08-23 11:42:15 +02:00
dgt 2ab42b3bac Cleanup: remove unused helpers 2019-08-23 11:42:15 +02:00
Azul 03704be776 log: remove attempts at using syslog
As far as i remember this never really worked and we did not use it.

Seems to have messed up the logging on staging right now though.
2019-08-23 11:42:15 +02:00
dgt 173d7a9119 Config for rails 5.2 2019-08-23 11:42:15 +02:00
dgt 9b9149793f Get rid of some deprecation warnings 2019-08-23 11:42:15 +02:00
dgt 23379b100e Get rid of more deprecation warnings as a preparation to Rails 5.1 upgrade 2019-08-23 10:43:01 +02:00
dgt 2c064d0d4c Rewrite xhr requests
with the help of a nice gem https://github.com/appfolio/rails5_xhr_update
and start replacing true by reload for association reload (deprecated in rails 5.1)
2019-08-23 10:43:01 +02:00
dgt 11237b5ea7 Auto-correct params to HttpPostionalArguments
using rubocop -a --only Rails/HttpPositionalArguments
this does not cover xhr requests
2019-08-23 10:43:01 +02:00
dgt 939fa3d1d1 Some preparations for rails 5.1
update some gems, replace before_filter / after_filter by before_action / after_action
and some more config changes (mostly commented out) and scripts generated by rails app:update task
2019-08-23 10:43:01 +02:00
dgt eee8c84178 Preparation for Rails 5
first make everything work locally with rails 5.0
test do not pass on CI yet because the test task has to be rewritten

- update dependecies
- run rails app:update task: update config, generate intitializers etc.
- the method hide_action is not available in rails anymore
- ActionController::Parameters have to be converted to a hash
- protect_from_forgery now defaults to prepend:false
2019-08-23 10:43:01 +02:00
Azul 983c723ea6 feature: prevent creation of spam posts
We have seen a lot of spam comments on public pages recently.
They insert links - probably to increase search engine ranking of the linked sites.

In order to prevent this we disallow comments with links on public pages
for users who have no other access to the page than it being public.
2019-08-12 11:28:48 +02:00
dgt d27fda555c Merge branch '282-fix-500-on-double-join' into 'master'
Resolve "500 when adding user twice to group"

Closes #282

See merge request riseuplabs/crabgrass!264
2019-05-15 05:29:32 -07:00
Azul 5e50d4f30b fix: return 409 when approving redundant requests
We were responding with 500 and an error popup
when a request was approved for an action that had already been performed.

For example when approving the removal of a former member
that had already left the group on their own
we responded with a 500.

This changes the response to 409 - conflict:
`    This response is sent when a request conflicts with the current state of the server.`

I was also considering 404 - especially for requests
to remove a non-member.
However a 404 for an update on a request
would seem more like the request itself could not be found.

This commit introduces the Request::PointlessAction exception.
It will be raised by requests whos action has already been performed.

It allows us to unify error handling on the controller level
and detect the different errors in each request class
and reraise them with a common more semantic error class.
2019-05-15 11:52:55 +02:00
Azul f912fceaeb Revert "Set log level to info in production and prevent overwrite by puppet"
This reverts commit f3da14d8af.
2019-05-13 19:32:34 +02:00
dgt e252bdda5a Tranlations: small changes for german and bask 2019-05-08 22:09:29 +02:00
dgt e8492e7077 Fix: render posts without redirect
seems like some browser loose the accept header for javascript when redirecting.
this makes rails look for a non existing html template
2019-05-08 18:06:19 +02:00
dgt f7725bc2a4 Merge branch 'log-hide-caching' into 'master'
log: hide cache hit lines

See merge request riseuplabs/crabgrass!247
2019-05-06 01:07:33 -07:00
Azul 662f5b56e1 log: hide cache hit lines
Lines like
"Read fragment views/..."
were cluttering the logs in production.

There is no need to log every cache hit.
2019-05-06 07:00:35 +02:00
azul ca49a405e7 Merge branch 'fix-render-404' into 'master'
Log: no trace of ActionController::RoutingError

See merge request riseuplabs/crabgrass!245
2019-05-05 12:56:20 -07:00
dgt f3da14d8af Set log level to info in production and prevent overwrite by puppet 2019-05-05 20:15:51 +02:00
Azul 43d78a339e Log: no trace of ActionController::RoutingError
The traces of ActionController::RoutingErrors do not add any info.
Plus they do not include anything in the clean backtrace.
- which makes rails resort to the dirty backtrace for some reason.
So here we strip of the entire backtrace
to prevent them from cluttering the logs.
2019-05-05 16:15:11 +02:00
Azul b458ac042a fix: do not log partial rendering times in production 2019-05-02 11:42:35 +02:00
dgt fac948d907 Updated translations from transifex for spanish, bask, french and polish 2019-04-20 10:16:48 +02:00
Azul 2e5fae50da fix: directory config for symlinks
If one of the directories configured was a broken symlink
we would attempt to create a directory in its place.

Now we resolve the symlink and create a directory where it points.
2019-04-01 19:18:47 +02:00
azul 7bb52c3980 Merge branch '167-new-branch-utf-8-emoticons-break-wikis-and-post' into 'master'
New branch: Resolve "utf-8 emoticons break wikis and posts"

Closes #167

See merge request riseuplabs/crabgrass!202
2018-11-28 08:22:12 -08:00
dgt fa3840503c Fix: scrolling through Notices pages also scrolls Recent Pages and vice versa
- now we just show the 5 most recent notices on the dashboard
- there is a separate page which displays all notices (paged)
- we have a separate controller for the dashboard
2018-11-26 20:39:02 +01:00
dgt d456c4ef04 Switch to full unicode (utf8mb4) to display emojis
switch to utf8mb4 which can store all unicode code points including
emoticons (utf8 which we used before is an alias for utf8mb3 which only
stores a maximum of three bytes).

the rake task cg:convert_to_unicode converts the database into utf8mb4.
it also sets a binary collation for our tags table, because we
want to distinguish between olé and ole. there is no test for this
feature (because it would fail).
the schema_migrations table has to be excluded, because it has
indexes which are to long

the emoji tests work without database conversion, because database
connection uses utf8mb4.
2018-11-16 14:49:45 +01:00
dgt 4ecd075ca6 Update translations from transifex
fix wrong parameter in translation string
remove keys which are no longer used
2018-11-08 18:11:16 +01:00
dgt eccd924f8a Remove unused show action for notices 2018-10-18 10:10:19 +02:00
dgt 6058501c6b Fix spanish translation 2018-10-16 15:59:31 +02:00
dgt a5be95037b Merge branch '203-remove-event-pages' into 'master'
Remove event pages code

Closes #203

See merge request riseuplabs/crabgrass!188
2018-10-16 06:14:40 -07:00
dgt 6a6606819a Update translations from transifex
some new translations in swedish
translation of leave_group_confirmation changed and needs a new translation
2018-10-16 13:31:02 +02:00
dgt 9d0288ce59 Remove event pages code
events have not been used for a long time.
this commit removes everything besides the icons
2018-10-11 11:18:27 +02:00
dgt 7feaf5285b Merge branch '185-improve-member-deletion-ui-removing-permissions' into 'master'
Resolve "Improve member deletion UI (removing permissions)"

Closes #185

See merge request riseuplabs/crabgrass!175
2018-10-11 01:46:23 -07:00
dgt a71a1f0818 Recovered and added some translations
some translations for plural forms and some more.
2018-07-25 21:02:44 +02:00
dgt 17911b998f WIP: remove user participations when group membership ends 2018-07-25 20:46:30 +02:00