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

Graphql tooling #166

Merged
merged 4 commits into from
Jun 8, 2022
Merged

Conversation

danielwilms
Copy link
Contributor

Upgrade of graphql as community supported tool

- adopt graphql to use exporters
- remove additional fields `source` and `channel`
- add graphql specific parameter to add additional metadata
- adopt readme
- remove graphql exporters from contrib

call with:
```
${TOOLSDIR}/vspec2graphql.py -I ./spec --gqlfield "source" "Source System" --gqlfield "channel" "Collecting channel" ./spec/VehicleSignalSpecification.vspec vss_rel_$$(cat VERSION).graphql.ts
```

@danielwilms danielwilms mentioned this pull request May 31, 2022
README.md Outdated Show resolved Hide resolved
vspec2graphql.py Outdated Show resolved Hide resolved
@danielwilms
Copy link
Contributor Author

@danielwilms rebase and fix comments, then ready to merge

Decision to merge 2022/06/07

adobekan and others added 3 commits June 8, 2022 09:29
Tooling for creating a graphql schema based on vspec files.
- moved tool to contrib
- rename script as alternative
- adoptions to new tools version
`Source` and `channel` weren't described properly.
This commit adds documentation for those fields, as
proposed by @ericbosch.

VSS `uint32` was mapped to `GraphQLInt`, which wasn't
sufficient. Now changed to `GraphQLFloat`.

Signed-off-by: Daniel Wilms <Daniel.DW.Wilms@bmw.de>
@danielwilms danielwilms force-pushed the graphql_tooling_pr_official branch 2 times, most recently from 3bdd81f to 41f71ef Compare June 8, 2022 06:41
@danielwilms
Copy link
Contributor Author

@erikbosch, rebased, fixed typo and added the link to the documentation

@danielwilms
Copy link
Contributor Author

@erikbosch, please wait with merging. found one bug still

- adopt graphql to use exporters
- remove additional fields `source` and `channel`
- add graphql specific parameter to add additional metadata
- adopt readme
- remove graphql exporters from contrib

call with:
```
${TOOLSDIR}/vspec2graphql.py -I ./spec --gqlfield "source" "Source System" --gqlfield "channel" "Collecting channel" ./spec/VehicleSignalSpecification.vspec vss_rel_$$(cat VERSION).graphql.ts
```

Signed-off-by: Daniel Wilms <Daniel.DW.Wilms@bmw.de>
@danielwilms danielwilms force-pushed the graphql_tooling_pr_official branch from 41f71ef to eda0549 Compare June 8, 2022 06:59
@danielwilms
Copy link
Contributor Author

@erikbosch, please wait with merging. found one bug still

Should be fine now...please run it once on your machine (you just have to remove contrib/ from the graphql target in the Makefile)

@erikbosch
Copy link
Collaborator

Did a sanity check and it worked fine. Merging it. I assume next step for you is to update Makefile in VSS and update submodule

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants