Giter Site home page Giter Site logo

gitpab's Introduction

Gitpab

License PHP version Laravel version

Who I am?

I am calculator of time spent in Gitlab by every user in period. Just mark time spent in Gitlab and build report using me.

Installation using docker

Requirements: Docker 17.05+.

You may obtain needed project ids from gitlab Api: https://gitlab.com/api/v4/projects?private_token=your_private_token&membership=1

Clone this repo and run containers from docker folder:

git clone [email protected]:zubroide/gitpab.git
cd gitpab
cp .env.dockker.example .env

Edit variables GITLAB_PRIVATE_TOKEN, GITLAB_RESTRICTIONS_PROJECT_IDS:

mcedit .env

Run containers:

docker-compose -f docker-compose.local.yml up --build

Be patient. Loading data from Gitlab may take tens minutes at first time.

Open url http://127.0.0.1:8000
And enter
login admin@admin
password admin

Installation without docker

Create empty database in PostgreSQL.

git clone [email protected]:zubroide/gitpab.git
cd gitpab
composer install
cp .env.example .env
php artisan key:generate

Edit environment variables in .env:

  • GITLAB_PRIVATE_TOKEN - is your private token from Gitlab.
  • GITLAB_RESTRICTIONS_PROJECT_IDS - not necessary, project ids, that you need to monitor.
    You are can find project ids using next command: php artisan look:projects.
  • APP_URL
  • DB_DATABASE
  • DB_USERNAME
  • GITLAB_HOST
  • APP_LOCALE - supported locales: en, ru.
  • APP_DATEPICKER_DATE_FORMAT - default is DD.MM.YYYY.

Run migrations:

php artisan migrate

Fill dictionaries:

php artisan db:seed

Create user (with Admin role):

php artisan make:user

Build static:

npm install
npm run prod

Usage

Run next command for import projects, issues and comments from Gitlab:

php artisan import:all

You can run it in schedule (every hour by defaults): php artisan schedule:run.

Now you can build report about spent time using command

php artisan stat:spent-time --start=2018-05-01 --finish=2018-06-01

Filter:

  • start - start date,
  • finish - finish date,
  • user-id - by assignee,
  • project-id - by project,
  • issue-id - by issue,
  • order - for example: issue.iid, project.path_with_namespace

Result:

+---------------------+-------------------+--------------+-------+----------------------------------+
| gitlab_created_at   | project           | issue        | hours | description                      |
+---------------------+-------------------+--------------+-------+----------------------------------+
| 2018-05-18 12:23:56 | my-group/project1 | #5 My time   | 1.00  | Some work                        |
| 2018-05-18 12:24:56 | my-group/project1 | #5 My time   | 0.50  | Export data into pdf             |
| 2018-05-19 20:19:49 | my-group/project1 | #5 My time   | 1.00  | Create templates                 |
| 2018-05-19 21:56:30 | my-group/project1 | #5 My time   | 0.50  | Reading requirements             |
| 2018-05-18 12:23:56 | my-group/project2 | #152 My time | 1.00  | Skype call                       |
| 2018-05-18 12:24:56 | my-group/project2 | #152 My time | 0.50  | Discussion about export into xml |
+---------------------+-------------------+--------------+-------+----------------------------------+

How to upgrade to new version

Using Docker

Just rebuild container

git pull
docker volume rm -f gitpab_code  # https://github.com/docker/compose/issues/5772
export host="https://gitlab.com/" \
    && export token="your_gitlab_private_token" \
    && export projects="project_id1,project_id2" \
    && docker-compose up --build

Without docker

Update code and build static:

git pull
composer install
npm install
npm run prod

Run new migrations:

php artisan migrate

Fill new dictionaries:

sudo php artisan cache:clear
php artisan db:seed
sudo php artisan cache:clear

I wish you successful projects!

gitpab's People

Contributors

cebe avatar d00mw01f avatar gvoxel avatar mnvx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

gitpab's Issues

Error during installation using docker

Hi

I get this error while trying to run docker image

app_1  | Configuring the database
app_1  | Cache cleared successfully.
app_1  | Nothing to migrate.
app_1  | Seeding: RolePermissionSeeder
app_1  | Seeding: PaymentStatusSeeder
app_1  | Cache cleared successfully.
app_1  | Loading data from Gtilab
app_1  | 
app_1  | In CurlFactory.php line 185:
app_1  |                                                                                
app_1  |   cURL error 6: Could not resolve host: api (see http://curl.haxx.se/libcurl/  
app_1  |   c/libcurl-errors.html)                                                       
app_1  |                                                                                
app_1  | 
docker_app_1 exited with code 1

Changing values in docker-compose.yml manually (as suggested in other issue) doesn't help.

Translation

Hello, how could I help you for making french translation ? There is a lot of things to translate ?

Regards

Call to a member function hasPermissionTo() on null

While trying to build the docker containers, I am getting

app_1  |  DONE  Compiled successfully in 14779ms08:14:30
app_1  | 
app_1  |                                                                                                     Asset     Size  Chunks                    Chunk Names
app_1  |   fonts/vendor/bootstrap-sass/bootstrap/glyphicons-halflings-regular.eot?f4769f9bdb7466be65088239c12046d1  20.1 kB          [emitted]         
app_1  | fonts/vendor/bootstrap-sass/bootstrap/glyphicons-halflings-regular.woff2?448c34a56d699c29117adc64c43affeb    18 kB          [emitted]         
app_1  |  fonts/vendor/bootstrap-sass/bootstrap/glyphicons-halflings-regular.woff?fa2772327f55d8198301fdb8bcfc8158  23.4 kB          [emitted]         
app_1  |   fonts/vendor/bootstrap-sass/bootstrap/glyphicons-halflings-regular.ttf?e18bbf611f2a2e43afc071aa2f4e1512  45.4 kB          [emitted]         
app_1  |   fonts/vendor/bootstrap-sass/bootstrap/glyphicons-halflings-regular.svg?89889688147bd7575d6327160d64e760   109 kB          [emitted]         
app_1  |                                                                                                /js/app.js   523 kB       0  [emitted]  [big]  /js/app
app_1  |                                                                                              /css/app.css   127 kB       0  [emitted]         /js/app
app_1  |                                                                                /js/moment-with-locales.js   232 kB          [emitted]         
app_1  | Configuring the database
app_1  | Nothing to migrate.
app_1  | Seeding: RolePermissionSeeder
app_1  | 
app_1  | In EloquentUserService.php line 27:
app_1  |                                                        
app_1  |   Call to a member function hasPermissionTo() on null  
app_1  |                                                        
app_1  | 
docker_app_1 exited with code 1

How to reproduce:

  • clone repo from acbd4c3 (current master)
  • cd gitpab/docker
  • export host="https://projects.my.domain/"
    && export token="xyz"
    && export projects="42"
    && docker-compose up --build app

ERROR: duplicate key value violates unique constraint "note_pkey"

Hello ,

We catch that there is some missing hours spend and after some digging I found there is some issues in postgres DB. Any idea what we can check to fix that.

2018-10-01 20:36:19.321 UTC [38] ERROR:  duplicate key value violates unique constraint "note_pkey"
2018-10-01 20:36:19.321 UTC [38] DETAIL:  Key (id)=(4388) already exists.
2018-10-01 20:36:19.321 UTC [38] STATEMENT:  insert into "note" ("id", "body", "author_id", "gitlab_created_at", "gitlab_updated_at", "issue_id", "updated_at", "created_at") values ($1, $2, $3, $4, $5, $6, $7, $8) returning "id"
2018-10-01 20:36:19.331 UTC [38] ERROR:  duplicate key value violates unique constraint "note_pkey"
2018-10-01 20:36:19.331 UTC [38] DETAIL:  Key (id)=(4387) already exists.
2018-10-01 20:36:19.331 UTC [38] STATEMENT:  insert into "note" ("id", "body", "author_id", "gitlab_created_at", "gitlab_updated_at", "issue_id", "updated_at", "created_at") values ($1, $2, $3, $4, $5, $6, $7, $8) returning "id"
2018-10-01 20:36:19.337 UTC [38] ERROR:  duplicate key value violates unique constraint "note_pkey"
2018-10-01 20:36:19.337 UTC [38] DETAIL:  Key (id)=(4386) already exists.
2018-10-01 20:36:19.337 UTC [38] STATEMENT:  insert into "note" ("id", "body", "author_id", "gitlab_created_at", "gitlab_updated_at", "issue_id", "updated_at", "created_at") values ($1, $2, $3, $4, $5, $6, $7, $8) returning "id"
2018-10-01 20:36:19.342 UTC [38] ERROR:  duplicate key value violates unique constraint "note_pkey"
2018-10-01 20:36:19.342 UTC [38] DETAIL:  Key (id)=(4384) already exists.
2018-10-01 20:36:19.342 UTC [38] STATEMENT:  insert into "note" ("id", "body", "author_id", "gitlab_created_at", "gitlab_updated_at", "issue_id", "updated_at", "created_at") values ($1, $2, $3, $4, $5, $6, $7, $8) returning "id"
2018-10-01 20:36:19.348 UTC [38] ERROR:  duplicate key value violates unique constraint "note_pkey"
2018-10-01 20:36:19.348 UTC [38] DETAIL:  Key (id)=(4383) already exists.
2018-10-01 20:36:19.348 UTC [38] STATEMENT:  insert into "note" ("id", "body", "author_id", "gitlab_created_at", "gitlab_updated_at", "issue_id", "updated_at", "created_at") values ($1, $2, $3, $4, $5, $6, $7, $8) returning "id"
2018-10-01 20:36:19.354 UTC [38] ERROR:  duplicate key value violates unique constraint "note_pkey"
2018-10-01 20:36:19.354 UTC [38] DETAIL:  Key (id)=(4375) already exists.
2018-10-01 20:36:19.354 UTC [38] STATEMENT:  insert into "note" ("id", "body", "author_id", "gitlab_created_at", "gitlab_updated_at", "issue_id", "updated_at", "created_at") values ($1, $2, $3, $4, $5, $6, $7, $8) returning "id"
2018-10-01 20:36:19.360 UTC [38] ERROR:  duplicate key value violates unique constraint "note_pkey"
2018-10-01 20:36:19.360 UTC [38] DETAIL:  Key (id)=(4365) already exists.
2018-10-01 20:36:19.360 UTC [38] STATEMENT:  insert into "note" ("id", "body", "author_id", "gitlab_created_at", "gitlab_updated_at", "issue_id", "updated_at", "created_at") values ($1, $2, $3, $4, $5, $6, $7, $8) returning "id"
2018-10-01 20:36:19.366 UTC [38] ERROR:  duplicate key value violates unique constraint "spent_pkey"
2018-10-01 20:36:19.366 UTC [38] DETAIL:  Key (note_id)=(4388) already exists.
2018-10-01 20:36:19.366 UTC [38] STATEMENT:  insert into "spent" ("note_id", "hours", "description", "updated_at", "created_at") values ($1, $2, $3, $4, $5) returning "note_id"

Error in build process.

Hello,

I have error with latest code in app build process :

app_1 | > @ production /data/www/gitpab app_1 | > cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js app_1 | app_1 | ERROR Failed to compile with 2 errors14:34:54 app_1 | app_1 | error in ./resources/assets/sass/app.scss app_1 | app_1 | Syntax Error: ModuleBuildError: Module build failed (from ./node_modules/postcss-loader/src/index.js): app_1 | SyntaxError app_1 | app_1 | (64:2) Missed semicolon app_1 | app_1 | 62 | input[type="checkbox"] { app_1 | 63 | margin: 4px 0 0; app_1 | > 64 | margin-top: 1px \9; // IE8-9 app_1 | | ^ app_1 | 65 | line-height: normal; app_1 | 66 | app_1 | at <anonymous> app_1 | app_1 | app_1 | error in ./resources/assets/sass/app.scss app_1 | app_1 | Syntax Error: SyntaxError app_1 | app_1 | (64:2) Missed semicolon app_1 | app_1 | 62 | input[type="checkbox"] { app_1 | 63 | margin: 4px 0 0; app_1 | > 64 | margin-top: 1px \9; // IE8-9 app_1 | | ^ app_1 | 65 | line-height: normal; app_1 | 66 | app_1 | app_1 | app_1 | app_1 | @ ./resources/assets/sass/app.scss 2:14-266 app_1 | app_1 | Asset Size Chunks Chunk Names app_1 | /js/moment-with-locales.js 518 KiB [emitted] app_1 | + 1 hidden asset app_1 | app_1 | ERROR in ./resources/assets/sass/app.scss app_1 | Module build failed (from ./node_modules/css-loader/index.js): app_1 | ModuleBuildError: Module build failed (from ./node_modules/postcss-loader/src/index.js): app_1 | SyntaxError app_1 | app_1 | (64:2) Missed semicolon app_1 | app_1 | 62 | input[type="checkbox"] { app_1 | 63 | margin: 4px 0 0; app_1 | > 64 | margin-top: 1px \9; // IE8-9 app_1 | | ^ app_1 | 65 | line-height: normal; app_1 | 66 | app_1 | app_1 | at runLoaders (/data/www/gitpab/node_modules/webpack/lib/NormalModule.js:301:20) app_1 | at /data/www/gitpab/node_modules/loader-runner/lib/LoaderRunner.js:364:11 app_1 | at /data/www/gitpab/node_modules/loader-runner/lib/LoaderRunner.js:230:18 app_1 | at context.callback (/data/www/gitpab/node_modules/loader-runner/lib/LoaderRunner.js:111:13) app_1 | at Promise.resolve.then.then.catch (/data/www/gitpab/node_modules/postcss-loader/src/index.js:207:9) app_1 | at <anonymous> app_1 | @ ./resources/assets/sass/app.scss app_1 | app_1 | ERROR in ./resources/assets/sass/app.scss (./node_modules/css-loader??ref--5-2!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--5-4!./node_modules/sass-loader/lib/loader.js??ref--5-5!./resources/assets/sass/app.scss) app_1 | Module build failed (from ./node_modules/postcss-loader/src/index.js): app_1 | SyntaxError app_1 | app_1 | (64:2) Missed semicolon app_1 | app_1 | 62 | input[type="checkbox"] { app_1 | 63 | margin: 4px 0 0; app_1 | > 64 | margin-top: 1px \9; // IE8-9 app_1 | | ^ app_1 | 65 | line-height: normal; app_1 | 66 | app_1 | app_1 | @ ./resources/assets/sass/app.scss 2:14-266 app_1 | npm ERR! code ELIFECYCLE app_1 | npm ERR! errno 2 app_1 | npm ERR! @ production: cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.jsapp_1 | npm ERR! Exit status 2 app_1 | npm ERR! app_1 | npm ERR! Failed at the @ production script. app_1 | npm ERR! This is probably not a problem with npm. There is likely additional logging output above. app_1 | app_1 | npm ERR! A complete log of this run can be found in: app_1 | npm ERR! /root/.npm/_logs/2018-12-31T14_34_55_001Z-debug.log app_1 | npm ERR! code ELIFECYCLE app_1 | npm ERR! errno 2 app_1 | npm ERR! @ prod:npm run productionapp_1 | npm ERR! Exit status 2 app_1 | npm ERR! app_1 | npm ERR! Failed at the @ prod script. app_1 | npm ERR! This is probably not a problem with npm. There is likely additional logging output above. app_1 | app_1 | npm ERR! A complete log of this run can be found in: app_1 | npm ERR! /root/.npm/_logs/2018-12-31T14_34_55_056Z-debug.log

Regards

Loading data from Gtilab is empty

If I start with docker-compose or use this import:all command I will get an empty result. Something like this:

gitpab-php | Loading data from Gtilab
gitpab-php | +--------------------+----------+
gitpab-php | | Entity             | Imported |
gitpab-php | +--------------------+----------+
gitpab-php | | projects           | 0        |
gitpab-php | | project_milestones | 0        |
gitpab-php | | group_milestones   | 0        |
gitpab-php | | issues             | 0        |
gitpab-php | | notes              | 0        |
gitpab-php | +--------------------+----------+

I use this command to start the containers:

export host="https://gitlab.com/" \
    && export token="your_gitlab_private_token" \
    && export projects="group/project_id1,group/project_id2" \
    && docker-compose up --build

Gitlab version: 11.9.8 (48528bc)

I have tried api with the right token and I have got a big JSON object with all of projects.
https://gitlab.com/api/v4/projects?private_token=your_private_token&membership=1

Do you have any idea why I get empty result with loading projects? Can I test it another way?
If you need more information please let me know.
Thnaks.

Mistake in docker-compose.yml

Service for DB uses volume with path /var/lib/postgresql while actual postgres volume path is /var/lib/postgresql/data/.

Due to this mistake 2 volumes are being created and data is being saved in automatically created volume /var/lib/postgresql/data/ while volume /var/lib/postgresql remains empty. On each docker-compose down automatically created volume hasn't usage anymore and new volume will be created in next docker-compose up

Add sum of time in spend time report

Hello,

I like you're project. Do you think is possible to add sum of time spend when I search all issue of a project for a time period ?

Thanks

Date in russian

Hello,
how could we change date search because there are in russian ?

Regards

Error during installation

Hi, I'm using docker and trying to run it locally but I receive an error "password authentication failed for user "gitpab".

I have created the .env file using as an example .env.example, and change the variables to my variables, and there is no variable with user=gitpab. What do I need to do else?

Will appreciate your help, thanks.

Whoops! There was on error

Hello,
I'll build gitpad and when I'm login I have a lot of errors :
`ErrorException thrown with message "file_put_contents(/data/www/gitpab/storage/framework/cache/data/85/5f/855f92484c8c414d36c1b25cb24876e30229cbbf): failed to open stream: Permission denied"

Stacktrace:
#65 ErrorException in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
#64 file_put_contents in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
#63 Illuminate\Filesystem\Filesystem:put in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Cache/FileStore.php:65
#62 Illuminate\Cache\FileStore:put in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Cache/Repository.php:195
#61 Illuminate\Cache\Repository:put in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Cache/Repository.php:327
#60 Illuminate\Cache\Repository:remember in /data/www/gitpab/vendor/spatie/laravel-permission/src/PermissionRegistrar.php:52
#59 Spatie\Permission\PermissionRegistrar:getPermissions in /data/www/gitpab/vendor/spatie/laravel-permission/src/Models/Permission.php:155
#58 Spatie\Permission\Models\Permission:getPermissions in /data/www/gitpab/vendor/spatie/laravel-permission/src/Models/Permission.php:91
#57 Spatie\Permission\Models\Permission:findByName in /data/www/gitpab/vendor/spatie/laravel-permission/src/Traits/HasPermissions.php:111
#56 App\User:hasPermissionTo in /data/www/gitpab/vendor/spatie/laravel-permission/src/PermissionRegistrar.php:34
#55 Spatie\Permission\PermissionRegistrar:Spatie\Permission{closure} in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Auth/Access/Gate.php:354
#54 Illuminate\Auth\Access\Gate:callBeforeCallbacks in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Auth/Access/Gate.php:309
#53 Illuminate\Auth\Access\Gate:raw in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Auth/Access/Gate.php:249
#52 Illuminate\Auth\Access\Gate:Illuminate\Auth\Access{closure} in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Support/Collection.php:376
#51 Illuminate\Support\Collection:every in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Auth/Access/Gate.php:253
#50 Illuminate\Auth\Access\Gate:check in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Foundation/Auth/Access/Authorizable.php:18
#49 Illuminate\Foundation\Auth\User:can in /data/www/gitpab/vendor/spatie/laravel-permission/src/Middlewares/PermissionMiddleware.php:22
#48 Spatie\Permission\Middlewares\PermissionMiddleware:handle in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149
#47 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline{closure} in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#46 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:41
#45 Illuminate\Routing\Middleware\SubstituteBindings:handle in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149
#44 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline{closure} in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#43 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php:43
#42 Illuminate\Auth\Middleware\Authenticate:handle in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149
#41 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline{closure} in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#40 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:67
#39 Illuminate\Foundation\Http\Middleware\VerifyCsrfToken:handle in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149
#38 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline{closure} in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#37 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49
#36 Illuminate\View\Middleware\ShareErrorsFromSession:handle in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149
#35 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline{closure} in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#34 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:63
#33 Illuminate\Session\Middleware\StartSession:handle in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149
#32 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline{closure} in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#31 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37
#30 Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse:handle in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149
#29 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline{closure} in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#28 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:59
#27 Illuminate\Cookie\Middleware\EncryptCookies:handle in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149
#26 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline{closure} in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#25 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:102
#24 Illuminate\Pipeline\Pipeline:then in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Routing/Router.php:660
#23 Illuminate\Routing\Router:runRouteWithinStack in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Routing/Router.php:635
#22 Illuminate\Routing\Router:runRoute in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Routing/Router.php:601
#21 Illuminate\Routing\Router:dispatchToRoute in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Routing/Router.php:590
#20 Illuminate\Routing\Router:dispatch in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:176
#19 Illuminate\Foundation\Http\Kernel:Illuminate\Foundation\Http{closure} in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30
#18 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in /data/www/gitpab/vendor/fideloper/proxy/src/TrustProxies.php:56
#17 Fideloper\Proxy\TrustProxies:handle in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149
#16 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline{closure} in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#15 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:30
#14 Illuminate\Foundation\Http\Middleware\TransformsRequest:handle in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149
#13 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline{closure} in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#12 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:30
#11 Illuminate\Foundation\Http\Middleware\TransformsRequest:handle in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149
#10 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline{closure} in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#9 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27
#8 Illuminate\Foundation\Http\Middleware\ValidatePostSize:handle in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149
#7 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline{closure} in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#6 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:46
#5 Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode:handle in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149
#4 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline{closure} in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#3 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:102
#2 Illuminate\Pipeline\Pipeline:then in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:151
#1 Illuminate\Foundation\Http\Kernel:sendRequestThroughRouter in /data/www/gitpab/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116
#0 Illuminate\Foundation\Http\Kernel:handle in /data/www/gitpab/public/index.php:55
`

How can I help you to debug the problem ?

Regards

Docker compose fails for gitpab-nginx on MacOS

Hi @mnvx and @cebe,

First of all, a big thank you for the tool!

I found a small issue when setting it up on MacOS.
I have not spent that much time on it because I wanted it to just make it work.
Please have a look at the bug report attached bellow.

On an unrelated note, is there a route to update the reports from the UI?
I saw that restarting the stack will sync with gitlab, but maybe there is another easier way.

Best regards!

Bug Report

Specs

name version
OS MacOS Mojave 10.14.3 (18D109)
Docker 18.09.3, build 774a1f4

Steps

During the docker-compose up --build phase

ERROR: for gitpab-nginx  Cannot start service nginx: b'Mounts denied: \r\nThe path /data/gitpab/nginx/ssl\r\nis not shared from OS X and is not known to Docker.\r\nYou can configure shared paths from Docker -> Preferences... -> File Sharing.\r\nSee https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.\r\n.'

Notes

To fix this alter the docker-compose.yml and change mounted volumes for gitpab-nginx to something Docker has permissions to.

E.g.

-      - /data/gitpab/nginx/ssl:/etc/ssl
+      - ./data/gitpab/nginx/ssl:/etc/ssl

Why is it necessary to mount to something system wide as /data?

Cant load long comments using postgresql 9

SQLSTATE[54000]: Program limit exceeded: 7 ERROR:  index row size 3128 exceeds maximum 2712 for index
 \"note_lower_idx\"
HINT:  Values larger than 1/3 of a buffer page cannot be indexed.
Consider a function index of an MD5 hash of the value, or use full text indexing. (SQL: insert into \"note\" (\"id\", \"body\", \"author_id\", \"gitlab_
created_at\", \"gitlab_updated_at\", \"issue_id\", \"updated_at\", \"created_at\") values

Calculate project costs

  • Create migration for add new field contributor_extra.taxes_percent ("Employer costs, %")
  • Add field "Employer costs, %" into contributor edit card:
    image
  • Add field "Employer costs, %" into contributor view card:
  • Rename field "Costs, %" to "Employee costs, %"
  • Create new permission project.finance in seeder RolePermissionSeeder.
  • Assign permission project.finance to role Finance.
  • Add column "Costs" into projects table (/project). For permission project.finance. Formula:
    Costs = Ʃi(HiRi[100/(100-Ci)][(100+Ti)/100]) = Ʃi(HiRi(100+Ti)/(100-Ci))
    where:
    • Hi - hours of i-th contributor spend on project
    • Ri - hour rate i-th contributor
    • Ci - costs of i-th contributor
    • Ti - costs (taxes) of employer for i-th contributor

Add a docker-compose stack

Please add a docker-composer stack so that this tool can be easily used by non-PHP developers. I come from a far off world of Python and Go and I have absolutely no idea how to work with php tools nor do I have the spare time to learn about them.

Try to get Data from Group

When starting the app, it tries to get data from group 2103748, even if I did not added any groups to my project.
The request ends in a 404 Failure from Gitlab and the start process ist stopped.
Requested url: gitlab.com/api/v4/groups/2103748/milestones/?page=1&private_token=...&per_page=100&order_by=updated_at

When I run gitlab.com/api/v4/groups?private_token=... it returns an empty string as it should.

gitpab behind traefik

Hello,

a second problem, I deploy gitpad with traefik proxy and I have two errors :

  • no css
  • login don't work

What do you think about this error ?

This is my docker-compose
`
version: '3'

services:
app:
build:
context: .
dockerfile: app/Dockerfile
args:
ssh_prv_key: ${ssh_prv_key}
ports:
- "80"
volumes:

- /data/gitpab/app:/data

  - data:/data
environment:
  - GITLAB_PRIVATE_TOKEN=${token}
  - GITLAB_RESTRICTIONS_PROJECT_IDS=${projects}
  - GITLAB_HOST=${host}
  - GHOST_HOST=gitpad_url
  - GHOST_URL=https://gitpad_url
links:
  - db
labels:
  - traefik.enable=true
  - traefik.docker.network=traefik-proxy
  - traefik.frontend.rule=Host:gitpad_url
  - traefik.port:"8010"
networks:
  - traefik-proxy
  - gitpad

db:
image: postgres
volumes:
- /data/gitpab/postgres:/var/lib/postgresql
environment:
POSTGRES_DB: gitpab
POSTGRES_USER: gitpab
POSTGRES_PASSWORD: gitpab
networks:
- gitpad

networks:
traefik-proxy:
external:
name: traefik-proxy
gitpad:

volumes:
data:
`

Regards

Add JSON API

I am interested in implementing SPA for GitPab. It would be nice to have JSON API for GitPab.

Add new project_id in runtime with docker-compose

I have run gitpab in docker enviroment.
I would like to add new project_id in runtime (without stop the app).
Is it possible?
Or I have to stop the app and then I have to run with new project_id with this command:
export host="https://gitlab.com/"
&& export token="your_gitlab_private_token"
&& export projects="project_id1,project_id2,new_project_id3"
&& docker-compose up --build

Build is failing

I configure env 'token' and 'project' as its by howto. But building is failing

docker-compose up --build app

app_1  | Configuring the database
app_1  |
app_1  | In Connection.php line 664:
app_1  |
app_1  |   could not find driver (SQL: select * from information_schema.tables where t
app_1  |   able_schema = forge and table_name = migrations)
app_1  |
app_1  |
app_1  | In Connector.php line 67:
app_1  |
app_1  |   could not find driver
app_1  |
app_1  |
docker_app_1 exited with code 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.