GraphQLError: Variable "$orderBy" got invalid value { position: "AscNullsFirst" }; Field "position"
Testing upgrade from 0.3.0 to 0.3.1 we get this error.
I have added the field "position" to company/people/opportunities but I am still getting it. I suspect it might be an issue with updating the TypeORM layer but I am not sure if this is the actual issue.
Is there a way to add this Field and continue with the current data?
86 Replies
Hi @๐
น๐
ฐ๐๐
ฑ๐
ด๐
ด, so it's not documented yet as this is super experimental but you can play with workspace:health (to make sure your workspace postgres schema is a healthy state compared to your metadata) and workspace:sync-metadata commands to upgrade it to the latest stages.
I'm quite sure this won't fully work but it should help
I'm interested into helping your migrate to the new version to see how good/bad the tooling is right now
Could you start by giving me the output of
npx nx command -- workspace:health -w {YOUR_WORKSPACE_ID} -d
? (it should write some logs into /logs folderShould there be something after -d?
nope
the -d is not properly named (it's dry-run but it should actually be something like --verbose)
Cannot find project 'workspace_6zezc5oiagj6yqldcepfgb226'
Cannot find project '{workspace_6zezc5oiagj6yqldcepfgb226}'
you need to put your workspace.id
not your workspace schema name
Ah, apologies
no worries, it's not documented so... ๐
Where do I find the id? I've seen it but can't remember where
Is it on the invite screen?
you'll need to either check it in your database, or in your nework table /graphql responses (you should see some information about the currentWorkspace and its id)
Found the id 75f6e77a-ec52-43fd-af2b-5e1ca8319b2e but no metter how I write it I get "Cannot find project"
Should the {} be there or was that your way of stating <insert-here> ?
was my way of saying insert there
Cannot find project '75f6e77a-ec52-43fd-af2b-5e1ca8319b2e'
You need to be in the server folder to execute it
~/dev/twenty/twenty/packages/twenty-server > npx nx command -- workspace:health -w 20202020-1c25-4d02-bf25-6aeccf7ea419 -d
[Nest] 58070 - 03/15/2024, 3:38:05 PM LOG [WorkspaceHealthCommand] Workspace is not healthy, found 1 issues
[Nest] 58070 - 03/15/2024, 3:38:05 PM LOG [WorkspaceHealthCommand] Issues written to log