Bananoid
Bananoid
AEAsh Elixir
Created by Bananoid on 8/30/2023 in #support
PGVector
i'll try
5 replies
AEAsh Elixir
Created by Bananoid on 8/30/2023 in #support
PGVector
thanks
5 replies
AEAsh Elixir
Created by Bananoid on 8/2/2023 in #support
Does Api.bulk_create support action's arguments?
hey sorry it work. Was just a typo 😵‍💫
19 replies
AEAsh Elixir
Created by Bananoid on 8/2/2023 in #support
Does Api.bulk_create support action's arguments?
I think that the problem could be that workspace_id is an action arguments and not a resource attribute?
19 replies
AEAsh Elixir
Created by Bananoid on 8/2/2023 in #support
Does Api.bulk_create support action's arguments?
%Ash.BulkResult{
status: :error,
errors: [
%Ash.Error.Invalid{
errors: [
%Ash.Error.Changes.Required{
field: :workspace_id,
type: :argument,
resource: Resources.Transcription,
changeset: nil,
query: nil,
error_context: [],
vars: [],
path: [],
stacktrace: #Stacktrace<>,
class: :invalid
}
],
stacktraces?: true,
changeset: nil,
query: nil,
error_context: [],
vars: [],
path: [],
stacktrace: #Stacktrace<>,
class: :invalid
} |
nil
],
records: nil,
notifications: [],
error_count: 1
}
%Ash.BulkResult{
status: :error,
errors: [
%Ash.Error.Invalid{
errors: [
%Ash.Error.Changes.Required{
field: :workspace_id,
type: :argument,
resource: Resources.Transcription,
changeset: nil,
query: nil,
error_context: [],
vars: [],
path: [],
stacktrace: #Stacktrace<>,
class: :invalid
}
],
stacktraces?: true,
changeset: nil,
query: nil,
error_context: [],
vars: [],
path: [],
stacktrace: #Stacktrace<>,
class: :invalid
} |
nil
],
records: nil,
notifications: [],
error_count: 1
}
19 replies
AEAsh Elixir
Created by Bananoid on 8/2/2023 in #support
Does Api.bulk_create support action's arguments?
I'm not providing a stream but a list of maps
19 replies
AEAsh Elixir
Created by Bananoid on 8/2/2023 in #support
Does Api.bulk_create support action's arguments?
but I get an error
%Ash.BulkResult{
status: :error,
errors: [],
records: nil,
notifications: [],
error_count: 3
}
%Ash.BulkResult{
status: :error,
errors: [],
records: nil,
notifications: [],
error_count: 3
}
19 replies
AEAsh Elixir
Created by Bananoid on 8/2/2023 in #support
Does Api.bulk_create support action's arguments?
Api.bulk_create(
[
%{workspace_id: "1e4657e7...", start: 0, result: %{...}},
%{workspace_id: "1e4657e7...", start: 0, result: %{...}},
...
], ItemResource, :create)
Api.bulk_create(
[
%{workspace_id: "1e4657e7...", start: 0, result: %{...}},
%{workspace_id: "1e4657e7...", start: 0, result: %{...}},
...
], ItemResource, :create)
19 replies
AEAsh Elixir
Created by Bananoid on 7/6/2023 in #support
How to create a second resource on a create action?
thanks
6 replies
AEAsh Elixir
Created by Bananoid on 7/5/2023 in #support
Many_to_many on email destination
thanks
16 replies
AEAsh Elixir
Created by Bananoid on 7/5/2023 in #support
Many_to_many on email destination
and if i do
create :assign do
argument :workspace_id, :uuid do
allow_nil? false
end

argument :email, :ci_string do
allow_nil? false
end

accept [:role, :status]

change manage_relationship(
:workspace_id,
:workspace,
type: :append_and_remove,
value_is_key: :id
)

change manage_relationship(
:email,
:user,
type: :append_and_remove,
value_is_key: :email
)
end
create :assign do
argument :workspace_id, :uuid do
allow_nil? false
end

argument :email, :ci_string do
allow_nil? false
end

accept [:role, :status]

change manage_relationship(
:workspace_id,
:workspace,
type: :append_and_remove,
value_is_key: :id
)

change manage_relationship(
:email,
:user,
type: :append_and_remove,
value_is_key: :email
)
end
i get
** (Ash.Error.Invalid) Input Invalid

* Invalid value provided for user: cannot provide structs that don't match the destination.
(ash 2.11.2) lib/ash/api/api.ex:2123: Ash.Api.unwrap_or_raise!/3
iex:7: (file)
** (Ash.Error.Invalid) Input Invalid

* Invalid value provided for user: cannot provide structs that don't match the destination.
(ash 2.11.2) lib/ash/api/api.ex:2123: Ash.Api.unwrap_or_raise!/3
iex:7: (file)
16 replies
AEAsh Elixir
Created by Bananoid on 7/5/2023 in #support
Many_to_many on email destination
Thanks i will try that path. But do you know why I'm getting this error?
16 replies
AEAsh Elixir
Created by Bananoid on 7/5/2023 in #support
Many_to_many on email destination
I'm trying to use email instead of user id so that I can invite users to the workspace even if they are not yet registered. Is this the right approach to achieve this?
16 replies
AEAsh Elixir
Created by Bananoid on 7/5/2023 in #support
Many_to_many on email destination
I changed the assign action and add the relation to user but I'm still get this error:
** (Ash.Error.Invalid) Input Invalid

* relationship user is required
(ash 2.11.2) lib/ash/api/api.ex:2123: Ash.Api.unwrap_or_raise!/3
iex:7: (file)
** (Ash.Error.Invalid) Input Invalid

* relationship user is required
(ash 2.11.2) lib/ash/api/api.ex:2123: Ash.Api.unwrap_or_raise!/3
iex:7: (file)
16 replies
AEAsh Elixir
Created by Bananoid on 7/5/2023 in #support
Many_to_many on email destination
Thank you very much.
16 replies