-
Notifications
You must be signed in to change notification settings - Fork 66
Planner: Add work items widget uses API that doesn't exist anymore #3383
Comments
@jiekang is this needed or blocking for an issue? |
@joshuawilson |
And conversely, if this isn't a P0, then #3021 should not be a P0 either. Short description: |
I have fixed the issue with work item type service, but the problem is we don't support non-contextual detail add from the planner, thus the next step in this flow is broken. |
@qodfathr @joshuawilson @jiekang can we remove the Add work item work flow from the dash board. |
@joshuawilson It looks like the suggested action is to remove the add work item flow from the UI. That's relatively simple to do; I or Dan could take a look. Is that acceptable? |
We should remove it. This flow will not work anymore. And it also does not makes sense from a systematic perspective: even if it would work, it would promote creating top-level WIs, which is not desirable in most cases. New WIs certainly are childs and should be properly created using the contextual add. We can get to a feature like that later when implementing the generic "issue" WIT. |
Okay. I can look at providing a PR to remove the functionality completely. |
I was also thinking this should be removed. I'll close fabric8-ui/fabric8-ui#2843 and reference this issue. |
I'm for removing as well. |
Fix has been merged upstream. I will track this and close it when it reaches Production. |
Closing as this has been fixed and we don't want to work this way anymore. |
The planner
work-items.service.ts
provides functiongetWorkItemTypes
. It makes a request to get workitemtypes, building the URL:this.workItemTypeUrl = this._currentSpace.links.self + '/workitemtypes';
In production, requests to this endpoint are 404 Not Found for me. This affects the add work items widget in fabric8-ui. It displays a blank page.
Comments in this PR [1] suggest the URL should be built from the 'relationships' part of the space response.
[1] fabric8-services/fabric8-wit#2073
Edit: Specifically, this service is used in
fabric8-ui:create-work-item-overlay.component.ts
via:Edit2:
It looks like there is another API that has been changed:
https://api.openshift.io/api/namedspaces/<username>/prod-5/workitems/new?type=26787039-b68f-4e28-8814-c2f93be1ef4e
Returns:
400 Bad Request:
{"errors":[{"code":"invalid_request","detail":"invalid value \"new\" for parameter \"wiNumber\", must be a integer","id":"YxQM4g7F","status":"400","title":"Bad Request"}]}
This will need to be addressed as well to make the widget work.
[2] fabric8-ui/fabric8-ui#2843
The text was updated successfully, but these errors were encountered: