zf

zenflows testing
git clone https://s.sonu.ch/~srfsh/zf.git
Log | Files | Refs | Submodules | README | LICENSE

commit 08df969b398e63e0a734eac52eb70618befbe7d6
parent 42b9ccf0c62d6c08f784e139a9b7a63d55d13386
Author: srfsh <dev@srf.sh>
Date:   Wed,  6 Jul 2022 14:34:39 +0200

admin: remove passphrase requirement

Diffstat:
Msrc/zenflows/admin/type.ex | 15++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/src/zenflows/admin/type.ex b/src/zenflows/admin/type.ex @@ -7,10 +7,12 @@ use Absinthe.Schema.Notation alias Zenflows.Admin.Resolv +@admin_key "The configuration-defined key to authenticate admin calls." + object :mutation_admin do @desc "Create a Person Agent, a user." field :create_user, non_null(:person) do - @desc "The configuration-defined key to authenticate admin calls." + @desc @admin_key arg :admin_key, non_null(:string) @desc "A valid email address of the user. Must be unique." @@ -27,5 +29,16 @@ object :mutation_admin do resolve &Resolv.create_user/2 end + + @desc "Import repositories from a softwarepassport instance." + field :import_repos, :string do + @desc @admin_key + arg :admin_key, non_null(:string) + + @desc "The URL where all the repository information is listed." + arg :url, non_null(:string) + + resolve &Resolv.import_repos/2 + end end end