doc/development/fe_guide/onboarding_course/lesson_1.md
In this lesson you tackle the smallest of problems - a one-character text change. To do so, we have to learn:
After we have learned these 3 things, a GitLab team member will do a live coding demo. In the demo, they'll use each of the things learned by completing one of these small issues, so that you can complete an issue by yourself.
There is a list of issues that are very similar to the one we'll be live coding here in the "Linked items" section, it would be worth commenting on one of these now to get yourself assigned to one so that you can follow along.
The GDK (GitLab Development Kit) is a local instance of GitLab that allows developers to run and test GitLab on their own computers. Unlike frontend only applications, the GDK runs the entire GitLab application, including the back-end services, APIs, and a local database. This allows developers to make changes, test them in real-time, and validate their modifications.
Tips for using the GDK:
gdk rails c and use it to enable or disable feature flags, perform backend operations, and more.gdk update.
This command fetches the latest branch of the GitLab project, as well as the latest branch of the GDK and its dependencies.
Keeping your GDK up to date helps ensure you will be working with the latest version of GitLab and make sure you have the latest bug fixes.Remember, if you need further assistance or have specific questions, you can reach out to the GitLab community through our Discord or other available support channels.
For the latest installation instructions, refer to the GitLab Development Kit documentation.
Here's a step-by-step summary:
Choose a directory to install the GitLab Development Kit (GDK).
Open your terminal and go to the chosen directory.
Download and run the installation script from the terminal:
curl "https://gitlab.com/gitlab-org/gitlab-development-kit/-/raw/main/support/install" | bash
Only run scripts from trusted sources to ensure your safety.
The installation process may take around 20 minutes or more.
gdk start in your terminal.gdk help in the terminal.Remember to consult the documentation or seek community support if you have any further questions or issues.
Understanding how to navigate the GitLab codebase is essential for contributors. Navigating the codebase and locating specific files can be challenging but crucial for making changes and addressing issues effectively. Here we'll explore a step-by-step process for finding files and finding where they are rendered in GitLab.
If you already know the file you are going to work on and now you want to find where it is rendered:
git blame with an extension like GitLens to find a recent MR where this file was changed.
Most MR's have a "How to validate" section that you can follow, if the MR doesn't have one, look for the previous change and until you find one that have validation steps.If you know which page you need to fix and you want to find the file path, here are some things you can try:
data-testid,id or a unique looking CSS class in the HTML of the component and then search globally the codebase for those identifying strings.When writing a merge request there are some important things to be aware of:
Now it is your turn to complete your first MR, there is a list of issues that are very similar to the one we just finished that need completing here in the "Linked items" section. Thanks for contributing! (if there are none left, let us know on Discord or other available support channels and we'll find more for you)