-
Notifications
You must be signed in to change notification settings - Fork 7
Agroclim additions #26
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
base: master
Are you sure you want to change the base?
Conversation
…the metadata which is no more only limited to the metadata field Citation. Functions of interaction with the Dataset added: new metadata fields (GeographicBoundingBox, KindOfData, DatasetTimePeriodCovered). Error return added in the implemented functions that interact with the remote server. UsersOperations added to interact with the Dataverse token. Added enumerations for fields that have the "controlledVocabulary" attribute and were missing one. FileUploader functions are now inside SwordAPI.
Removed recreateToken()
# Conflicts: # .gitignore # build.gradle # src/integration-test/java/com/researchspace/dataverse/http/AbstractIntegrationTest.java # src/integration-test/java/com/researchspace/dataverse/http/DatasetOperationsTest.java # src/integration-test/java/com/researchspace/dataverse/http/DataverseOperationsTest.java # src/integration-test/java/com/researchspace/dataverse/http/MetadataOperationsTest.java # src/main/java/com/researchspace/dataverse/api/v1/DatasetOperations.java # src/main/java/com/researchspace/dataverse/entities/facade/DatasetFacade.java # src/main/java/com/researchspace/dataverse/http/AbstractOpsImplV1.java # src/main/java/com/researchspace/dataverse/http/DataverseOperationsImplV1.java # src/main/java/com/researchspace/dataverse/search/entities/SearchConfig.java # src/main/java/com/researchspace/dataverse/sword/FileUploader.java # src/test/java/com/researchspace/dataverse/entities/facade/DatasetTestFactory.java # src/test/java/com/researchspace/dataverse/search/SearchConfigTest.java
|
Hi Louis |
| /** | ||
| * Get token expiration date. | ||
| * @return java.util.Date token expiration date. | ||
| * @return java.time.LocalDateTime token expiration. |
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.
This will break existing client code that expects java.util.Date. To avoid doing that, suggest creating a new method with a variant name e.g. 'getTokenExpirationLocalDateTime'
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.
This was a work in progress, and is not breaking anything because the method was non existing before.
| * @throws ParseException | ||
| * @throws RestClientException | ||
| */ | ||
| String recreateToken(); |
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.
deleting /renaming this will break existing clients. Solution is to keep the original method signature and add your method as a new method - it looks like it is doing something different?
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.
The method was finally not developed. We considered, that in our use, it was better to create the token ourselves when it would expire.
|
Hi again, |
Iqss adaptations
Hello, |
|
productionPlace changed in Dataverse 5.13: I hope that backward-incompatibilities were not introduced but it's certainly possible. 😅 😬 |
Hello, |
Hello,
I have been working for a little more than 6 months on the client, to add functions that we needed, me and the Agroclim team at INRAE, for our applications.
I was going to submit the modifications to you last November when I realized that you had also advanced on your side on the project.
My modifications concern several points:
And other minor improvements, the correct replacement of the license in the classes, renamed some classes to be more accurate and some documentation fixes.
I proceeded to merge on my side to save you this effort, and I propose you this version, where everything is functional.
We used the demo version of https://entrepot.recherche.data.gouv.fr/ , https://demo.recherche.data.gouv.fr/ , which was recently chosen by the French government as a common solution for national research institutes. This instance shows some differences with your test Dataverse instance. I left some integration tests unchanged, as they fail on my side but should work in your current environment.
Have a nice day,
Louis Tromel.