Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: aiPersona interaction mode is not queryable for non-expert VCs #4149

Open
Comoque1 opened this issue Jun 26, 2024 · 2 comments
Open

BUG: aiPersona interaction mode is not queryable for non-expert VCs #4149

Comoque1 opened this issue Jun 26, 2024 · 2 comments
Assignees
Labels
bug Something isn't working server

Comments

@Comoque1
Copy link
Member

Comoque1 commented Jun 26, 2024

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to acc-alkem.io/graphql
  2. Perform the following query:
query {
  virtualContributors {
    account {
      activeSubscription {
        expires
        name
      }
      license {
        id
        visibility
      }
    }
    aiPersona {
      bodyOfKnowledgeType
      dataAccessMode
      description
      interactionModes
    }
    searchVisibility
    listedInStore
    profile {
      displayName
    }
  }
}
  1. Error is thrown: "message": "Enum \"AiPersonaBodyOfKnowledgeType\" cannot represent value: \"\"",
  2. See error

image.png

Expected behavior
aiPersona all fields are queryable

@Comoque1 Comoque1 added bug Something isn't working server labels Jun 26, 2024
@techsmyth techsmyth self-assigned this Jun 26, 2024
@valentinyanakiev
Copy link
Member

"message": "Enum "AiPersonaInteractionMode" cannot represent value: "[discussion-tagging]"",
"locations": [
{
"line": 17,
"column": 7
}
],
"path": [
"virtualContributors",
10,
"aiPersona",
"interactionModes",
0
],
"extensions": {
"code": "INTERNAL_SERVER_ERROR",
"stacktrace": [
"GraphQLError: Enum "AiPersonaInteractionMode" cannot represent value: "[discussion-tagging]"",
" at GraphQLEnumType.serialize (/usr/src/app/node_modules/graphql/type/definition.js:1103:13)",
" at completeLeafValue (/usr/src/app/node_modules/graphql/execution/execute.js:738:39)",
" at completeValue (/usr/src/app/node_modules/graphql/execution/execute.js:619:12)",
" at completeValue (/usr/src/app/node_modules/graphql/execution/execute.js:584:23)",
" at /usr/src/app/node_modules/graphql/execution/execute.js:696:25",
" at Function.from ()",
" at completeListValue (/usr/src/app/node_modules/graphql/execution/execute.js:676:34)",
" at completeValue (/usr/src/app/node_modules/graphql/execution/execute.js:607:12)",
" at completeValue (/usr/src/app/node_modules/graphql/execution/execute.js:584:23)",
" at executeField (/usr/src/app/node_modules/graphql/execution/execute.js:489:19)",
" at executeFields (/usr/src/app/node_modules/graphql/execution/execute.js:413:20)",
" at completeObjectValue (/usr/src/app/node_modules/graphql/execution/execute.js:914:10)",
" at completeValue (/usr/src/app/node_modules/graphql/execution/execute.js:635:12)",
" at /usr/src/app/node_modules/graphql/execution/execute.js:486:9",
" at process.processTicksAndRejections (node:internal/process/task_queues:95:5)",
" at async Promise.all (index 1)"
]
}
},

@techsmyth techsmyth changed the title BUG: aiPersona is available to top level VC query BUG: aiPersona interaction mode is not queryable Jul 1, 2024
@techsmyth
Copy link
Member

techsmyth commented Jul 1, 2024

Data dependent, here is the results of a local run:
image

I suspect it is due to having VCs / AI Personas that do not then have a bon type set e.g. community engine or help?

Can you please look at the data in the column in production for the ai_persona table?

@techsmyth techsmyth changed the title BUG: aiPersona interaction mode is not queryable BUG: aiPersona interaction mode is not queryable for non-expert VCs Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working server
Projects
None yet
Development

No branches or pull requests

3 participants