Merge pull request #2351 from urbanrotnik/ur-sci-4211-fix-team-import

Fix import for old activities [SCI-4211]
This commit is contained in:
Urban Rotnik 2020-01-30 13:08:33 +01:00 committed by GitHub
commit 0991a26ee8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View file

@ -318,7 +318,7 @@ class TeamImporter
activity.subject_id = mappings[activity.subject_id]
end
end
if activity.values['message_items'].present?
if activity.values&.dig(:message_items).present?
activity.values['message_items'].each_value do |item|
next unless item['type']

View file

@ -4768,7 +4768,7 @@ CREATE INDEX index_repository_checklist_items_on_created_by_id ON public.reposit
-- Name: index_repository_checklist_items_on_data; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX index_repository_checklist_items_on_data ON public.repository_checklist_items USING btree (data);
CREATE INDEX index_repository_checklist_items_on_data ON public.repository_checklist_items USING gin (public.trim_html_tags((data)::text) public.gin_trgm_ops);
--
@ -4978,7 +4978,7 @@ CREATE INDEX index_repository_status_items_on_repository_id ON public.repository
-- Name: index_repository_status_items_on_status; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX index_repository_status_items_on_status ON public.repository_status_items USING btree (status);
CREATE INDEX index_repository_status_items_on_status ON public.repository_status_items USING gin (public.trim_html_tags((status)::text) public.gin_trgm_ops);
--
@ -7151,7 +7151,6 @@ INSERT INTO "schema_migrations" (version) VALUES
('20191001133557'),
('20191003091614'),
('20191007144622'),
('20191009146101'),
('20191023162335'),
('20191105143702'),
('20191115143747'),
@ -7161,3 +7160,5 @@ INSERT INTO "schema_migrations" (version) VALUES
('20191210103004'),
('20191218072619'),
('20200113143828');