Problem/Motivation
After bulk adding, i have the job item for "TMGMT Demo" (from tmgmt_demo) but the item does not show up on the sources overview as pending item. I guess the reason is that the job is in one of the new continuous job states. But that's wrong.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #23 | active_items_of-2685479-23.patch | 1.91 KB | thenchev |
| #23 | interdiff-2685479-14-23.txt | 725 bytes | thenchev |
| #21 | interdiff-2685479-14-20.txt | 660 bytes | johnchque |
| #20 | active_items_of-2685479-20.patch | 1.93 KB | johnchque |
| #18 | active_items_of-2685479-18-debug.patch | 2.04 KB | johnchque |
Comments
Comment #2
miro_dietikerThe reason is, as stated in other issues, our API to load the last active item is not returning items from the continuous job.
Comment #3
miro_dietikerMuch confusing in using the UI.
Comment #4
thenchev commentedlooking into this
Comment #5
thenchev commentedIf this is the right solution i can make a test coverage.
Comment #6
berdirYes, that is correct. But we have at least one additional function that has a similar condition.
In fact, you should check and review all active/unprocessed checks/references and checks like that and check if it should apply to continuous as well.
Comment #7
berdirComment #8
thenchev commentedDidn't notice other places that i can change. I can use some more details if there are more.
Comment #9
berdirIf that's the only ones then fine, still needs tests. We should be able to extend some of the existing continuous UI tests, visit the sources page and confirm you see a link to an existing job item there.
Comment #10
thenchev commentedTest.
Comment #12
thenchev commentedHmm... weird, this is green on localhost
Comment #13
mbovan commentedThere was a problem in Collect a while ago, that order was not guaranteed with reset() function. The problem especially occurred on Test bot.
But, it seems that you have only one element here...
To be consistent, I would say "array()" or "[]" syntax for both conditions.
You can remove 1 extra tab here.
Comment #14
thenchev commentedAddressed the code style and yes, only one item. Debugged the test seems fine here. So im not sure...
Comment #16
johnchqueLet's add some debug and see if the icon is found.
Comment #18
johnchqueLets add a new debug to see what is going on here. :)
Comment #20
johnchqueI knew it, testbot!, checking the link the testbot adds a '/checkout' preffix to the link. Maybe asserting in this way can also work.
Comment #21
johnchqueInterdiff with patch 14. :)
Comment #22
berdirWhy not use assertLinkByHref() ? It by default does a partial match, so it shouldn't matter if it has /checkout or not.
Comment #23
thenchev commentedChanged to assertLinkByHref
Comment #25
berdirThat looks good now, yes.