Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I pull new data from database? #53

Open
parmeshtajain opened this issue Sep 15, 2019 · 11 comments
Open

How do I pull new data from database? #53

parmeshtajain opened this issue Sep 15, 2019 · 11 comments

Comments

@parmeshtajain
Copy link

Will it pull new data by itself? Is there a cron job? Not sure. Thanks for your answer in advance.

Or do I have rebuild docker every time?

@mnvx
Copy link
Contributor

mnvx commented Sep 15, 2019

Cron must be in container with PHP:

COPY ./docker/cron/crontab /etc/cron.d/app
RUN crontab /etc/cron.d/app

printenv | sed 's/^\(.*\)$/export \1/g' | grep -E "^export GITLAB" > /root/project_env.sh
service cron start

Database must syncs every hour at 11 minute:

11 * * * * . /root/project_env.sh; /usr/local/bin/php /var/www/html/artisan import:all > /proc/1/fd/1 2>/proc/1/fd/2

@parmeshtajain
Copy link
Author

parmeshtajain commented Sep 15, 2019 via email

@mnvx
Copy link
Contributor

mnvx commented Sep 15, 2019

Currently docker container must be restarted after modifying project list.

@parmeshtajain
Copy link
Author

parmeshtajain commented Sep 17, 2019

Thank you. One more question. It seems like if we enter time spent in gitlab issue as part of a write up submit, gitpab is not able to see it...

If the time spent is entered as:
"Closing this issue now."
/spend 1h
Click Submit button.
Gitpab seems to miss time entered. Any ideas on that?

@mnvx
Copy link
Contributor

mnvx commented Sep 17, 2019

Gitpab analyse spent time only from comments

@parmeshtajain
Copy link
Author

parmeshtajain commented Sep 17, 2019 via email

@mnvx
Copy link
Contributor

mnvx commented Sep 17, 2019

Database must syncs every hour at 11 minute.
How many time ago you added spent time?

@parmeshtajain
Copy link
Author

parmeshtajain commented Sep 17, 2019 via email

@rairai77
Copy link

Ok I figured it out. The guys were adding time spent in the description for some crazy reason. It should only be added in the comments like you said. Thank you for your help on this.

@mnvx
Copy link
Contributor

mnvx commented Sep 17, 2019

Time will be parsed from comments of special format:

image

Time marked using this way displays on right panel in Gitlab:

image

@parmeshtajain
Copy link
Author

parmeshtajain commented Sep 17, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants