73 Commits

Author SHA1 Message Date
luzpaz
7d9739349b Fix various typos
Fixes user-facing and non-user-facing typos

Found via `codespell -S "./vendor" -L ontext,rememberable,ridiculus,varius`
2025-10-15 11:15:47 +00:00
Henne Vogelsang
0aa688dfd8 Tell people when the next demo data reset is 2025-09-05 12:08:42 +02:00
Henne Vogelsang
19d28def75 Adapt demo description to new setup 2025-09-04 22:17:49 +02:00
Henne Vogelsang
04beb397ee Put RailsVersion into autoloaded path
Also configure it for the next rails version
2025-08-12 17:33:30 +02:00
Henne Vogelsang
988b3bf689 Autocorrect new rubocop offenses 2025-08-12 16:44:20 +02:00
Henne Vogelsang
494af47af2 Remove Organization from the rest of the code base.. 2024-06-07 17:42:09 +02:00
Henne Vogelsang
b2f0796799 Drop mysql2 support, settle on postgresql
It's enough work to support one database, let's settle on
the defacto Rails default.
2024-06-06 18:05:52 +02:00
Henne Vogelsang
85dae98a76 👋 update_attributes
You served us well...
2022-02-23 14:36:05 +01:00
Henne Vogelsang
95609358ec Merge pull request #2844 from hennevogel/refactoring/factory-linting
Validate factories exactly once
2021-08-18 15:36:23 +02:00
Henne Vogelsang
7dbe2d19fe Move factory linting to CI cycle
No need to do this before each and every spec or example. Speeds
up suite and make things less fragile.
2021-08-18 14:38:55 +02:00
Henne Vogelsang
614bdf03a3 Drop unused rubocop tasks 2021-08-18 14:30:29 +02:00
Henne Vogelsang
5cbd15eeef Introduces next_rails 2021-08-17 14:05:19 +02:00
Andrew Kvalheim
266fdbabea Omit nil SMTP settings
Allows leaving `smtp_settings[:domain]` unspecified. Explicitly setting
it to `nil` (as when `OSEM_SMTP_DOMAIN` is unset) overrides the default
value of `'localhost.localdomain'` and caused SMTP connections to fail
with `EOFError`.
2021-03-06 21:10:36 +01:00
Henne Vogelsang
be6464ff83 Switch to github actions
👋 travis, it was nice while it lasted! ❤️
2021-03-06 02:41:07 +01:00
Hiroshi SHIBATA
ae98ac1430 Fixed some typos (#2695)
* Fix typos
2020-10-30 11:06:43 +02:00
Henne Vogelsang
3f07a8e68c Only define rubocop tasks in the dev env
This broke loading the rake tasks in the production environment as we only have
rubocop in development.
2019-05-07 15:43:25 +02:00
Ana María Martínez Gómez
0ad06c6fcb Remove accidentaly commited files
They were added by accident in
https://github.com/openSUSE/osem/pull/2505
2019-04-30 13:55:49 +02:00
Ana María Martínez Gómez
e31d848e75 Add rake tasks for Rubocop
To always run rubocop with the same options (specially important when
regenerating the todo file).

It creates the following three tasks:

rake rubocop                     # Run RuboCop on the whole project
rake rubocop:auto_correct        # Auto-correct RuboCop offenses
rake rubocop:auto_gen_config     # Generate .rubocop_todo.yml
2019-04-29 16:34:49 +02:00
Henne Vogelsang
ad56b4bb78 Document/fix conference versions view 2019-03-08 15:02:46 +01:00
Henne Vogelsang
f9442bd07d Only replace selected schedule if there is none
We have introduced this task a long time ago without any
release. In the meantime there might be people who have deployed,
hence have selected schedules already. Happened to openSUSE.
2019-03-08 14:39:33 +01:00
Henne Vogelsang
02f0fb078c Fix database setup in dev-env
The postgres image does not come with pre-configured osem
databases per environment. Calling db:create doesn't hurt if the
databases already exist, so let's do it every time we bootstrap.
2019-02-20 17:45:07 +01:00
Henne Vogelsang
f8266b29ee Task to drop all ahoy events
The ChangeVisitIdTypeOfAhoyEventsToInteger from 364be5541 is not very well done.
You can not change the schema without changing possibly existing data.
Ahoy events used some kind of string as `visit_id`. Changing this column
to integrer will just barf up `Mysql2::Error: Truncated incorrect INTEGER value`.

So we need a way for people who are in this situation now to get out of it.
Luckily we completely dropped ahoy events a while ago so we can just delete them.
2019-02-15 17:09:03 +01:00
Henne Vogelsang
2a7acf7369 Fixup INSTALL.md
- add a big fat warning
- Do not mentioned the deprecated docker setup anymore
- Fixup docker-compose production setup
2019-02-01 01:00:19 +01:00
James Mason
43bef689fc Rubocop autocorrections 2018-11-16 09:06:05 -08:00
Henne Vogelsang
f2ad141e32 Switch review apps to postgresql 2018-09-20 11:33:57 -07:00
Henne Vogelsang
f8b7233404 Put database.yml into the code base
It works by default, we have a mechanism to configure it (dotenv.example)
and we want to be a 12factor app, right? Let's do this...
2018-09-20 11:33:57 -07:00
Henne Vogelsang
00670b03f6 Introduce setup rake tasks
Put what has to be done to have a working installation into one place instead
of spreading it to multiple files.
2018-09-12 21:05:39 +02:00
Henne Vogelsang
64d8f05bdd Update FactoryBot strings & urls 2018-09-06 00:42:28 +02:00
Henne Vogelsang
0a19418d15 Replace All FactoryGirl Constant References 2018-09-06 00:42:28 +02:00
Stella Rouzi
683f62a27c Add more options for surveys
* Survey period constraints
* Add abilities
* Enforce required questions
* Update survey_submssion updated_at
* Do a full match of possible answer and user reply
2018-07-03 08:46:15 +03:00
Stella Rouzi
68a8ec2204 Add task to populate demo data for surveys 2018-07-03 08:46:15 +03:00
Stella Rouzi
9f3c0eff5d Add surveys; custom generated by admins
Available during registration or after conference

Co-authored-by: Shyukri <shshyukriev@suse.com>
Co-authored-by: Henne <hvogel@opensuse.org>
Co-authored-by: Moises <mdeniz@suse.com>
2018-07-03 08:46:15 +03:00
James Mason
6d31dfeef4 Add frozen_string_literal magic comment
re: https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Style/FrozenStringLiteralComment
2018-05-09 06:54:26 -07:00
Nishanth Vijayan
68788ce9fc Show conference changelog
Use load_and_authorize_resource in versions controlller
Add conference specifc route to revision history page
Users with role can view revision_history only for the versions they have access to
Handle versions where conference_id is not set (records before papertrail was introduced)
2017-08-24 10:24:13 +00:00
AEtherC0r3
9c58397cd2 Enable Style/IndentationWidth cop
The offenses were fixed manually
2017-07-14 12:47:20 +03:00
shlok007
7d408ee33c suggested changes
change description of organization_admin
remove assign_role callback
2017-06-28 06:55:30 +05:30
shlok007
b72e64b238 Introduce organization admins 2017-06-28 06:55:30 +05:30
nasia
6cb11ff2f3 Add Style/WordArray at rubocop.yml #1463 2017-06-06 13:53:05 +03:00
Agrim Mittal
6c7e8bc8a1 Add rake task for resources 2017-05-13 18:30:30 +03:00
Siddhant Bajaj
f78f449258 Added demo data 2017-03-10 17:40:41 +05:30
Christian Bruckmayer
734e1d4dd9 Revert "Mock request to fix factory girl rake"
This reverts commit 0295850f20.

Because it broke our Heroku deployment.
2017-03-03 15:08:31 +01:00
Christian Bruckmayer
322d58c61c Revert "fixed travis issues"
This reverts commit 1255088ff0.

Because it broke our heroku deployment
2017-03-03 15:07:54 +01:00
Ana María Martínez Gómez
7000e63700 Merge pull request #1297 from siddhantbajaj/Travis_Errors
fixed travis error
2017-02-21 18:14:43 +01:00
Siddhant Bajaj
0295850f20 Mock request to fix factory girl rake 2017-02-21 14:44:52 +05:30
Siddhant Bajaj
1255088ff0 fixed travis issues 2017-02-20 23:43:02 +05:30
JewelSam
36f97ad5e5 Added task for set email_public attribute true for all users 2017-02-15 18:07:44 +03:00
Praveen Kumar
45e53a2ae9 rake task to destroy versions with event_attatchments 2016-08-31 17:24:52 +05:30
Nishanth Vijayan
8a4a9552af Add rake task to set conference_id in pre-existing versions 2016-08-12 13:35:56 +05:30
Ana
beb17165a2 Introduce an association for the selected_schedule
Association in Program fot the selected_schedule
2016-08-11 15:11:27 +02:00
Ana
c047ffd699 New associations and models: schedule versioning
For the schedule versioning in the admin interface (having multiple possible shcedules) we need to change some models and associations. It has also been create a rake:move_events_attributes task to migrate the data.

User Interface addapted to make use of the introduced associations and models
2016-08-11 15:06:52 +02:00