-
Notifications
You must be signed in to change notification settings - Fork 32
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
Update gn4 API client to 4.2.7 #718
Conversation
Affected libs:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! it'd be better if there was no manual change required in there, is it because the openapi generator is not working correctly? Did you try updating it maybe? (theee's a new minor version available)
Also the e2e tests failure should be fixed before merging, it doesn't look like the usual flaky one.
import { | ||
AssociatedRecordApiModel, | ||
BatchEditParameterApiModel, | ||
} from '../model/models' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is that change necessary? Having manual changes in there is going to bite us later if we keep updating the client automatically.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had 2 issues after the generation
AssociatedRecordApiModel
was not imported in this file- a problem in the model here generated by types.
So I fixed them manually.
It could also be the open api spec.
Fixed in the related PR 7d3e1e1 |
There is an issue in the openapi spec about the response model
as we search on a key term, not on a simple term
fields is in the domain and should not depend on gn4 repository implementation. this should pass through the platform interface abstraction
to fetch all keywords in the requested language. Implementation done for gn4, note that it uses a search request, with a limit of 1000, will be an issue in the long run
as /sourceS/harvester is not compatible in 4.2.2
2f085bb
to
90a9471
Compare
Dependency PR merged and code rebased. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
Chores
https://github.com/geonetwork/geonetwork-ui/blob/main/libs/data-access/gn4/src/README.md