Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Commit

Permalink
fix: Add data for test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
rsavoye committed Dec 21, 2023
1 parent ca27f29 commit acb8df4
Show file tree
Hide file tree
Showing 2 changed files with 677 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/testdata.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
INSERT INTO public.users (id, username, name, city, country, email_address, is_email_verified, is_expert, tasks_notifications, role, mapping_level, tasks_mapped, tasks_validated, tasks_invalidated, projects_mapped, date_registered, last_validation_date, password, osm_id, facebook_id, irc_id, skype_id, slack_id, linkedin_id, twitter_id, default_editor, picture_url, gender, mentions_notifications, projects_notifications, self_description_gender, projects_comments_notifications, tasks_comments_notifications, teams_announcement_notifications) VALUES (4606673, 'rsavoye', 'Rob Savoye', 'Rollinsville', 'US', '[email protected]', true, true, true, 'USER_READ_ONLY', 'ADVANCED', 438, 0, 0, '{8301,12648}', '2017-09-22 09:28:06.315785', '2022-09-20 11:19:28.913574', NULL, NULL, NULL, NULL, NULL, 'rsavoye', NULL, NULL, 'JOSM', 'https://www.openstreetmap.org/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBK0FQQWc9PSIsImV4cCI6bnVsbCwicHVyIjoiYmxvYl9pZCJ9fQ==--b385b3fad59b07a040393279c91dbc88c5f8cdf7/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2RkhKbGMybDZaVjkwYjE5c2FXMXBkRnNIYVdscGFRPT0iLCJleHAiOm51bGwsInB1ciI6InZhcmlhdGlvbiJ9fQ==--1d22b8d446683a272d1a9ff04340453ca7c374b4/14421645307_6e09d2d02a_o.jpg', 1, true, true, NULL, false, false, false);

INSERT INTO public.users (id, username, name, city, country, email_address, is_email_verified, is_expert, tasks_notifications, tasks_mapped, tasks_validated, tasks_invalidated, projects_mapped, date_registered, last_validation_date, password, osm_id, facebook_id, irc_id, skype_id, slack_id, linkedin_id, twitter_id, default_editor, picture_url, gender, mentions_notifications, projects_notifications, self_description_gender, projects_comments_notifications, tasks_comments_notifications, teams_announcement_notifications) VALUES (10147, 'foobar', '', NULL, NULL, NULL, false, false, true, 0, 0, 0, NULL, '2019-07-12 17:44:23.700305', '2019-07-12 17:42:23.700309', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'ID', NULL, NULL, true, true, NULL, false, false, false);

INSERT INTO public.projects (id, odkid, author_id, created, project_name_prefix, task_type_prefix, location_str, geometry, last_updated, due_date, total_tasks, tasks_mapped, tasks_validated, enforce_random_task_selection, country, rapid_power_user, progress_email_sent, tasks_bad_imagery, odk_central_src, xform_title, private, featured, organisation_id, changeset_comment, osmcha_filter_id, imagery, default_locale, osm_preset, odk_preset, josm_preset, id_presets, extra_id_params, license_id, centroid, odk_central_url, odk_central_user, odk_central_password, extract_completed_count, form_xls, form_config_file, data_extract_type, task_split_type, hashtags) VALUES (1090, NULL, 359133, '2015-06-10 23:28:40.133281', NULL, NULL, NULL, '((86.57053659030191,26.98756037476335),(85.96139650493367,26.986811671832932),(85.96080507198256,27.368259272802604),(86.5699451573508,27.36900542084153),(86.57053659030191,26.98756037476335))', '2018-09-26 18:00:19.393763', NULL, 674, 509, 165, false, '{Nepal}', false, false, 0, NULL, NULL, false, false, NULL, '#hotosm-project-1090 #TomTom', NULL, '', 'en', NULL, NULL, NULL, NULL, NULL, NULL, '(86.2656704911463,27.177909184436203)', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);

INSERT INTO public.projects (id, odkid, author_id, created, project_name_prefix, task_type_prefix, location_str, geometry, last_updated, due_date, total_tasks, tasks_mapped, tasks_validated, enforce_random_task_selection, country, rapid_power_user, progress_email_sent, tasks_bad_imagery, odk_central_src, xform_title, private, featured, organisation_id, changeset_comment, osmcha_filter_id, imagery, default_locale, osm_preset, odk_preset, josm_preset, id_presets, extra_id_params, license_id, centroid, odk_central_url, odk_central_user, odk_central_password, extract_completed_count, form_xls, form_config_file, data_extract_type, task_split_type, hashtags) VALUES (173, NULL, 667690, '2013-02-07 16:22:31.708729', NULL, NULL, NULL, '((-16.931219098595506,14.795795662963034),(-16.925683019189208,14.796501031984233),(-16.920661923914544,14.795131784141374),(-16.919889447718443,14.793638049365011),(-16.924996373681264,14.787248067845779),(-16.931862828758923,14.78795346465523),(-16.931219098595506,14.795795662963034))', '2020-11-29 13:56:20.675314', NULL, 36, 0, 36, false, '{Senegal}', false, false, 0, NULL, NULL, false, false, NULL, '#hotosm-task-173', NULL, NULL, 'en', NULL, NULL, '', NULL, NULL, NULL, '(-16.926587672855337,14.792087340907674)', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);

INSERT INTO public.organizations (id, name, slug, logo, description, url, subscription_tier) VALUES (5, 'YouthMappers', 'youthmappers', 'https://cdn.hotosm.org/tasking-manager/uploads/1588944940395_ymSquare.png', NULL, 'https://youthmappers.org', 0);

INSERT INTO public.organizations (id, name, slug, logo, description, url, subscription_tier) VALUES (98, 'OSM Côte dIvoire', 'osm-cote-d-ivoire', 'https://cdn.hotosm.org/tasking-manager/uploads/1619082381672_logoopenstreetmapcotedivoire.jpg', NULL, 'https://openstreetmap.ci/', 0);

INSERT INTO public.tasks (id, project_id, project_task_index, project_task_name, outline, geometry, initial_feature_count, locked_by, mapped_by, validated_by, qr_code_id, is_square, extra_properties, x, y, zoom) VALUES (123, 3722, NULL, NULL, NULL, '((80.2111816262571,6.06408625776475),(80.2139282082878,6.06408625776475),(80.2139282082878,6.06681746398507),(80.2111816262571,6.06681746398507),(80.2111816262571,6.06408625776475))', NULL, NULL, 6860275, 2873580, NULL, true, NULL, 94740, 67748, 17);

INSERT INTO public.tasks (id, project_id, project_task_index, project_task_name, outline, geometry, initial_feature_count, locked_by, mapped_by, validated_by, qr_code_id, is_square, extra_properties, x, y, zoom) VALUES (987, 14264, NULL, NULL, NULL, '((37.155762,36.765292),(37.166748,36.765292),(37.166748,36.774092),(37.155762,36.774092),(37.155762,36.765292))', NULL, NULL, 18535595, 1386706, NULL, true, NULL, 19766, 19987, 15);
Loading

0 comments on commit acb8df4

Please sign in to comment.