Gitlab updates will be applied at 1:30pm, (17:30 UTC), today. No downtime expected.

Commit 44be1e01 authored by Brad King's avatar Brad King

data: update to 9.3 data entities

parent c5bca5dd
{"due_date": null, "downvotes": 0, "subscribed": true, "web_url": "https://gitlab.kitware.com/utils/rust-gitlab/issues/6", "description": "", "confidential": false, "title": "fix documentation warnings", "created_at": "2016-10-30T14:54:28.954-04:00", "labels": [], "updated_at": "2017-01-13T16:45:20.901-05:00", "iid": 6, "state": "closed", "user_notes_count": 0, "assignee": {"username": "ben.boeckel", "web_url": "https://gitlab.kitware.com/ben.boeckel", "name": "Ben Boeckel", "state": "active", "avatar_url": "https://secure.gravatar.com/avatar/2f5f7e99190174edb5a2f66b8653b0b2?s=80&d=identicon", "id": 13}, "author": {"username": "ben.boeckel", "web_url": "https://gitlab.kitware.com/ben.boeckel", "name": "Ben Boeckel", "state": "active", "avatar_url": "https://secure.gravatar.com/avatar/2f5f7e99190174edb5a2f66b8653b0b2?s=80&d=identicon", "id": 13}, "milestone": null, "upvotes": 0, "assignees": [{"username": "ben.boeckel", "web_url": "https://gitlab.kitware.com/ben.boeckel", "name": "Ben Boeckel", "state": "active", "avatar_url": "https://secure.gravatar.com/avatar/2f5f7e99190174edb5a2f66b8653b0b2?s=80&d=identicon", "id": 13}], "project_id": 855, "id": 69328}
{"due_date": null, "downvotes": 0, "subscribed": true, "web_url": "https://gitlab.kitware.com/utils/rust-gitlab/issues/6", "description": "", "confidential": false, "title": "fix documentation warnings", "created_at": "2016-10-30T14:54:28.954-04:00", "labels": [], "updated_at": "2017-07-07T02:31:03.757-04:00", "iid": 6, "state": "closed", "user_notes_count": 0, "assignee": {"username": "ben.boeckel", "web_url": "https://gitlab.kitware.com/ben.boeckel", "name": "Ben Boeckel", "state": "active", "avatar_url": "https://secure.gravatar.com/avatar/2f5f7e99190174edb5a2f66b8653b0b2?s=80&d=identicon", "id": 13}, "author": {"username": "ben.boeckel", "web_url": "https://gitlab.kitware.com/ben.boeckel", "name": "Ben Boeckel", "state": "active", "avatar_url": "https://secure.gravatar.com/avatar/2f5f7e99190174edb5a2f66b8653b0b2?s=80&d=identicon", "id": 13}, "milestone": null, "upvotes": 0, "assignees": [{"username": "ben.boeckel", "web_url": "https://gitlab.kitware.com/ben.boeckel", "name": "Ben Boeckel", "state": "active", "avatar_url": "https://secure.gravatar.com/avatar/2f5f7e99190174edb5a2f66b8653b0b2?s=80&d=identicon", "id": 13}], "project_id": 855, "id": 69328}
{"due_date": null, "downvotes": 0, "web_url": "https://gitlab.kitware.com/utils/rust-gitlab/issues/5", "description": "The workflow currently requires that the robot be able to register itself as a webhook for new projects. An API needs added for this.\n\nCc: @brad.king", "confidential": false, "title": "Add project hook APIs", "created_at": "2016-10-04T14:59:37.178-04:00", "labels": [], "updated_at": "2016-10-04T16:18:57.519-04:00", "iid": 5, "state": "closed", "user_notes_count": 0, "assignee": {"username": "ben.boeckel", "web_url": "https://gitlab.kitware.com/ben.boeckel", "name": "Ben Boeckel", "state": "active", "avatar_url": "https://secure.gravatar.com/avatar/2f5f7e99190174edb5a2f66b8653b0b2?s=80&d=identicon", "id": 13}, "author": {"username": "ben.boeckel", "web_url": "https://gitlab.kitware.com/ben.boeckel", "name": "Ben Boeckel", "state": "active", "avatar_url": "https://secure.gravatar.com/avatar/2f5f7e99190174edb5a2f66b8653b0b2?s=80&d=identicon", "id": 13}, "milestone": null, "upvotes": 0, "assignees": [{"username": "ben.boeckel", "web_url": "https://gitlab.kitware.com/ben.boeckel", "name": "Ben Boeckel", "state": "active", "avatar_url": "https://secure.gravatar.com/avatar/2f5f7e99190174edb5a2f66b8653b0b2?s=80&d=identicon", "id": 13}], "project_id": 855, "id": 69075}
{"due_date": null, "downvotes": 0, "web_url": "https://gitlab.kitware.com/utils/rust-gitlab/issues/5", "description": "The workflow currently requires that the robot be able to register itself as a webhook for new projects. An API needs added for this.\n\nCc: @brad.king", "confidential": false, "title": "Add project hook APIs", "created_at": "2016-10-04T14:59:37.178-04:00", "labels": [], "updated_at": "2017-07-07T02:31:05.370-04:00", "iid": 5, "state": "closed", "user_notes_count": 0, "assignee": {"username": "ben.boeckel", "web_url": "https://gitlab.kitware.com/ben.boeckel", "name": "Ben Boeckel", "state": "active", "avatar_url": "https://secure.gravatar.com/avatar/2f5f7e99190174edb5a2f66b8653b0b2?s=80&d=identicon", "id": 13}, "author": {"username": "ben.boeckel", "web_url": "https://gitlab.kitware.com/ben.boeckel", "name": "Ben Boeckel", "state": "active", "avatar_url": "https://secure.gravatar.com/avatar/2f5f7e99190174edb5a2f66b8653b0b2?s=80&d=identicon", "id": 13}, "milestone": null, "upvotes": 0, "assignees": [{"username": "ben.boeckel", "web_url": "https://gitlab.kitware.com/ben.boeckel", "name": "Ben Boeckel", "state": "active", "avatar_url": "https://secure.gravatar.com/avatar/2f5f7e99190174edb5a2f66b8653b0b2?s=80&d=identicon", "id": 13}], "project_id": 855, "id": 69075}
{"lfs_enabled": true, "request_access_enabled": true, "forks_count": 5, "only_allow_merge_if_all_discussions_are_resolved": null, "container_registry_enabled": true, "shared_runners_enabled": true, "wiki_enabled": true, "id": 855, "merge_requests_enabled": true, "archived": false, "snippets_enabled": false, "http_url_to_repo": "https://gitlab.kitware.com/utils/rust-gitlab.git", "namespace": {"path": "utils", "kind": "group", "id": 498, "full_path": "utils", "name": "Utils"}, "star_count": 0, "avatar_url": null, "issues_enabled": true, "path_with_namespace": "utils/rust-gitlab", "shared_with_groups": [], "description": "Rust library for communicating with a Gitlab instance.", "default_branch": "master", "visibility": "public", "ssh_url_to_repo": "git@gitlab.kitware.com:utils/rust-gitlab.git", "path": "rust-gitlab", "only_allow_merge_if_pipeline_succeeds": false, "open_issues_count": 3, "last_activity_at": "2017-06-19T10:17:18.412-04:00", "name": "rust-gitlab", "name_with_namespace": "Utils / rust-gitlab", "created_at": "2016-06-29T13:35:12.495-04:00", "creator_id": 13, "web_url": "https://gitlab.kitware.com/utils/rust-gitlab", "permissions": {"group_access": {"notification_level": 3, "access_level": 50}, "project_access": null}, "tag_list": [], "jobs_enabled": false, "public_jobs": true}
{"lfs_enabled": true, "request_access_enabled": true, "import_error": null, "only_allow_merge_if_all_discussions_are_resolved": null, "container_registry_enabled": true, "shared_runners_enabled": true, "wiki_enabled": true, "id": 855, "merge_requests_enabled": true, "archived": false, "snippets_enabled": false, "http_url_to_repo": "https://gitlab.kitware.com/utils/rust-gitlab.git", "namespace": {"path": "utils", "kind": "group", "id": 498, "full_path": "utils", "name": "Utils"}, "star_count": 0, "avatar_url": null, "issues_enabled": true, "path_with_namespace": "utils/rust-gitlab", "shared_with_groups": [], "description": "Rust library for communicating with a Gitlab instance.", "forks_count": 5, "default_branch": "master", "visibility": "public", "ssh_url_to_repo": "git@gitlab.kitware.com:utils/rust-gitlab.git", "path": "rust-gitlab", "import_status": "none", "only_allow_merge_if_pipeline_succeeds": false, "open_issues_count": 4, "last_activity_at": "2017-07-20T10:48:56.344-04:00", "name": "rust-gitlab", "name_with_namespace": "Utils / rust-gitlab", "created_at": "2016-06-29T13:35:12.495-04:00", "creator_id": 13, "web_url": "https://gitlab.kitware.com/utils/rust-gitlab", "permissions": {"group_access": {"notification_level": 3, "access_level": 50}, "project_access": null}, "tag_list": [], "jobs_enabled": false, "public_jobs": true}
{"note_events": true, "job_events": true, "tag_push_events": true, "url": "http://kwrobot02:8082/gitlab.kitware.com", "created_at": "2016-12-16T11:37:24.589-05:00", "enable_ssl_verification": true, "pipeline_events": true, "issues_events": true, "push_events": true, "merge_requests_events": true, "project_id": 855, "id": 1262, "wiki_page_events": true}
{"note_events": true, "job_events": true, "tag_push_events": true, "url": "http://kwrobot02:8082/gitlab.kitware.com", "created_at": "2016-12-16T11:37:24.589-05:00", "enable_ssl_verification": true, "pipeline_events": true, "issues_events": true, "push_events": true, "merge_requests_events": true, "project_id": 855, "repository_update_events": false, "id": 1262, "wiki_page_events": true}
{"name": "master", "developers_can_merge": false, "protected": true, "developers_can_push": false, "commit": {"committer_email": "brad.king@kitware.com", "short_id": "b2bcc6ae", "title": " cargo: prep for 0.902.1", "author_email": "brad.king@kitware.com", "committer_name": "Brad King", "created_at": "2017-06-07T19:55:39.000-04:00", "author_name": "Brad King", "parent_ids": ["2853b2549d433c638a895dd487add365930797d9"], "committed_date": "2017-06-07T19:55:39.000-04:00", "message": " cargo: prep for 0.902.1\n", "authored_date": "2017-06-07T19:55:39.000-04:00", "id": "b2bcc6ae59863b6c8e186ebe1de67df8ba7647ba"}, "merged": false}
{"name": "master", "developers_can_merge": false, "protected": true, "developers_can_push": false, "commit": {"committer_email": "kwrobot@kitware.com", "short_id": "a84836ab", "title": "Merge topic 'gitlab-9.3'", "author_email": "ben.boeckel@kitware.com", "committer_name": "Kitware Robot", "created_at": "2017-07-10T14:39:06.000-04:00", "author_name": "Ben Boeckel", "parent_ids": ["45aadb02640f6672fb4a382fc5b1ab5efec4f1df", "e5a23653f3d6532fefad0dffd90fb101ef94d42f"], "committed_date": "2017-07-10T14:39:06.000-04:00", "message": "Merge topic 'gitlab-9.3'\n\ne5a23653 systemhooks: update for 9.3 changes\n\nAcked-by: Kitware Robot <kwrobot@kitware.com>\nReviewed-by: Ben Boeckel <ben.boeckel@kitware.com>\nMerge-request: !100\n", "authored_date": "2017-07-10T18:39:04.000+00:00", "id": "a84836ab97dc687ca5a241205aff6a713255f767"}, "merged": false}
{"two_factor_enabled": true, "can_create_project": true, "confirmed_at": "2015-02-26T10:58:34.660-05:00", "twitter": "", "linkedin": "", "color_scheme_id": 4, "web_url": "https://gitlab.kitware.com/kwrobot", "skype": "", "identities": [], "id": 11, "projects_limit": 50, "current_sign_in_at": "2017-06-05T14:46:29.512-04:00", "state": "active", "location": null, "email": "kwrobot@kitware.com", "website_url": "", "username": "kwrobot", "bio": "", "last_sign_in_at": "2017-04-27T10:59:16.823-04:00", "last_activity_on": "2017-06-30", "external": false, "name": "Kitware Robot", "can_create_group": true, "created_at": "2015-02-26T10:58:34.670-05:00", "avatar_url": "https://secure.gravatar.com/avatar/9ddcd45fcb89d966aab95b1f1002f84c?s=80&d=identicon", "organization": null}
{"two_factor_enabled": true, "can_create_project": true, "confirmed_at": "2015-02-26T10:58:34.660-05:00", "twitter": "", "linkedin": "", "color_scheme_id": 4, "web_url": "https://gitlab.kitware.com/kwrobot", "skype": "", "identities": [], "id": 11, "projects_limit": 50, "current_sign_in_at": "2017-07-10T11:35:58.336-04:00", "state": "active", "location": null, "email": "kwrobot@kitware.com", "website_url": "", "username": "kwrobot", "bio": "", "last_sign_in_at": "2017-06-05T14:46:29.512-04:00", "last_activity_on": "2017-07-20", "external": false, "name": "Kitware Robot", "can_create_group": true, "created_at": "2015-02-26T10:58:34.670-05:00", "avatar_url": "https://secure.gravatar.com/avatar/9ddcd45fcb89d966aab95b1f1002f84c?s=80&d=identicon", "organization": null}
{"two_factor_enabled": true, "can_create_project": true, "confirmed_at": "2015-02-26T10:58:34.660-05:00", "twitter": "", "linkedin": "", "color_scheme_id": 4, "web_url": "https://gitlab.kitware.com/kwrobot", "skype": "", "identities": [], "id": 11, "projects_limit": 50, "current_sign_in_at": "2017-06-05T14:46:29.512-04:00", "state": "active", "location": null, "email": "kwrobot@kitware.com", "website_url": "", "username": "kwrobot", "bio": "", "last_sign_in_at": "2017-04-27T10:59:16.823-04:00", "last_activity_on": "2017-06-30", "external": false, "name": "Kitware Robot", "can_create_group": true, "created_at": "2015-02-26T10:58:34.670-05:00", "avatar_url": "https://secure.gravatar.com/avatar/9ddcd45fcb89d966aab95b1f1002f84c?s=80&d=identicon", "organization": null}
{"two_factor_enabled": true, "can_create_project": true, "confirmed_at": "2015-02-26T10:58:34.660-05:00", "twitter": "", "linkedin": "", "color_scheme_id": 4, "web_url": "https://gitlab.kitware.com/kwrobot", "skype": "", "is_admin": true, "identities": [], "id": 11, "projects_limit": 50, "current_sign_in_at": "2017-07-10T11:35:58.336-04:00", "state": "active", "location": null, "email": "kwrobot@kitware.com", "website_url": "", "username": "kwrobot", "bio": "", "last_sign_in_at": "2017-06-05T14:46:29.512-04:00", "last_activity_on": "2017-07-20", "external": false, "name": "Kitware Robot", "can_create_group": true, "created_at": "2015-02-26T10:58:34.670-05:00", "avatar_url": "https://secure.gravatar.com/avatar/9ddcd45fcb89d966aab95b1f1002f84c?s=80&d=identicon", "organization": null}
......@@ -114,8 +114,8 @@ fn test_read_issue() {
Utc.ymd(2016, 10, 30)
.and_hms_milli(18, 54, 28, 954));
assert_eq!(issue.updated_at,
Utc.ymd(2017, 1, 13)
.and_hms_milli(21, 45, 20, 901));
Utc.ymd(2017, 7, 7)
.and_hms_milli(6, 31, 03, 757));
assert!(issue.labels.is_empty());
assert!(issue.milestone.is_none());
assert_eq!(issue.author.username, "ben.boeckel");
......@@ -177,8 +177,8 @@ fn test_read_issue_reference() {
Utc.ymd(2016, 10, 4)
.and_hms_milli(18, 59, 37, 178));
assert_eq!(issue.updated_at,
Utc.ymd(2016, 10, 4)
.and_hms_milli(20, 18, 57, 519));
Utc.ymd(2017, 7, 7)
.and_hms_milli(6, 31, 5, 370));
assert!(issue.labels.is_empty());
assert!(issue.milestone.is_none());
assert_eq!(issue.author.username, "ben.boeckel");
......@@ -339,8 +339,8 @@ fn test_read_project() {
Utc.ymd(2016, 6, 29)
.and_hms_milli(17, 35, 12, 495));
assert_eq!(project.last_activity_at,
Utc.ymd(2017, 6, 19)
.and_hms_milli(14, 17, 18, 412));
Utc.ymd(2017, 7, 20)
.and_hms_milli(14, 48, 56, 344));
assert_eq!(project.shared_runners_enabled, true);
assert_eq!(project.lfs_enabled, true);
assert_eq!(project.creator_id, UserId::new(13));
......@@ -354,7 +354,7 @@ fn test_read_project() {
assert_eq!(project.avatar_url, None);
assert_eq!(project.star_count, 0);
assert_eq!(project.forks_count, 5);
assert_eq!(project.open_issues_count, Some(3));
assert_eq!(project.open_issues_count, Some(4));
assert_eq!(project.public_jobs, true);
assert!(project.shared_with_groups.is_empty());
assert_eq!(project.only_allow_merge_if_pipeline_succeeds, Some(false));
......@@ -405,26 +405,35 @@ fn test_read_repo_branch() {
assert_eq!(repo_branch.name, "master");
if let Some(ref commit) = repo_branch.commit {
assert_eq!(commit.author_email, "brad.king@kitware.com");
assert_eq!(commit.author_name, "Brad King");
assert_eq!(commit.author_email, "ben.boeckel@kitware.com");
assert_eq!(commit.author_name, "Ben Boeckel");
assert_eq!(commit.authored_date,
Utc.ymd(2017, 6, 7)
.and_hms_milli(23, 55, 39, 0));
Utc.ymd(2017, 7, 10)
.and_hms_milli(18, 39, 4, 0));
assert_eq!(commit.committed_date,
Utc.ymd(2017, 6, 7)
.and_hms_milli(23, 55, 39, 0));
Utc.ymd(2017, 7, 10)
.and_hms_milli(18, 39, 6, 0));
assert_eq!(commit.created_at,
Utc.ymd(2017, 6, 7)
.and_hms_milli(23, 55, 39, 0));
assert_eq!(commit.committer_email, "brad.king@kitware.com");
assert_eq!(commit.committer_name, "Brad King");
Utc.ymd(2017, 7, 10)
.and_hms_milli(18, 39, 6, 0));
assert_eq!(commit.committer_email, "kwrobot@kitware.com");
assert_eq!(commit.committer_name, "Kitware Robot");
assert_eq!(commit.id,
ObjectId::new("b2bcc6ae59863b6c8e186ebe1de67df8ba7647ba"));
assert_eq!(commit.short_id, ObjectId::new("b2bcc6ae"));
assert_eq!(commit.title, " cargo: prep for 0.902.1");
assert_eq!(commit.message, " cargo: prep for 0.902.1\n");
ObjectId::new("a84836ab97dc687ca5a241205aff6a713255f767"));
assert_eq!(commit.short_id, ObjectId::new("a84836ab"));
assert_eq!(commit.title, "Merge topic 'gitlab-9.3'");
assert_eq!(commit.message,
"Merge topic 'gitlab-9.3'\n\
\n\
e5a23653 systemhooks: update for 9.3 changes\n\
\n\
Acked-by: Kitware Robot <kwrobot@kitware.com>\n\
Reviewed-by: Ben Boeckel <ben.boeckel@kitware.com>\n\
Merge-request: !100\n\
");
assert_eq!(commit.parent_ids,
vec![ObjectId::new("2853b2549d433c638a895dd487add365930797d9")]);
vec![ObjectId::new("45aadb02640f6672fb4a382fc5b1ab5efec4f1df"),
ObjectId::new("e5a23653f3d6532fefad0dffd90fb101ef94d42f")]);
} else {
panic!("expected to have a commit for the branch");
}
......@@ -454,10 +463,8 @@ fn test_read_repo_commit_detail() {
queries\n\nAcked-by: Kitware Robot <kwrobot@kitware.com>\nReviewed-by: Brad King \
<brad.king@kitware.com>\nMerge-request: !46\n");
assert_eq!(repo_commit_detail.parent_ids,
vec![
ObjectId::new("559f5f4a2bfe1f48e9e95afa09c029deb655cf7d"),
ObjectId::new("a222c5539569cda6999b8069f1e51a5202c30711"),
]);
vec![ObjectId::new("559f5f4a2bfe1f48e9e95afa09c029deb655cf7d"),
ObjectId::new("a222c5539569cda6999b8069f1e51a5202c30711")]);
assert_eq!(repo_commit_detail.committed_date,
Utc.ymd(2016, 11, 8)
.and_hms_milli(14, 30, 13, 0));
......@@ -508,7 +515,7 @@ fn test_read_user_public() {
assert_eq!(user_public.created_at,
Utc.ymd(2015, 2, 26)
.and_hms_milli(15, 58, 34, 670));
assert_eq!(user_public.is_admin, None);
assert_eq!(user_public.is_admin, Some(true));
assert_eq!(user_public.bio, Some("".to_string()));
assert_eq!(user_public.location, None);
assert_eq!(user_public.skype, "");
......@@ -517,10 +524,10 @@ fn test_read_user_public() {
assert_eq!(user_public.website_url, "");
assert_eq!(user_public.organization, None);
assert_eq!(user_public.last_sign_in_at,
Some(Utc.ymd(2017, 4, 27)
.and_hms_milli(14, 59, 16, 823)));
Some(Utc.ymd(2017, 6, 5)
.and_hms_milli(18, 46, 29, 512)));
assert_eq!(user_public.last_activity_on,
Some(NaiveDate::from_ymd(2017, 6, 30)));
Some(NaiveDate::from_ymd(2017, 7, 20)));
assert_eq!(user_public.confirmed_at,
Some(Utc.ymd(2015, 2, 26)
.and_hms_milli(15, 58, 34, 660)));
......@@ -528,8 +535,8 @@ fn test_read_user_public() {
assert_eq!(user_public.color_scheme_id, ColorSchemeId::new(4));
assert_eq!(user_public.projects_limit, 50);
assert_eq!(user_public.current_sign_in_at,
Some(Utc.ymd(2017, 6, 5)
.and_hms_milli(18, 46, 29, 512)));
Some(Utc.ymd(2017, 7, 10)
.and_hms_milli(15, 35, 58, 336)));
assert!(user_public.identities.is_empty());
assert_eq!(user_public.can_create_group, true);
assert_eq!(user_public.can_create_project, true);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment