git mode for lib microservice #951
Replies: 4 comments 1 reply
-
We used to have gitlab mode in libms wherein the gitlab is queried to fetch the files. This gitlab mode became non-functional due to upgrade of gitlab GraphQL API. The PR #435 has removed the gitlab mode. The changes made in that PR can show the scaffolding needed. Please use as an inspiration only; the design can perhaps be improved. Thus a decision has been made to switch to |
Beta Was this translation helpful? Give feedback.
-
@nichlaes Please see the design suggested here. The NestJS framework is being used to create the lib microservice. The current code only supports local files mode and it has the following structure.
We could refactor code along the lines of mode into the following. The advantage is the scoping of code into relevant modules. The future development will require adding git commands and management code to git module. The same goes for other proposed modes such as seaweed file system mode. |
Beta Was this translation helpful? Give feedback.
-
The screenshot above, shows the overall architecture for the Libms. The next approach seems to be a feature for cloning a gitlab repository (or any other git repo) through isomorphic git. |
Beta Was this translation helpful? Give feedback.
-
@prasadtalasila I think I could benefit, if I had a use case scenario. Like how the user would interact. Should I make endpoints for getting the When should the libms pull? Automatically or should the user do it? |
Beta Was this translation helpful? Give feedback.
-
The libms currently supports local file system mode. A new feature is to support git mode. The requirement is illustrated here.
The user files are accessible at /workspace and /workspace/common. These files need to served in HTTP mode via cloudcmd. The files are also accessible at terminal, vscode and Jupyter lab services. The git mode needs to be visible to all services except in HTTP mode.
Beta Was this translation helpful? Give feedback.
All reactions