Closed mythmon closed 9 years ago
I'll work on this next. I'm skimming the code and I'm not sure how to approach this.
In Ernest, what we did is:
In Edwin, the BugStore
handles SET_RAW_BUGS
and goes through and augments all the bugs with information. We need to do another fetch for bugs, so I think that requires another action.
So I think we should do something like:
Timeline.js
calls loadBugs
that does a fetch and then creates a SET_RAW_BUGS
actionBugStore
handles SET_RAW_BUGS
and augments all the bugs it just gotTimeline.js
calls loadBlockerBugs
which somehow gets the list of bugs from the BugStore
, figures out the list of blocker bugs and does a fetch for the resolution for those blocker bugsBugStore
handles a SET_BLOCKER_BUGS_STATUS
and augments all the bugs with the status of blockersDoes that sound like a good plan?
That does sound like a good plan. It doesn't exactly vibe with the long term plans I had for the BugStore, but I shouldn't block useful work on things like that.
The "somehow gets the list of bugs from the BugStore" part you mentioned would probably just be BugStore.getBugs()
or whatever the method is. It is fine for the actionCreators to call the public methods of the BugStore.
When a bug is blocked by another bug, that should be shown in the UI.