How to remove merge request from GitLab server -


i created merge request on gitlab (local) server. whenever click on merge request, request times out error 500. before used error code 504 , applied change mentioned in this gitlab support topic.

all want remove merge request. there manual way of doing this?

yes, there is.... not find way remove merge request in user interface, can delete database.

(please note, tested on gitlab ce 8.4.0-ce.0 on ubuntu 14.04.3 lts.. other versions may have different database structure)

at command prompt, execute following command (as root):

sudo -u gitlab-psql /opt/gitlab/embedded/bin/psql -h /var/opt/gitlab/postgresql -d gitlabhq_production 

this bring postgresql command terminal. next, you'll have find merge request you'd delete. type following @ postgresql command terminal:

select id, title merge_requests; 

you'll list of merge request ids , titles. find 1 you'd delete , note id

ok, let's you've found merge request you'd delete , id 5. you're going delete data associated merge request using following sql commands. (substitute 5 in commands below actual merge request id)

delete merge_requests id = 5; delete merge_request_diffs merge_request_id = 5; delete notes noteable_type = 'mergerequest' , noteable_id = 5; 

you can exit out of postgresql command terminal typing:

\q 

your merge request should gone web interface.


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -