-
Notifications
You must be signed in to change notification settings - Fork 2
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
Stack trace when calling BundlesApi.bundle_by_lidvid
#6
Comments
Were be the code? Does not appear to be in this repo nor pds-api-pythonlib. Any hints would be helpful. |
I can handle this, @al-niessner! The code is generated from the |
Hey! I meant I can handle the question you originally asked @jordanpadams, not handle the issue. I think a Swagger + Open API Generator expert would be better suited to it. I have little experience with either. |
lol - I will finish work it then. I took it to be generated code from the error -- all the getatttr() calls is good hint -- but looking at this set up versus the one in the notebook that I know to work there appears to be no difference. However this is using 0.6.0 and the notebook is using 0.5.0. The older one may be happier than the newer. We will see. |
Confirmed it works in 0.5.0 but not 0.6.0. |
With a moniker |
Oh it is getting saner after I made sure to use both versions. There is a single code change that is responsible for the error. I will need help or direction if you want me to actually fix it. pds.api_client.models.product.py:47
to (or back to)
Which is the only meaningful code change between 0.5.0 and 0.6.0. Going from object to list seems familiar from the registry-app-service code, but is seems to break the auto-generated code. Anyone want to give me direction on how to fix it or is my portion done? days later.... This also works and may be more inline with the desire design changes:
|
Okay, made it back onto swaggerhub and browsing what I can find. I am looking for the bit that changed between 0.5.0 and 0.6.0. I want to modify it a tad more but cannot find what to change. Any hints? |
Yeah, simply cannot find 0.6.0 let alone a diff. The latest version I can find on swaggerhub is 0.3.dev. |
@tloubrieu-jpl can you poke at this? we may need an additional ticket to track how we can trace swaggerhub API version <-> registry-api-service <-> api-java-lib <-> pds-api-client |
@al-niessner @jordanpadams the pds-api-client versions are upgraded indendantly from the swagger model. 0.6. from the pds-api-client uses the latest stable version for the swagger hub model which is 0.3.0 but apparently is not tagged there. Sorry it is messy. I will take a closer look. |
What changed between client release 0.5.0 and 0.6.0? Also, where do I look to see what changed? |
hi @al-niessner Apparently 0.6.0 was done with the latest version of the openapi specification currenly in branch 0.3.dev on swaggerhub. It looks like this bug is related to that OpenAPITools/openapi-generator#5421 since we are using nested dictionnary values. I was albel to reproduce the error with After this is solved, we will need to develop some integration testing. I would like to do that with |
I was able to make the client work again by doing 2 changes in the generated file changes are line 66 and 650. to make that work we need to do a pull request on the openapi code, I think... that should be in the same .mustache file that is cited in thebug above. |
The file we need to change is https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/python-legacy/api_client.mustache I will try to do a pull request now and see if they take it quickly... |
I created a bug and proposed a pull request, see OpenAPITools/openapi-generator#10005 @jordanpadams their bug and pull request template is well done, we are not far from what they do though. In addition to what we're having they have check lists to verify you have done everything right. |
@tloubrieu-jpl yeah, it's pretty nice what they've set up. I love checklists. |
Actually now that I am trying my pull request, from their master branch, I realize that the module I need to use is 'python-legacy'. In the version I am using 4.3.1 on my laptop it was python. On the latest version, there is another module 'python'. This works with our swagger but the python import required look different (ie not as simple as with python-legacy). For now I will keep track of what needs to be done to build now, and release a 0.6.1 version but the sustainable way will be to use their new module python. Especially since they might not care to merge a pull request on the 'python-legacy' module. |
I made a pull request for this ticket and produced new package version 0.6.1 available on pypi. |
Hi @tloubrieu-jpl I tested with 0.6.1 and it works! 🎉 |
The pds.api_client 0.6.0 is now producing a stack trace when calling the
pds.api_client.BundlesApi
methodbundle_by_lidvid
when called onpds-gamma
. This function worked up to 0.5.0.To reproduce:
The text was updated successfully, but these errors were encountered: