Commit Graph

64 Commits

Author SHA1 Message Date
Thomas Citharel a3ffc08e57
Add Activity Pub endpoints cache
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-03-01 18:30:46 +01:00
Thomas Citharel b3a3001e90
Fix render/4 -> render/3 calls
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-03-01 14:54:02 +01:00
Thomas Citharel 5713670ac9
Refactor Atom feed caching
Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Fixes
Fix tests
Fix tests
2019-03-01 14:53:56 +01:00
Thomas Citharel 02d1cea2d7
Add cached RSS feeds for actors endpoints 2019-02-27 18:30:01 +01:00
Thomas Citharel c4e327508b
Front-end fixes and updates
Especially Join/Leave event, Vue-Markdown replacement

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-02-25 17:20:06 +01:00
Thomas Citharel 7086fe8389
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 75554cd3f5 Merge branch 'improve-tests' into 'master'
Improve tests

See merge request framasoft/mobilizon!78
2019-02-22 18:13:01 +01:00
Thomas Citharel 8bba35e60b
Improve tests
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-02-22 18:07:20 +01:00
Thomas Citharel d37c873b04
A few fixes comming from Dialyser
Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Fixes

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-02-22 16:57:12 +01:00
Thomas Citharel 7dd7e8fc36
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 4ec40d601b
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 256d50e855
Allow tag relations + bump ecto deps
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-02-21 16:58:14 +01:00
Thomas Citharel dfa25e0d21
Events with only one event creator participant can't be left
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-02-07 17:57:49 +01:00
Chocobozzz 250f0b3bd1
Add API to join and leave an event 2019-02-07 16:56:59 +01:00
Chocobozzz ec961aa5e6
Add group resolver tests 2019-02-07 10:29:01 +01:00
Thomas Citharel f3d37325fa
Add missing @moduledoc for MobilizonWeb.Schema.Utils
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-02-07 10:27:54 +01:00
Thomas Citharel ce65c992d3
Handle validated users without profiles
Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Format

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-01-30 15:59:30 +01:00
Thomas Citharel 681653e035
Introduce registerPerson mutation
To register a profile from an unactivated user

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

👤 Fix Person interface use

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

Change host function for data property

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-01-30 15:59:27 +01:00
Thomas Citharel c55ae19f84
Move queries and mutations to submodules
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-01-30 10:54:58 +01:00
Thomas Citharel 0c2931c10b
Make register/1 only create an user
Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Credo fix

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

Fix rebase

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-01-30 10:53:40 +01:00
Chocobozzz dd174f2446
Add ability to delete an event 2019-01-25 17:07:36 +01:00
Chocobozzz 8388240957
Add ability to delete a group 2019-01-25 16:08:06 +01:00
Thomas Citharel c660210439
Fix tests
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-01-24 15:36:09 +01:00
Thomas Citharel 90fd0ff6b6
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 289ba03960
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 b0bc8dfa5d
✂️ Split GraphQL schema into several files
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-01-14 17:13:17 +01:00
Thomas Citharel 2ece62bfb8
Add visibility to comments
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-01-14 16:21:13 +01:00
Chocobozzz df4d3892c3
Fix reset password component 2019-01-11 13:58:29 +01:00
Thomas Citharel 2f2c538cc9
Add Credo checks and refactor code
Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Make Logger.debug calls lazy

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

Add missing @moduledocs

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

Refactor according to credo

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

Final fixes and add credo to CI

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

Closes #52
2019-01-03 15:52:48 +01:00
Thomas Citharel 8d943f950f
New generate config task from Pleroma upstream & move tasks namespace
Little fixes and tests

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-01-03 11:34:31 +01:00
Thomas Citharel 6885c73aa8
Change configuration and docker compose
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-01-03 11:33:52 +01:00
Thomas Citharel d5eac1df6c
Comment Webfinger controller properly
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-12-27 11:31:06 +01:00
Thomas Citharel caae6d0c0a
Add links to upstream Pleroma files
(rename AP tests module names too)

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-12-27 11:24:04 +01:00
Thomas Citharel a8311d508e
Remove warnings on two unused variables
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-12-27 08:26:16 +01:00
Thomas Citharel bee896a485
Test paginated event list
Introduce an event number limit for…limits

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-12-21 11:45:55 +01:00
Thomas Citharel 5a140bef35
📧 [AP] Set correct "to" when creating a comment instead of always
targetting public

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-12-21 09:03:10 +01:00
Thomas Citharel 0f31535cf3
Comment out Earmark-related code (no markdown for now)
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-12-20 18:30:51 +01:00
Thomas Citharel c1e6612405
[WIP] Test transmogrifier
Introduce MobilizonWeb.API namespace

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

Format

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

WIP

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

remove unneeded code

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

Fix tests

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

Fix warnings

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-12-20 17:44:33 +01:00
Chocobozzz 48eb72cd4c
Add pagination to events, groups, partipants to an event and categories
lists
2018-12-14 11:36:22 +01:00
Thomas Citharel dd87ad4f7e
Mix format
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-12-03 12:08:18 +01:00
Thomas Citharel fd0dba62e0
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
Thomas Citharel 5aaf291bc9
Remove aliases that don't do anything
Thx @chocobozzz

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-11-29 17:46:28 +01:00
Thomas Citharel 51aa511101
Changes to the actor - user relation
Now the GraphQL API replies mostly with users which have the default_actor
property filled to show profile information

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-11-29 17:43:22 +01:00
Thomas Citharel 6f15127cb0
Remove unused files
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-11-28 18:23:19 +01:00
Thomas Citharel 534138f775
More test stuff
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-11-28 17:16:23 +01:00
Thomas Citharel 0cb39de01e Add more tests for user
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-11-28 14:48:55 +01:00
Thomas Citharel da378633ac Moar coverage
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-11-27 17:54:54 +01:00
Thomas Citharel d5318a37e1 Remove old channels files
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-11-27 11:30:11 +01:00
Thomas Citharel 9f9113f094 Change schema a bit
Closes #29

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-11-23 15:03:53 +01:00
Thomas Citharel 403a32e996 Improve overall configuration and support
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-11-15 17:35:47 +01:00