Changing weight of newly created issue fails on issue board sidebar
Summary
When creating an issue from issue board (by pressing the + on top of a column), one can't change the issue weight from the sidebar that opens after submitting the issue. This problem goes away when either refreshing the board page or entering into the issue view. There the weight is editable.
Steps to reproduce
- Open up an issue board
- Create an issue by pressing the + on top of any column
- Type any issue title and press Submit issue
- On the sidebar that opens, click Edit on the weight
- Insert some weight and press Enter
Editable field goes away but no weight gets added.
When the page is refreshed and the issue is selected again, issue weight can be changed normally.
What is the current bug behavior?
No issue weight gets saved for issue created before page refresh.
What is the expected correct behavior?
Issue weight changes correctly just like other fields do.
Relevant logs and/or screenshots
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Ubuntu 16.04 Proxy: no Current User: git Using RVM: no Ruby Version: 2.5.3p105 Gem Version: 2.7.6 Bundler Version:1.16.6 Rake Version: 12.3.2 Redis Version: 3.2.12 Git Version: 2.18.1 Sidekiq Version:5.2.3 Go Version: unknownGitLab information Version: 11.7.0-ee Revision: c02f0d4 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql DB Version: 9.6.11 URL: https://my-gitlab-host HTTP Clone URL: https://my-gitlab-host/some-group/some-project.git SSH Clone URL: git@my-gitlab-host:some-group/some-project.git Elasticsearch: no Geo: no Using LDAP: no Using Omniauth: yes Omniauth Providers:
GitLab Shell Version: 8.4.4 Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks Git: /opt/gitlab/embedded/bin/git
Results of GitLab application Check
Expand for output related to the GitLab application check
Checking GitLab subtasks ...Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 8.4.4 ? ... OK (8.4.4) Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Check GitLab API access: OK Redis available via internal API: OK
Access to /var/opt/gitlab/.ssh/authorized_keys: OK gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Gitaly ...
Gitaly: ... default ... OK
Checking Gitaly ... Finished
Checking Sidekiq ...
Sidekiq: ... Running? ... yes Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Incoming Email ...
Incoming Email: ... Reply by email is disabled in config/gitlab.yml
Checking Incoming Email ... Finished
Checking LDAP ...
LDAP: ... LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab App ...
Git configured correctly? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... yes Init script exists? ... skipped (omnibus-gitlab has no init script) Init script up-to-date? ... skipped (omnibus-gitlab has no init script) Projects have namespace: ... 6/2 ... yes 18/5 ... yes 18/6 ... yes 18/7 ... yes 24/8 ... yes 24/9 ... yes 24/10 ... yes 24/11 ... yes 24/12 ... yes 24/13 ... yes 24/14 ... yes 24/15 ... yes 24/16 ... yes 24/17 ... yes 2/19 ... yes 1/20 ... yes 6/25 ... yes 18/26 ... yes 19/27 ... yes 19/30 ... yes 19/33 ... yes 18/35 ... yes 1/36 ... yes 10/39 ... yes 24/41 ... yes 24/42 ... yes 19/43 ... yes 19/44 ... yes 24/45 ... yes 19/46 ... yes 1/47 ... yes 1/48 ... yes 10/49 ... yes 19/50 ... yes 18/51 ... yes 18/52 ... yes 19/53 ... yes 1/54 ... yes 10/55 ... yes 25/56 ... yes 24/57 ... yes 1/58 ... yes 21/59 ... yes 1/61 ... yes 1/62 ... yes 1/63 ... yes 1/64 ... yes 1/65 ... yes 1/66 ... yes 1/67 ... yes 1/68 ... yes 8/69 ... yes 1/70 ... yes 1/71 ... yes 19/72 ... yes 19/73 ... yes 22/74 ... yes 18/76 ... yes 19/77 ... yes 21/78 ... yes 19/79 ... yes 19/80 ... yes 1/82 ... yes 8/83 ... yes 18/84 ... yes 1/85 ... yes 25/86 ... yes 26/87 ... yes 14/88 ... yes 10/89 ... yes 14/90 ... yes 26/91 ... yes 14/92 ... yes 26/93 ... yes 26/94 ... yes 10/95 ... yes 26/97 ... yes 19/98 ... yes 19/99 ... yes 8/100 ... yes 10/101 ... yes 23/102 ... yes 24/103 ... yes 24/104 ... yes 19/105 ... yes 1/106 ... yes 8/107 ... yes 8/108 ... yes 8/109 ... yes 27/110 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.3.5 ? ... yes (2.5.3) Git version >= 2.18.0 ? ... yes (2.18.1) Git user has default SSH configuration? ... yes Active users: ... 8 Elasticsearch version 5.6 - 6.x? ... skipped (elasticsearch is disabled)
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished