-
Notifications
You must be signed in to change notification settings - Fork 113
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
Harvester 2.0: Deploy mdTranslator on cloud.gov #4467
Comments
macos has a system ruby pre-installed. if you want to install mdTranslator locally and have a mac make sure to install a version manager like |
|
sandbox branch with example post to mdtranslator converting fgdc to iso19110. I can probably just read the file instead of parsing it as a tree. |
science base mdtranslator api returns a
There's a forceValid option which substitutes required content ( true = substitue; false = don't substitute ). Both cases includes the errors in the response content. |
according to the mdtranslator api documentation "if validation errors prevent the writer from generating a return, messages will be returned as 'text/plain'". In that case, we would have to parse the response content to derive meaning from it. So far it seems as long as the response is okay ( e.g. 200 ) regardless of whether the transformation is successful the response contains what could be transformed. |
A tangential point... If we would be implementing our own version of the mdTranslator and the API configuration is separate from the translator logic, details on the response of the API seem to be biased and no necessarily representative on what we would be expecting in our setup. |
mdtranslator rails app uses ruby 2.7.7. cf ruby buildpacks don't support 2.x. need to bump ruby to deploy. |
mdtranslator is deployed here. parts of the ui aren't going to work but since we only care about the api it doesn't matter. that instance is using |
i'm going to remove as much content as needed from the app which derived from the rails start project utility before I commit anything to the transformation repo |
sinatra could be a lighter alternative than rails |
blocked until cf credentials are stored in repo |
dropped instances to 0. app couldn't deploy using 64mb so bumped it to 128. |
User Story
In order to have a transformation service available to the harvester 2.0 pipeline, data.gov wants deploy an instance of mdTranslator on cloud.gov.
Acceptance Criteria
WHEN a request is made against the service
THEN a response containing the translated metadata is provided
Background
Security Considerations (required)
none
Sketch
develop
)The text was updated successfully, but these errors were encountered: