-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore(deps): bump guardian_db from 2.0.3 to 2.1.0 Bumps [guardian_db](https://github.com/ueberauth/guardian_db) from 2.0.3 to 2.1.0. - [Release notes](https://github.com/ueberauth/guardian_db/releases) - [Changelog](https://github.com/ueberauth/guardian_db/blob/master/CHANGELOG.md) - [Commits](ueberauth/guardian_db@v2.0.3...v2.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * chore(deps): bump atomex from 0.3.0 to 0.4.1 Bumps [atomex](https://github.com/Betree/atomex) from 0.3.0 to 0.4.1. - [Release notes](https://github.com/Betree/atomex/releases) - [Changelog](https://github.com/Betree/atomex/blob/master/CHANGELOG.md) - [Commits](https://github.com/Betree/atomex/commits/0.4.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * Updated readme status badges * chore(deps): bump ecto_sql from 3.5.4 to 3.6.0 Bumps [ecto_sql](https://github.com/elixir-ecto/ecto_sql) from 3.5.4 to 3.6.0. - [Release notes](https://github.com/elixir-ecto/ecto_sql/releases) - [Changelog](https://github.com/elixir-ecto/ecto_sql/blob/master/CHANGELOG.md) - [Commits](https://github.com/elixir-ecto/ecto_sql/commits) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * 10 statements out of videos (#309) * Add graphql api to request (empty) statements Statements are empty for now. * Query statements * Add rest API route to query comments through statement This allow to decouple comments from video * Add filters on Statement.query_list * Add video field in graphql statement object * Remove commented code * Remove work on statement rest api * fix(statements): iterate on feedback * Add speaker_id filter to statements * fix(StatementsQuery): usage with null + simplify Co-authored-by: Benjamin Piouffle <benjamin@opencollective.com> * Create Dependabot config file (#329) Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> * feat: Add reputation changes to user actions (#350) * fix(Actions): compute_reputation query (#363) * Reputation changes in activity log (#366) * feat: Reputation changes in activity log * enhancement(ActivityLog): Ignore self actions in :target * enhancement: Insert revert action when reversing vote (#367) Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Wid-Ga毛l Destin <wid.destin@gmail.com> Co-authored-by: vguen <v.guennou7@gmail.com>
- Loading branch information
1 parent
2784eb9
commit ab6a4ca
Showing
22 changed files
with
335 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: mix | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
time: "04:00" | ||
open-pull-requests-limit: 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
defmodule CF.Graphql.Resolvers.Statements do | ||
@moduledoc """ | ||
Resolver for `DB.Schema.Statement` | ||
""" | ||
|
||
alias Kaur.Result | ||
|
||
import Ecto.Query | ||
import Absinthe.Resolution.Helpers, only: [batch: 3] | ||
|
||
alias DB.Repo | ||
alias DB.Schema.Statement | ||
|
||
# Queries | ||
|
||
def paginated_list(_root, args = %{offset: offset, limit: limit}, _info) do | ||
Statement | ||
|> Statement.query_list(Map.get(args, :filters, [])) | ||
|> Repo.paginate(page: offset, page_size: limit) | ||
|> Result.ok() | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
apps/cf_graphql/lib/schema/input_objects/statement_filter.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
defmodule CF.Graphql.Schema.InputObjects.StatementFilter do | ||
@moduledoc """ | ||
Represent the possible filters to apply to statement. | ||
""" | ||
|
||
use Absinthe.Schema.Notation | ||
use Absinthe.Ecto, repo: DB.Repo | ||
|
||
@desc "Props to filter statements on" | ||
input_object :statement_filter do | ||
field(:commented, :boolean) | ||
field(:speaker_id, :id) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.