Commit Graph

318 Commits

Author SHA1 Message Date
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
82b34f112e Merge branch 'improve-tests' into 'master'
Improve tests

See merge request framasoft/mobilizon!78
2019-02-22 18:13:01 +01:00
Thomas Citharel
b044924278 Improve tests
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-02-22 18:07:20 +01:00
Thomas Citharel
25aa7eae6d Merge branch 'feature/router-enum' into 'master'
Refactor router

See merge request framasoft/mobilizon!76
2019-02-22 17:06:34 +01:00
Thomas Citharel
f29a3926ed Merge branch 'dializer-fixes' into 'master'
A few fixes comming from Dialyser

See merge request framasoft/mobilizon!77
2019-02-22 17:04:52 +01:00
Chocobozzz
ad78339040 Refactor router 2019-02-22 16:58:03 +01:00
Thomas Citharel
71d06d4024 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
d063f114ef Merge branch 'ci-allow-format-failure' into 'master'
Fix mix format and format migrations too

See merge request framasoft/mobilizon!75
2019-02-22 15:00:36 +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
3b1b1574d3 Merge branch 'search' into 'master'
Search

See merge request framasoft/mobilizon!73
2019-02-22 13:57:33 +01:00
Thomas Citharel
8f1ff1c50b Merge branch 'feature/cleanup-event' into 'master'
Add leave/join/delete event logic

See merge request framasoft/mobilizon!74
2019-02-22 13:54:50 +01:00
Thomas Citharel
89e8cc056c Add a new Phoenix config option
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-02-22 13:53:11 +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
Chocobozzz
761f0a5f40 Add leave/join/delete event logic 2019-02-22 13:49:23 +01:00
Thomas Citharel
959cafadce Merge branch 'update-ci' into 'master'
Update CI Docker Image

See merge request framasoft/mobilizon!72
2019-02-21 17:21:07 +01:00
Thomas Citharel
493243ff0b Update CI
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-02-21 17:14:49 +01:00
Thomas Citharel
7f88b10b97 Merge branch 'tag_relations' into 'master'
Allow tag relations + bump ecto deps

See merge request framasoft/mobilizon!71
2019-02-21 17:11:29 +01:00
Thomas Citharel
b1a474f610 Update ex_crypto
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-02-21 16:59:39 +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
261dc882e2 Merge branch 'dependabot/npm_and_yarn/js/register-service-worker-1.6.1' into 'master'
Bump register-service-worker from 1.5.2 to 1.6.1 in /js/

See merge request framasoft/mobilizon!70
2019-02-12 08:47:04 +01:00
Thomas Citharel
8d18d08267 Merge branch 'dependabot/hex/geo-3.1.0' into 'master'
Bump geo from 3.0.0 to 3.1.0

See merge request framasoft/mobilizon!69
2019-02-12 08:46:08 +01:00
Thomas Citharel
2578f415ad Bump register-service-worker from 1.5.2 to 1.6.1 in /js/
Bumps [register-service-worker](https://github.com/yyx990803/register-service-worker) from 1.5.2 to 1.6.1.
- [Release notes](https://github.com/yyx990803/register-service-worker/releases)
- [Changelog](https://github.com/yyx990803/register-service-worker/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yyx990803/register-service-worker/commits/v1.6.1)
2019-02-12 05:16:07 +01:00
Thomas Citharel
48ee5c0894 Bump geo from 3.0.0 to 3.1.0
Bumps [geo](https://github.com/bryanjos/geo) from 3.0.0 to 3.1.0.
- [Release notes](https://github.com/bryanjos/geo/releases)
- [Changelog](https://github.com/bryanjos/geo/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bryanjos/geo/compare/v3.0.0...v3.1.0)
2019-02-09 05:12:35 +01:00
Thomas Citharel
a0198b83d9 Merge branch 'update-deps' into 'master'
Update deps

See merge request framasoft/mobilizon!68
2019-02-08 11:35:35 +01:00
Thomas Citharel
ba0e29e56e Update deps 2019-02-08 11:35:35 +01:00
Thomas Citharel
cda20455f4 Merge branch 'dependabot/hex/excoveralls-0.10.5' into 'master'
Bump excoveralls from 0.10.3 to 0.10.5

See merge request framasoft/mobilizon!65
2019-02-08 11:03:26 +01:00
Thomas Citharel
5ab6786b06 Merge branch 'dependabot/npm_and_yarn/js/apollo-absinthe-upload-link-1.5.0' into 'master'
Bump apollo-absinthe-upload-link from 1.4.0 to 1.5.0 in /js/

See merge request framasoft/mobilizon!67
2019-02-08 11:03:10 +01:00
Thomas Citharel
25d23169fb Merge branch 'dependabot/hex/httpoison-1.5.0' into 'master'
Bump httpoison from 1.4.0 to 1.5.0

See merge request framasoft/mobilizon!66
2019-02-08 10:57:02 +01:00
Thomas Citharel
ea1e66cc94 Bump apollo-absinthe-upload-link from 1.4.0 to 1.5.0 in /js/
Bumps [apollo-absinthe-upload-link](https://github.com/bytewitchcraft/apollo-absinthe-upload-link) from 1.4.0 to 1.5.0.
- [Release notes](https://github.com/bytewitchcraft/apollo-absinthe-upload-link/releases)
- [Commits](https://github.com/bytewitchcraft/apollo-absinthe-upload-link/compare/1.4.0...1.5.0)
2019-02-08 10:56:32 +01:00
Thomas Citharel
5b6f9485ca Bump httpoison from 1.4.0 to 1.5.0
Bumps [httpoison](https://github.com/edgurgel/httpoison) from 1.4.0 to 1.5.0.
- [Release notes](https://github.com/edgurgel/httpoison/releases)
- [Changelog](https://github.com/edgurgel/httpoison/blob/master/CHANGELOG.md)
- [Commits](https://github.com/edgurgel/httpoison/compare/v1.4.0...v1.5.0)
2019-02-08 10:55:40 +01:00
Thomas Citharel
252eae7bd2 Merge branch 'dependabot/hex/ecto_enum-1.2.0' into 'master'
Bump ecto_enum from 1.1.0 to 1.2.0

See merge request framasoft/mobilizon!63
2019-02-08 10:50:47 +01:00
Thomas Citharel
5c0ec8eb26 Merge branch 'dependabot/hex/ex_doc-0.19.3' into 'master'
Bump ex_doc from 0.19.1 to 0.19.3

See merge request framasoft/mobilizon!64
2019-02-08 10:45:56 +01:00
Thomas Citharel
16849506a5 Bump excoveralls from 0.10.3 to 0.10.5
Bumps [excoveralls](https://github.com/parroty/excoveralls) from 0.10.3 to 0.10.5.
- [Release notes](https://github.com/parroty/excoveralls/releases)
- [Changelog](https://github.com/parroty/excoveralls/blob/master/CHANGELOG.md)
- [Commits](https://github.com/parroty/excoveralls/compare/v0.10.3...v0.10.5)
2019-02-08 10:43:14 +01:00
Thomas Citharel
bf6ecc20fa Merge branch 'master' into 'dependabot/hex/ecto_enum-1.2.0'
# Conflicts:
#   mix.lock
2019-02-08 10:36:26 +01:00
Thomas Citharel
7d14dc2727 Bump ex_doc from 0.19.1 to 0.19.3
Bumps [ex_doc](https://github.com/elixir-lang/ex_doc) from 0.19.1 to 0.19.3.
- [Release notes](https://github.com/elixir-lang/ex_doc/releases)
- [Changelog](https://github.com/elixir-lang/ex_doc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/elixir-lang/ex_doc/compare/v0.19.1...v0.19.3)
2019-02-08 10:33:19 +01:00
Thomas Citharel
3570961100 Merge branch 'dependabot/hex/ecto_autoslug_field-1.0.0' into 'master'
Bump ecto_autoslug_field from 0.5.1 to 1.0.0

See merge request framasoft/mobilizon!62
2019-02-08 10:28:31 +01:00
Thomas Citharel
97026b840e Bump ecto_enum from 1.1.0 to 1.2.0
Bumps [ecto_enum](https://github.com/gjaldon/ecto_enum) from 1.1.0 to 1.2.0.
- [Release notes](https://github.com/gjaldon/ecto_enum/releases)
- [Changelog](https://github.com/gjaldon/ecto_enum/blob/master/CHANGELOG.md)
- [Commits](https://github.com/gjaldon/ecto_enum/compare/v1.1.0...v1.2.0)
2019-02-08 10:25:57 +01:00
Thomas Citharel
185c1360bc Bump ecto_autoslug_field from 0.5.1 to 1.0.0
Bumps [ecto_autoslug_field](https://github.com/sobolevn/ecto_autoslug_field) from 0.5.1 to 1.0.0.
- [Release notes](https://github.com/sobolevn/ecto_autoslug_field/releases)
- [Changelog](https://github.com/sobolevn/ecto_autoslug_field/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sobolevn/ecto_autoslug_field/compare/0.5.1...1.0.0)
2019-02-08 10:17:47 +01:00
Thomas Citharel
27e5811485 Merge branch 'dependabot/hex/credo-1.0.2' into 'master'
Bump credo from 1.0.0 to 1.0.2

See merge request framasoft/mobilizon!61
2019-02-08 10:14:32 +01:00
Thomas Citharel
0f01aae614 Bump credo from 1.0.0 to 1.0.2
Bumps [credo](https://github.com/rrrene/credo) from 1.0.0 to 1.0.2.
- [Release notes](https://github.com/rrrene/credo/releases)
- [Changelog](https://github.com/rrrene/credo/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rrrene/credo/compare/v1.0.0...v1.0.2)
2019-02-08 05:12:38 +01:00
Thomas Citharel
2f82b5c5b5 Merge branch 'feature/participant-mutations' into 'master'
Add API to join and leave an event

See merge request framasoft/mobilizon!55
2019-02-07 18:04:50 +01:00
Thomas Citharel
eedbd15723 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
Thomas Citharel
102b324fd0 Merge branch 'dependabot/hex/cors_plug-2.0.0' into 'master'
Bump cors_plug from 1.5.2 to 2.0.0

See merge request framasoft/mobilizon!60
2019-02-07 17:09:50 +01:00
Thomas Citharel
f5e6bd6a23 Base default participant role on event join_options instead of visbility
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-02-07 17:09:04 +01:00
Chocobozzz
a9dcd13578 Add API to join and leave an event 2019-02-07 16:56:59 +01:00
Thomas Citharel
c84a5a475c Merge branch 'dependabot/hex/comeonin-4.1.2' into 'master'
Bump comeonin from 4.1.1 to 4.1.2

See merge request framasoft/mobilizon!59
2019-02-07 16:54:38 +01:00
Thomas Citharel
619ececc34 Bump cors_plug from 1.5.2 to 2.0.0
Bumps [cors_plug](https://github.com/mschae/cors_plug) from 1.5.2 to 2.0.0.
- [Release notes](https://github.com/mschae/cors_plug/releases)
- [Changelog](https://github.com/mschae/cors_plug/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mschae/cors_plug/compare/v1.5.2...v2.0.0)
2019-02-07 16:53:58 +01:00
Thomas Citharel
f2b5b2e3a6 Merge branch 'dependabot/hex/bamboo-1.2.0' into 'master'
Bump bamboo from 1.1.0 to 1.2.0

See merge request framasoft/mobilizon!58
2019-02-07 16:46:45 +01:00
Thomas Citharel
aeee05fa81 Merge branch 'participant-roles' into 'master'
Move Participant role from integer to enum

See merge request framasoft/mobilizon!56
2019-02-07 16:46:26 +01:00
Thomas Citharel
4d9ded1c47 Bump comeonin from 4.1.1 to 4.1.2
Bumps [comeonin](https://github.com/riverrun/comeonin) from 4.1.1 to 4.1.2.
- [Release notes](https://github.com/riverrun/comeonin/releases)
- [Changelog](https://github.com/riverrun/comeonin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/riverrun/comeonin/compare/v4.1.1...v4.1.2)
2019-02-07 16:44:43 +01:00