- Issue created by @lazzyvn
- π¦πΊAustralia almunnings Melbourne, π¦πΊ
As you are the maintainer of the triple field module, there is good opportunity for you to add this integration to your own module.
Is there any reason you donβt want full control?
- π«π·France lazzyvn paris
Yes. I did this in module triple field, but when active triple field in schemas I go back to the explorer node has gone (without error). I put 2 files in graphql compose and like magic it works fine. I tested twice but I can't explain it (I guess the annotation
@GraphQLComposeFieldType cannot detect custom plugin) - π¦πΊAustralia almunnings Melbourne, π¦πΊ
Itβs all built on those plugins loading.
Did you check your namespaces? - Assigned to almunnings
- Status changed to Postponed: needs info
7 months ago 7:37am 9 June 2024 - π¦πΊAustralia almunnings Melbourne, π¦πΊ
Testing reveals an issue with Drupal 11.
\Drupal\Core\Config\Schema\SchemaIncompleteException: No schema for triples_field.settings
This may be an issue for the triple field module.
Feature delayed until upstream module passes D11 testshttps://git.drupalcode.org/project/graphql_compose/-/jobs/1815750
- π«π·France lazzyvn paris
what should I do for the triple field? in the module there is triples_field.schema.yml is there something wrong?
- π¦πΊAustralia almunnings Melbourne, π¦πΊ
Looks like you need to define your schema for triples_field.settings within your modules schema.
- π«π·France lazzyvn paris
Done. triples_field.settings is added in new version
- π¦πΊAustralia almunnings Melbourne, π¦πΊ
Hmmm no, I don't think you've tested that
1) Drupal\Tests\graphql_compose\Functional\Contrib\DoubleTripleFieldTest::testDoubleField Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for triples_field.settings with the following errors: triples_field.settings:fields.first missing schema, triples_field.settings:fields.second missing schema, triples_field.settings:fields.third missing schema
You might benefit by adding some phpunit tests to your module to check it installs ok?
Cheers
- π¦πΊAustralia almunnings Melbourne, π¦πΊ
- π«π·France lazzyvn paris
So strange that it is added in the first schema, I just check import / export field, it works fine
https://git.drupalcode.org/project/triples_field/-/blob/1.0.10/config/sc...triples_field.settings: type: config_object label: 'Triple subfield' mapping: fields: type: sequence label: Fields list sequence: first: type: string label: First subfield second: type: string label: Second subfield third: type: string label: Third subfield
-
almunnings β
committed 580e180c on 2.2.x authored by
lazzyvn β
Issue #3440809: Support triple field
-
almunnings β
committed 580e180c on 2.2.x authored by
lazzyvn β
- Status changed to Fixed
6 months ago 10:46am 29 June 2024 - Status changed to Fixed
6 months ago 11:36am 8 July 2024