Here are the next tasks listed, as a TODO list:
-
Gradle: the plugin goals should run after the clean goal (otherwise the clean goal deletes the generated code)
-
[Gradle] issue #14 : build is not compatible with the
--configuration-cachegradle parameter (experimental feature) -
Empty the server Spring autoconfiguration class: controllers apparently can't be defined through bean declaration there. So this class content is currently useless
-
Correct the link to the
ignoredSpringMappingsin the wiki (FAQ Server) -
Check the generated doc for the
ignoredSpringMappingsplugin parameter -
Issue #214 and #215: add a
ignoredSpringMappingsparameter, to prevent the generation of some type Controllers, or field Controllers -
Improve the behaviour of the
ignoredSpringMappingsparameter : how to identify the already implemented spring mappings, to not generate them ? -
Add checks with queries that return interfaces (already ok?) and unions (also already ok?)
-
(for release 4.x, improve the batch mapper and data loader generation, WIP in the master_4x_change_batching_generation)
- Improve DataFetcherDelegates for interfaces: check their real use by the server
- Improve the way BatchMapper are generated
- Remove the useless methods of the DataFetchersDelegate: when a DataFetcherDelegate has withDataLoader=true, then two methods are generated for it. The one with the DataLoader (that is used), and the one without the DataLoader (that isn't used)
- Add a test to log useless methods in the implementation of dataFetchersDelegate
-
Upgrade to maven 4 (tested ok with maven 4rc5)
-
Check compatibility with gradle 10 (should be ok, as there is no deprecation build warning with gradle 9)
-
(to check) The gradle plugin may not compile without having first build locally the maven plugin (due to the custom-resttemplate dependency added in 3.1)
-
Restore the json schema validation, in GenerateCodeJsonSchemaPersonalization
-
Read the https://maven.apache.org/whatsnewinmaven4.html page, to check compatibility with maven 4
-
Check that the two generated graphQLClient (httpGraphQLClient and webSocketGraphQLClient) are properly documented in the tutorials
-
Check the links in the wiki (eg: https://graphql-maven-plugin-project.graphql-java-generator.com/client.html)
- And close issue in the GraphQL-Forum-Gradle-Tutorial-client project)
-
Add the generateDataFetchersForFields parameter in the tutorials
-
Dozer is deprecated. Replace it by mapstruct or modelmapper
-
plugin doc:
- Find and correct the dead links
- Check the generated doc for the
ignoredSpringMappingsplugin parameter - Correct the link to the
ignoredSpringMappingsin the wiki (FAQ Server)
-
Check the sitemap, to enhance SEO, for instance see the doc here
-
Align with GraphQL spec 2021 (almost done)
- Check the impact of the changes in the interface hierarchies
- All details in this blog)
- todo: add the PageInfo, Node, Edge, Connection interfaces
- Check the impact of the changes in the interface hierarchies
-
Instead of having to parameterize what to do with controllers, the plugin should be able to analyze the existing code by the implementor, find the defined controllers, and just define the others
- Take a look at beanshell
- Take a look at this stackoverflow answer
- Test ezreflections
-
Issue #220: use immutable classes or records instead of classes
-
generateBatchMappingDataFetchers:
- Complete the doc for the plugin parameter
- Add a link to spring-projects/spring-graphql#232
- Complete the doc for the plugin parameter
-
Issue with the generateBatchMappingDataFetchers:
- These data fetcher can not have access to the field arguments (see issue #232 of spring-graphql)
- This is ok if this field has no argument
- What should be done if this field has arguments ?
- This would be a minority of cases, so do nothing, that is:
- Generate a standard data fetcher
- try to still use a BatchLoader, but with a Context
- This would be a minority of cases, so do nothing, that is:
- These data fetcher can not have access to the field arguments (see issue #232 of spring-graphql)
-
The arguments for a subobject are available in the
DataFetchingEnvironment, thanks to thegetArgument(argName)method. For a scalar field, the idea is to add a getter for the field, with theDataFetchingEnvironmentas a parameter. This getter would be in the generated POJO. It would be nice to add the developper to configure the content of this getter. -
Idea #183: replace hard coded fields by maps. This would save memory for objects with lots of field (4000 fields in the identified use case)
-
Tutorial: add the documentation about the application.yml file
- Especially:
spring.main.web-application-type = none
- Especially:
-
Execute FieldTest.test_Issue1114_checkGenerateCode() (in plugin-logic, com.graphql_java_generator.plugin.language)
-
@EnableGraphQLRepositories: replace the string (that contains the package name) by a class (so that when changing a package name, the code is still valid)
-
Add a description for the GraphQL mojo
-
Document generateJPAAnnotation