Replies: 1 comment 1 reply
-
|
We have been having a look into your instructions for building a new provider, and even that it is clear that this is the more flexible way to go, that would take us quite a bit of effort to tackle that (React knowledge is scarce among us). On the other hand, emulating the OpenAPI in h5grove would be much quicker to implement, and that would be enough for allowing Caterva2 users to access h5web functionality. So, we probably will try the latter first and see how it goes. Thanks! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The need for developing new data providers is starting to become a priority. I'm opening this discussion thread in response notably to this request for a new provider for Carteva2 (ping @FrancescAlted).
Should new providers be developed inside the H5Web monorepo or outside?
Integrating a provider into the monorepo means that we, as core maintainers, agree to take on the responsibility of maintaining the provider in the long term (since external contributors may come and go). For this to happen, we would expect for the provider to benefit a significant number of users and also meet a certain level of maturity and quality: reproducible test environment (c.f
supportfolder), basic smoke tests against thesample.h5file (c.fpackages/app/src/providers/h5grove/h5grove-api.test.ts), etc.Our preference is therefore for new providers to first be developed outside of the H5Web monorepo until they reach a good level of maturity and are proven to work reliably in a production environment (with security and performance concerns in mind, notably).
What does it involve to develop a new provider outside of the H5Web monorepo?
You would typically need to:
sample.h5file, which we use for testing the providers, can be downloaded here and used as test data. (This server has many other test files to play with too.)@h5web/apppackage and follow the Getting started guide to have a simple React app to start with.H5GroveProvider.Since we have not yet developed providers outside of the monorepo, it is likely that some of the pieced needed (utilities, types, etc.) won't be exposed through the
@h5web/apppackage. If this happens, feel free to ping us in this thread and we will do our best to expose the missing pieces and release a beta version of@h5web/app(i.e. without release notes) as quickly as possible, especially if duplicating the required code in your own repo doesn't work.Beta Was this translation helpful? Give feedback.
All reactions