Open ideas-into-software opened 12 months ago
@juergen-albert
I applied fixes for issues reported earlier after dependencies' metadata updates you mentioned.
Following endpoints were tested and work, i.e. return results:
http://localhost:8085/mdo/rest/trees/documentation/html/mermaid
http://localhost:8085/mdo/rest/trees/documentation/html/onlyHtml
http://localhost:8085/mdo/rest/trees/documentation/md/mermaid
http://localhost:8085/mdo/swagger/trees/swagger-client/index.html
http://localhost:8085/mdo/rest/asset/documentation/html/mermaid
http://localhost:8085/mdo/rest/asset/documentation/html/onlyHtml
http://localhost:8085/mdo/rest/asset/documentation/md/mermaid
The only remaining issues, which however seem to have no effect on the endpoints tested, are:
Failed activation for one of the instances of MDOGraphQLQueryProvider
component, which is due to using old Gecko GraphQL; my fix supplied back in August (i.e. https://github.com/geckoprojects-org/org.gecko.graphql/pull/10, solution for https://github.com/geckoprojects-org/org.gecko.graphql/issues/9) would need to be integrated into MDO;
Unsatisfied references in PiveauAdapter
and PiveauRestConnector
components
Considering this part was meant as integration of latest 'Gecko EMF Utilties' version, and that is what is done now, is there anything else you'd like me to take care of with this or can we proceed to releasing that latest Gecko EMF Utils, as per item #5 in https://github.com/geckoprojects-org/org.gecko.emf.utils/issues/25#issuecomment-1803546767
Can you do one last thing, before we merge this: Please add the dependencies for your exporters and check if you can get the expected results for e.g. http://localhost:8085/mdo/rest/trees/CityTree if you use the respective ContenTypes as MimeTypes with your requests? As an alternative to the request header, you can also use the QueryParameter mediaType
.
For now I just want to see that it works in general. We will decide on the necessary export options that might be useful later.
Please create issues for the two open issues you have mentioned.
Can you do one last thing, before we merge this: Please add the dependencies for your exporters and check if you can get the expected results for e.g. http://localhost:8085/mdo/rest/trees/CityTree if you use the respective ContenTypes as MimeTypes with your requests? As an alternative to the request header, you can also use the QueryParameter
mediaType
.For now I just want to see that it works in general. We will decide on the necessary export options that might be useful later.
Please create issues for the two open issues you have mentioned.
@juergen-albert
Format-specific annotations (@RequireEMFCSV
, @RequireEMFODS
, @RequireEMFXLSX
, @RequireEMFRLang
) were added to ModelResource
and expected results were returned from http://localhost:8085/mdo/rest/trees/CityTree endpoint using the following curl commands:
• curl -H "Accept: application/csv" http://localhost:8085/mdo/rest/trees/CityTree --output CityTree.csv.zip
• curl -H "Accept: application/vnd.oasis.opendocument.spreadsheet" http://localhost:8085/mdo/rest/trees/CityTree --output CityTree.ods
• curl -H "Accept: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" http://localhost:8085/mdo/rest/trees/CityTree --output CityTree.xlsx
• curl -H "Accept: text/x-R" http://localhost:8085/mdo/rest/trees/CityTree --output CityTree.RData.zip
In addition, the following issues and comments to existing issues / PRs were added: • https://github.com/de-jena/MDO/pull/7#issuecomment-1870695254 • https://github.com/de-jena/MDO/issues/6#issuecomment-1870696348 • https://github.com/de-jena/MDO/issues/9 • https://github.com/de-jena/MDO/issues/10
@juergen-albert
PR is in draft mode due to issues which still appear - pending their resolution.
Current state and issues which still appear are:
application launched via
/de.jena.mdo.runtime/de.jena.mdo.runtime_local.bndrun
automatically shuts down after several seconds; see screencast attached; therefore, it is not possible to diagnose errors via console (gogo shell nor Felix webconsole), neither check if endpoints listed in/readme.md
are working, until this is resolved;this is after having added
de.jena.mdo.jdbc.example
torunrequires
of/de.jena.mdo.runtime/de.jena.mdo.runtime_base.bndrun
and resolved successfully; reason for adding this isjava.sql.SQLException: Database 'mdo' not found.
error (full stack trace below), which I got when running via/de.jena.mdo.runtime/de.jena.mdo.runtime_local.bndrun
, so I compared against/de.jena.mdo.jdbc.example/launch-derby.bndrun
and this was the only bundle missing;other issues which were visible at that time were similar to those mentioned in our email / Slack exchange earlier, i.e.
Failed activation for 2 out of 3
MDODataImporter
references - i.e. onlyMDODataImporter~trafficToAsset
was ACTIVE, the other two,MDODataImporter~treeToTrees
andMDODataImporter~treeToAsset
, failed activation;Failed activation also in (new one)
TrafficConfigurator
;Unsatisfied references in
PiveauAdapter
andPiveauRestConnector
, as well as (new one)de.jena.mdo.jdbc.example.TrafficComponent
;Until issue with automatic shutdown of app is resolved, it is not possible to diagnose issues which still appear, neither to verify endpoints are working.
Unfortunately, no logs indicating any error as cause for this shutdown are visible in console - the last entries before shutdown, which appear repeatedly (i.e. with each subsequent launch) are:
The
java.sql.SQLException: Database 'mdo' not found
error mentioned earlier.Screencast from 11-15-2023 01:46:18 AM.webm