Commit Graph

207 Commits

Author SHA1 Message Date
Thomas Citharel
185306e991 Merge branch 'bug/move-sql-columns-from-varchar-to-text' into 'master'
Handle fields limitation better

Closes #226, #225 et #239

See merge request framasoft/mobilizon!288
2019-10-18 11:45:13 +02:00
Thomas Citharel
60b9fa235b Add some backend changes and validation for field length
Closes #225 and #226

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-10-18 11:31:11 +02:00
Quentin
11d6c91d0f Translated using Weblate (Occitan)
Currently translated at 100.0% (62 of 62 strings)

Translation: Mobilizon/Backend
Translate-URL: https://weblate.framasoft.org/projects/mobilizon/backend/oc/
2019-10-17 16:31:57 +02:00
Zilverspar
0f60850bb5 Translated using Weblate (French)
Currently translated at 100.0% (62 of 62 strings)

Translation: Mobilizon/Backend
Translate-URL: https://weblate.framasoft.org/projects/mobilizon/backend/fr/
2019-10-17 16:31:57 +02:00
Quentin
63f325fc3d Translated using Weblate (Occitan)
Currently translated at 100.0% (54 of 54 strings)

Translation: Mobilizon/Backend
Translate-URL: https://weblate.framasoft.org/projects/mobilizon/backend/oc/
2019-10-17 16:31:57 +02:00
Thomas Citharel
88eee78123 Add e2e seed and test event creation
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-10-12 19:34:16 +02:00
Thomas Citharel
5e7c646225 Properly handle event status
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-10-11 16:34:03 +02:00
Thomas Citharel
896e6bf523 Add warning inside emails as well
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-10-11 10:44:53 +02:00
Thomas Citharel
40ac05c120 Translated using Weblate (English)
Currently translated at 100.0% (54 of 54 strings)

Translation: Mobilizon/Backend
Translate-URL: https://weblate.framasoft.org/projects/mobilizon/backend/en/
2019-10-10 15:29:11 +02:00
Quentin
2647b47205 Translated using Weblate (Occitan)
Currently translated at 100.0% (54 of 54 strings)

Translation: Mobilizon/Backend
Translate-URL: https://weblate.framasoft.org/projects/mobilizon/backend/oc/
2019-10-10 15:07:36 +02:00
Thomas Citharel
3d5cd5e398 Merge remote-tracking branch 'weblate/master' into i18n/update
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-10-08 14:49:24 +02:00
Quentin
5721279151 Translated using Weblate (Occitan)
Currently translated at 100.0% (44 of 44 strings)

Translation: Mobilizon/Backend
Translate-URL: https://weblate.framasoft.org/projects/mobilizon/backend/oc/
2019-10-08 14:29:51 +02:00
Quentin
29c59dce34 Translated using Weblate (French)
Currently translated at 97.7% (43 of 44 strings)

Translation: Mobilizon/Backend
Translate-URL: https://weblate.framasoft.org/projects/mobilizon/backend/fr/
2019-10-08 14:29:51 +02:00
Thomas Citharel
174a844ed5 Add draft feature
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-10-02 18:23:32 +02:00
Thomas Citharel
b0bba8ccb5 Save user locale and use it to translate things
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-10-01 13:08:09 +02:00
Thomas Citharel
bdd2f5743f Translated using Weblate (English)
Currently translated at 100.0% (44 of 44 strings)

Translation: Mobilizon/Backend
Translate-URL: https://weblate.framasoft.org/projects/mobilizon/backend/en/
2019-10-01 09:14:22 +02:00
Thomas Citharel
70ec23f7a8 Translated using Weblate (French)
Currently translated at 97.7% (43 of 44 strings)

Translation: Mobilizon/Backend
Translate-URL: https://weblate.framasoft.org/projects/mobilizon/backend/fr/
2019-10-01 09:12:31 +02:00
Thomas Citharel
1722047ca8 Translated using Weblate (English)
Currently translated at 100.0% (44 of 44 strings)

Translation: Mobilizon/Backend
Translate-URL: https://weblate.framasoft.org/projects/mobilizon/backend/en/
2019-09-30 19:10:51 +02:00
Thomas Citharel
596c82e6ab Translated using Weblate (French)
Currently translated at 97.7% (43 of 44 strings)

Translation: Mobilizon/Backend
Translate-URL: https://weblate.framasoft.org/projects/mobilizon/backend/fr/
2019-09-30 19:10:51 +02:00
Thomas Citharel
f8f5d0643a Notifications on event update
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-09-30 19:01:46 +02:00
Thomas Citharel
aab090f0c8 Send email notifications when a participation is approved/rejected
Also handles participant status :rejected instead of deleting the
participation

Closes #164

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-09-30 18:45:29 +02:00
Quentin
cec8179669 Translated using Weblate (Occitan)
Currently translated at 100.0% (25 of 25 strings)

Translation: Mobilizon/Backend
Translate-URL: https://weblate.framasoft.org/projects/mobilizon/backend/oc/
2019-09-25 14:00:03 +02:00
Thomas Citharel
5144f5825d Added translation using Weblate (Russian) 2019-09-24 16:40:08 +02:00
Thomas Citharel
b32f821384 Added translation using Weblate (Portuguese) 2019-09-24 16:40:07 +02:00
Thomas Citharel
0aeafe1752 Added translation using Weblate (Polish) 2019-09-24 16:40:06 +02:00
Thomas Citharel
b65619962d Added translation using Weblate (Occitan) 2019-09-24 16:40:06 +02:00
Thomas Citharel
ca5b45bddf Added translation using Weblate (Dutch) 2019-09-24 16:40:05 +02:00
Thomas Citharel
4713268269 Added translation using Weblate (Japanese) 2019-09-24 16:40:03 +02:00
Thomas Citharel
59f78f3213 Added translation using Weblate (Italian) 2019-09-24 16:40:02 +02:00
Thomas Citharel
9f9a182fe9 Added translation using Weblate (Spanish) 2019-09-24 16:39:59 +02:00
Thomas Citharel
923e574c37 Added translation using Weblate (German) 2019-09-24 16:39:59 +02:00
Thomas Citharel
dca61797fd Added translation using Weblate (Czech) 2019-09-24 16:39:53 +02:00
Thomas Citharel
9b5acb1c0f Translated using Weblate (English)
Currently translated at 100.0% (25 of 25 strings)

Translation: Mobilizon/Backend
Translate-URL: https://weblate.framasoft.org/projects/mobilizon/backend/en/
2019-09-23 20:05:47 +02:00
Thomas Citharel
344a39a313 Translated using Weblate (French)
Currently translated at 100.0% (25 of 25 strings)

Translation: Mobilizon/Backend
Translate-URL: https://weblate.framasoft.org/projects/mobilizon/backend/fr/
2019-09-23 19:59:56 +02:00
Thomas Citharel
59fae50318 🎨 Add fancy html emails
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-09-23 19:50:33 +02:00
miffigriffi
5c575ec4ab Merge branch 'master' into refactoring-based-on-credo-and-dialyzer 2019-09-22 00:40:53 +02:00
miffigriffy
49822b1f67 Apply formatting 2019-09-13 02:28:09 +02:00
miffigriffy
edfb22f40f Refactoring of Events context 2019-09-13 01:01:17 +02:00
Thomas Citharel
d30317fc44 Update backend gettext translations
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-09-12 13:10:13 +02:00
miffigriffy
d3c3641d0a Refactoring of Actors context 2019-09-09 00:52:49 +02:00
miffy
46bb816a23 Separating of Storage context 2019-09-08 01:49:56 +02:00
miffy
da70286dcd Refactoring of Users context 2019-09-07 19:55:45 +02:00
miffy
0efe0ad5d6 Refactoring of Reports context 2019-09-07 18:54:30 +02:00
Thomas Citharel
4844c8bc34 Improve event creation form by introducting EventOptions
It's a subentity that holds additional metadata in a map database type

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-09-02 17:11:27 +02:00
Thomas Citharel
0254c782f5 Remove events when deleting organizer
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-08-28 11:36:09 +02:00
Thomas Citharel
61ddcdecae Reuse existing addresses when creating an event
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-08-22 16:20:42 +02:00
Thomas Citharel
895bae4b7e Federate participations
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-08-20 10:17:28 +02:00
Thomas Citharel
1b3dfb20d2 Introduce relay
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-08-13 11:15:13 +02:00
Thomas Citharel
2d41e00771 Add address input and refactor federation stuff
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-07-30 10:35:29 +02:00
Thomas Citharel
ca4831f780 Introduce backend for reports
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-07-23 13:49:22 +02:00
Thomas Citharel
7ef4ef264b Attach actor to pictures entity 2019-05-31 18:07:37 +02:00
Thomas Citharel
3cb29be4fc Refactor media upload
Use Upload Media logic from Pleroma

Backend changes for picture upload

Move AS <-> Model conversion to separate module

Front changes

Downgrade apollo-client: https://github.com/Akryum/vue-apollo/issues/577

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-05-24 17:29:51 +02:00
Thomas Citharel
bf75335c2a Add visibility to actors
Also use url helpers to generate urls properly

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-04-25 19:05:05 +02:00
Thomas Citharel
5ee97dfa43 Implement related events
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-04-23 11:22:36 +02:00
Thomas Citharel
c64d4924d1 Add description slug field for events
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-04-11 14:45:31 +02:00
Thomas Citharel
9a881ed4d9 Work around Addresses to bring them properly through GraphQL
Got caught with https://github.com/absinthe-graphql/absinthe/issues/601
at some point, that's why fields are renamed

Fix tests

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-04-01 16:51:15 +02:00
Thomas Citharel
ff6053927a Add GraphQL support to handle FeedTokens
Closes #88

Automatically create tokens for new users and actors

Closes #89

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-03-08 18:52:27 +01:00
Thomas Citharel
30a5811b36 Add backend and endpoints for Feed Tokens
Closes #19 #86 #87

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-03-08 14:57:05 +01:00
Chocobozzz
aea9621fd9 Add join/leave group 2019-03-08 14:43:45 +01:00
Thomas Citharel
f27b6b9816 Introduce admin and moderator role, check role on list_users action
Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Add test for guards
2019-03-07 14:18:11 +01:00
Thomas Citharel
ad36e34b22 Add cached RSS feeds for actors endpoints 2019-02-27 18:30:01 +01:00
Thomas Citharel
c2a421eabd Make Categories a predefined list
Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Allow null values for categories for now

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-02-25 15:31:04 +01:00
Thomas Citharel
73df4b70a8 Fix mix format and format migrations too
Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Fix credo warnings

Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Show elixir version

Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Also lint migrations

Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Reset allow failure to false

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-02-22 14:53:09 +01:00
Thomas Citharel
bf6da6cc55 Implement search with PostgreSQL trigrams
Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Rename function to reflect that we only get one result

Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Add loggers and make Ecto call parallels during search

Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Implement trigrams for events & replace pg similarity operator % with <%

Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Fix tests

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-02-22 13:53:10 +01:00
Thomas Citharel
8cd3217f3e Allow tag relations + bump ecto deps
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-02-21 16:58:14 +01:00
Thomas Citharel
5b97eeaf80 Move Participant role from integer to enum
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-02-07 16:37:40 +01:00
Thomas Citharel
f01819e663 Set visibility field default to null
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-02-07 14:01:38 +01:00
Thomas Citharel
d8131c21c0 Split event visibility and join options
Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Fix tests

Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Fix format

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-02-07 11:49:14 +01:00
Chocobozzz
edf6dd9168 Add ability to delete a group 2019-01-25 16:08:06 +01:00
Thomas Citharel
36cb5f5089 Replace Vuetify with Bulma
Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Remove vuetify and add Bulma

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-01-24 15:35:57 +01:00
Thomas Citharel
b13b74af26 Remove type after column
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-01-15 14:22:06 +01:00
Thomas Citharel
d80b12b608 Remove last occurences of address_type
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-01-14 18:12:52 +01:00
Thomas Citharel
a1c4293cf4 Remove address_type and rename phone to phone_address
An event can indeed have several address types

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-01-14 17:48:08 +01:00
Thomas Citharel
ba8ba05761 Add visibility to comments
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-01-14 16:21:13 +01:00
Thomas Citharel
4a8f6a0824 🔍 Implement basic event visibility
See https://framagit.org/framasoft/mobilizon/wikis/spec/Event#visibility

Also brings support for event status (tentative/confirmed/cancelled)

Closes #56

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-01-14 15:56:07 +01:00
Thomas Citharel
bb060be708 Work on actors
* Implement group GraphQL APIs
* Change Actors changeset to properly set urls
* Remove old actors indexes and add some new ones

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-12-03 11:58:57 +01:00
Chocobozzz
535d7f38a7 Add script to run webpack analyzer 2018-11-30 16:05:21 +01:00
Thomas Citharel
4bdfda5ef7 Fix tests
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-11-12 23:36:51 +01:00
Thomas Citharel
a45fad45f7 Fix comments table references
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-11-08 17:57:10 +01:00
Thomas Citharel
4441521994 Move to GraphQL
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-11-06 10:30:27 +01:00
Thomas Citharel
6c6f93038e Rename project to Mobilizon
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-10-11 17:37:39 +02:00
Thomas Citharel
a4dc6cff4d Put js build through phoenix
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-10-10 14:57:35 +02:00
Thomas Citharel
a4deeb55d4 More tests 2018-08-24 11:34:00 +02:00
Thomas Citharel
b00cbb420f Add some tests
Also add a unicity constraint on the followers table

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-08-03 10:16:22 +02:00
Thomas Citharel
163f190142 Remove credo and use mix format, and lint everything
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-07-27 10:45:35 +02:00
Thomas Citharel
85ff349bd3 Add docker-compose dev
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-07-25 16:42:04 +02:00
Thomas Citharel
bcdfaab9bd Allow multiple identities (accounts actors) for one user.
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-07-10 10:00:07 +02:00
Thomas Citharel
b6659cae84 Mostly UI stuff
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-07-09 14:19:24 +02:00
Thomas Citharel
35e836fff4 Some work
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-07-04 14:29:17 +02:00
Thomas Citharel
b1d48ac676 Make tests great again !
(Also use only one field for public/private key pem)
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-06-14 17:25:55 +02:00
Thomas Citharel
10804e8705 Remove duplicate migration
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-06-06 18:25:57 +02:00
Thomas Citharel
164b6b014c Encore des commits degeu
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-06-06 18:18:33 +02:00
Thomas Citharel
4c60f0ec51 Add groups back
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-06-06 18:16:39 +02:00
Thomas Citharel
91a3805a47 Search
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-06-06 18:16:14 +02:00
Thomas Citharel
3495c8a323 Front-end stuff
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-06-06 18:15:45 +02:00
Thomas Citharel
416fd1e433 WIP
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-06-06 18:14:04 +02:00
Thomas Citharel
1a3fbcf7f7 WIP
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-06-06 18:12:21 +02:00
Thomas Citharel
4b4ecec693 Introduce avatar and banner and fetch Gravatar to fill avatar during registration
Signed-off-by: Thomas Citharel <tcit@tcit.fr>

typo

Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Rename avatar to avatar_url, same with header.

Add a comment to explain why the tweak with HTTPoison and TLS1.2

Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Rename avatar to avatar_url

Signed-off-by: Thomas Citharel <tcit@tcit.fr>

rename old avatar properties in front-end to avatar_url

Signed-off-by: Thomas Citharel <tcit@tcit.fr>

fix change gravatar from ?d= to ?default=

Signed-off-by: Thomas Citharel <tcit@tcit.fr>

reorganize aliases and imports

Signed-off-by: Thomas Citharel <tcit@tcit.fr>

set avatar url only when gravatar exists, add a test for that case

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-01-27 19:04:45 +01:00
Thomas Citharel
07382d6aca Add adresses
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-01-17 11:39:01 +01:00
Thomas Citharel
67ef32432e Fix front-end, allow events to be created by a group, allow to get sessions from an event
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-01-16 19:45:09 +01:00
Thomas Citharel
32bd50d161 fix tags
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-01-15 12:17:34 +01:00
Thomas Citharel
8b4d1ab4e4 Add categories properly
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-01-15 12:04:09 +01:00
Thomas Citharel
9df9a795c7 Add state and fix casting
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-01-15 11:50:26 +01:00
Thomas Citharel
20cd1bb579 Change models, new migrations, fix front and make tests work
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-01-13 23:33:03 +01:00
Thomas Citharel
92d2045735 end
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-01-09 17:52:26 +01:00
Thomas Citharel
8ac705d8c2 replace coherence with guardian 2017-12-09 14:58:37 +01:00
Thomas Citharel
90ceb4f6fe initial commit
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2017-12-08 09:58:14 +01:00