Skip to content

Add static source data fetching to projects widget

PR resolves #299 (closed)

I created a separate function getProjectsDataFromStaticSource to interact with the static data source. Even though it would sort of work with the current getProjectsData function, I still made them separate in case if the shape of the data ever changes from either of the sources. Different API should have a different function.

And I mean sort of because originally the project static data from eclipse.org/research did not have a releases field and it would throw an error.

Testing

View the widgets here (make sure to disable CORS in browser): /docs/projects-static-source /docs/projects

You also need to have the static data api running. I created one for eclipse.org/research/project/index.json. You can clone this branch and run it in localhost.

https://gitlab.eclipse.org/oliviergoulet/eclipse.org-research/-/tree/oliviergoulet/master/64-frozen-for-sa

Edited by Olivier Goulet

Merge request reports