Avoid CORS issues by using /projects/:id/repository/tree REST API endpoint to populate filesystem
Switches to populate the filesystem from the /projects/:id/repository/tree REST API endpoint.
Pagination was removed from this endpoint in Remove pagination from recursive form of /proje... (gitlab#365996 - closed), so it loads all at once in sub-second response time for the gitlab repo.
Tasks:
-
Use new API endpoint -
Populate mode(even though we don't necessarily need it, we have it available in the new endpoint)- The
modedata was hooked up from the API, but it may not be fully wired into everywhere that it needs to be used. Here's a follow-up issue to look into that: Review usage of `mode` after conversion to REST... (#16 - closed)
- The
-
Refactor all types to remove duplication that now exists, since we are getting stats on the original API request.- This task was moved to a follow-up issue: Review/Refactor/DRY up types after switching to... (#15 - closed)
Also, created this follow up issue to remove CORS workaround references: Remove references to CORS workaround using http... (#17 - closed)
Edited by Chad Woolley