Content
Updated by Kabiru Mwenja about 1 year ago
I'm not sure whether I am addressing the right section because I don't know whether this is a bug or not. However, I will still describe what I did and seek clarification on a point:
Does a user, who creates a new branch using the GitLab tab, need to be a registered user in OpenProject?
In my case:
* GitLab user is abcd@mydomain.com.
* In OpenProject, this user does not exist.
So my question is, will OpenProject still display all GitLab activities or not?
### Steps to reproduce
1. Setup a account for gitlab, enabled **Show GitLab content.**
2. Create API Key (from My Account > Access Token)
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/95636/content">
3. Assigned the GitLab user to a a
4. Enable GitLab module from **Project Settings > Modules >** **GitLab option** (verified by open a work package and the GitLab tab already available)
<img class="op-uc-image op-uc-image_inline" style="width:381px;" src="/api/v3/attachments/95637/content">
5. Open Gitlab Repository > Settings > Webhook and add to the URL [https://pm.mydomain.com/webhooks/gitlab?key=\[AccessTokenKeyCreatedInStep2\]](https://pm.mydomain.com/webhooks/gitlab?key=%5BAccessTokenKeyCreatedInStep2%5D) [https://pm.mydomain.com/webhooks/gitlab?key=\[AccessTokenKeyCreatedInStep2\]](https://pm.mydomain.com/webhooks/gitlab?key=[AccessTokenKeyCreatedInStep2])
6. Check the trigger:
1. Push Events > All branches
2. Comments
3. Issues events
4. Merge request events
5. Pipline events
7. Save the and see the HTTP 200 response
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/95635/content">
8. Created new branch by using the Git Snippet found in GitLab Tab
`git checkout -b 'epic/519-tạo-django-project-cho-version-2' && git commit --allow-empty -m 'OP#519 Tạo Django Project cho Version 2`
`https://pm.mydomain.com/work_packages/519`
`'`
9. Create some files, push the changes and create merge request > then close the merge request
### What is the buggy behavior?
I can not see any bugs or error here, even check the logs:
here is the log when open work package
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/95640/content">
here is the log when webhook from GitLab posted
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/95641/content">
### What is the expected behavior?
_Describe how the application should behave like. Example:_
1. At step 9 above, the GitLab tab should be show something but still empty
<img class="op-uc-image op-uc-image_inline" style="width:330px;" src="/api/v3/attachments/95638/content">
<img class="op-uc-image op-uc-image_inline" style="width:326px;" src="/api/v3/attachments/95639/content">
### Important note
_Please note that unless you are a contributor to OpenProject, you can no longer edit this bug report after saving. You can still add new comments, new images and upload attachments though, but updating description or modifying fields will not be possible after saving. Please make sure that all necessary information and attachments are added, and the following attributes are set:_
### **Logs**
_Are there errors in the browser console? (_[_Click here for information on how to open your browser's console_](https://webmasters.stackexchange.com/a/77337)_) For a local installation: Are there relevant logs output by_ `_openproject logs_` _(packaged installation) (_[_click here for details_](https://docs.openproject.org/installation-and-operations/operation/monitoring/#show-logs)_) or in a log/production.log or /var/log/openproject/ ? Please attach error output in these log files if applicable_
### Screenshots and other files
_If you have screenshots of the application's bug behavior or other relevant files, please drag them into this place or attach them using the "Files" section._
### Environment information
_Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs_
**OpenProject installation type**
* [ ] Hosted cloud edition
* [x] Packaged installation
* Debian 12
* [ ] Docker All-in-one container
* [ ] Docker-compose installation
* [ ] Other (please specify)
**OpenProject version:** 13.4.1
**Browser**
* [ ] Chrome
* [ ] Firefox
* [ ] Safari
* [ ] Mobile Safari
* [ ] Other (please specify)
**Language**
_Please specify the browser language and the language of the OpenProject user for which the bug occurred._
Does a user, who creates a new branch using the GitLab tab, need to be a registered user in OpenProject?
In my case:
* GitLab user is abcd@mydomain.com.
* In OpenProject, this user does not exist.
So my question is, will OpenProject still display all GitLab activities or not?
### Steps to reproduce
1. Setup a account for gitlab, enabled **Show GitLab content.**
2. Create API Key (from My Account > Access Token)
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/95636/content">
3. Assigned the GitLab user to a
4. Enable GitLab module from **Project Settings > Modules >** **GitLab option** (verified by open a work package and the GitLab tab already available)
<img class="op-uc-image op-uc-image_inline" style="width:381px;" src="/api/v3/attachments/95637/content">
5. Open Gitlab Repository > Settings > Webhook and add to the URL [https://pm.mydomain.com/webhooks/gitlab?key=\[AccessTokenKeyCreatedInStep2\]](https://pm.mydomain.com/webhooks/gitlab?key=%5BAccessTokenKeyCreatedInStep2%5D)
6. Check the trigger:
1. Push Events > All branches
2. Comments
3. Issues events
4. Merge request events
5. Pipline events
7. Save the and see the HTTP 200 response
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/95635/content">
8. Created new branch by using the Git Snippet found in GitLab Tab
`git checkout -b 'epic/519-tạo-django-project-cho-version-2' && git commit --allow-empty -m 'OP#519 Tạo Django Project cho Version 2`
`https://pm.mydomain.com/work_packages/519`
`'`
9. Create some files, push the changes and create merge request > then close the merge request
### What is the buggy behavior?
I can not see any bugs or error here, even check the logs:
here is the log when open work package
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/95640/content">
here is the log when webhook from GitLab posted
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/95641/content">
### What is the expected behavior?
_Describe how the application should behave like. Example:_
1. At step 9 above, the GitLab tab should be show something but still empty
<img class="op-uc-image op-uc-image_inline" style="width:330px;" src="/api/v3/attachments/95638/content">
<img class="op-uc-image op-uc-image_inline" style="width:326px;" src="/api/v3/attachments/95639/content">
### Important note
_Please note that unless you are a contributor to OpenProject, you can no longer edit this bug report after saving. You can still add new comments, new images and upload attachments though, but updating description or modifying fields will not be possible after saving. Please make sure that all necessary information and attachments are added, and the following attributes are set:_
### **Logs**
_Are there errors in the browser console? (_[_Click here for information on how to open your browser's console_](https://webmasters.stackexchange.com/a/77337)_) For a local installation: Are there relevant logs output by_ `_openproject logs_` _(packaged installation) (_[_click here for details_](https://docs.openproject.org/installation-and-operations/operation/monitoring/#show-logs)_) or in a log/production.log or /var/log/openproject/ ? Please attach error output in these log files if applicable_
### Screenshots and other files
_If you have screenshots of the application's bug behavior or other relevant files, please drag them into this place or attach them using the "Files" section._
### Environment information
_Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs_
**OpenProject installation type**
* [ ] Hosted cloud edition
* [x] Packaged installation
* Debian 12
* [ ] Docker All-in-one container
* [ ] Docker-compose installation
* [ ] Other (please specify)
**OpenProject version:** 13.4.1
**Browser**
* [ ] Chrome
* [ ] Firefox
* [ ] Safari
* [ ] Mobile Safari
* [ ] Other (please specify)
**Language**
_Please specify the browser language and the language of the OpenProject user for which the bug occurred._