This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't have a zero-parent relationship for root iteration/area (#2283)
Before a root iteration/area had a parent iteration with a zeroed UUID: ```yaml "relationships": { "parent": { "data": { "id": "00000000-0000-0000-0000-000000000000", "type": "iterations" }, ``` That is removed now. This adds a test that shows how a root and a child iteration/area are represented on JSONAPI level. Added `testfixture.SetAreaNames()` and `testfixture.AreaByName()` functions as well. This fixes the root cause for openshiftio/openshift.io#4309 . The UI fix in Raunak1203/fabric8-planner@e7c34a2 only fixes a symptom by implementing a work around.
- Loading branch information
Showing
12 changed files
with
184 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
controller/test-files/area/show/ok-root-area.headers.golden.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"Cache-Control": [ | ||
"private,max-age=120" | ||
], | ||
"Content-Type": [ | ||
"application/vnd.api+json" | ||
], | ||
"Etag": [ | ||
"0icd7ov5CqwDXN6Fx9z18g==" | ||
], | ||
"Last-Modified": [ | ||
"Mon, 01 Jan 0001 00:00:00 GMT" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
controller/test-files/iteration/show/ok-root-iteration.res.payload.golden.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"data": { | ||
"attributes": { | ||
"active_status": false, | ||
"created-at": "0001-01-01T00:00:00Z", | ||
"description": "some description (see function github.com/fabric8-services/fabric8-wit/controller_test.(*TestIterationREST).TestShow in controller/iteration_blackbox_test.go)", | ||
"name": "root", | ||
"parent_path": "/", | ||
"resolved_parent_path": "/", | ||
"state": "new", | ||
"updated-at": "0001-01-01T00:00:00Z", | ||
"user_active": false | ||
}, | ||
"id": "00000000-0000-0000-0000-000000000001", | ||
"links": { | ||
"related": "http:///api/iterations/00000000-0000-0000-0000-000000000001", | ||
"self": "http:///api/iterations/00000000-0000-0000-0000-000000000001" | ||
}, | ||
"relationships": { | ||
"space": { | ||
"data": { | ||
"id": "00000000-0000-0000-0000-000000000002", | ||
"type": "spaces" | ||
}, | ||
"links": { | ||
"related": "http:///api/spaces/00000000-0000-0000-0000-000000000002", | ||
"self": "http:///api/spaces/00000000-0000-0000-0000-000000000002" | ||
} | ||
}, | ||
"workitems": { | ||
"links": { | ||
"related": "http:///api/workitems/?filter[iteration]=00000000-0000-0000-0000-000000000001" | ||
}, | ||
"meta": { | ||
"closed": 0, | ||
"total": 0 | ||
} | ||
} | ||
}, | ||
"type": "iterations" | ||
} | ||
} |
Oops, something went wrong.