History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-3968
Type: New Feature New Feature
Status: Closed Closed
Resolution: Won't Fix
Priority: Major Major
Assignee: Robin Shen
Reporter: Nguyen Danh Hung
Votes: 2
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickBuild

Make a list of recent builds for each user

Created: 25/May/23 01:30 AM   Updated: 05/Jan/24 02:53 AM
Component/s: None
Affects Version/s: 10.0.42
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
We need Quickbuild to deploy a feature that can:
1. Display a list of my latest builds in dashboard (a gadget?)
2. In the configuration overview, 1 panel show some my latest builds like Summary/Recent Builds panel
Could you please help us with this?

 All   Comments   Work Log   Change History      Sort Order:
Nguyen Danh Hung [26/May/23 03:23 AM]
Hello Mr. Robin Shen,
What do you think about this feature?

Robin Shen [26/May/23 03:25 AM]
Will make it into next major release.

Nguyen Duc Long [13/Jun/23 09:22 AM]
This is great.
But it would be better if there was an additional "My Build Count" variable in My setting. It will specify the number of buildings displayed on Gadget and Panel.
Needs more 2 buttons (Collapse | More) to show more and collapse.

Robin Shen [25/Dec/23 11:34 AM]
This can be achieved with scripted build list gadget. For instance, below script can be used to list latest 10 builds triggered by current user.

groovy:

import com.pmease.quickbuild.Context;
import com.pmease.quickbuild.model.Build;
import com.pmease.quickbuild.SearchCriteria;
import org.hibernate.criterion.Restrictions;
import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Order;

if (Context.getUser() != null) {
  Criterion[] criterions = [Restrictions.eq("requester", Context.getUser())];
  Order[] orders = [Order.desc("beginDate")];
  def criteria = new SearchCriteria(criterions, orders);
  return system.buildManager.search(criteria, 0, 10);
} else {
  return new ArrayList<Build>();
}

Nguyen Danh Hung [03/Jan/24 08:03 AM]
Hello Mr.Robin Shen,
This solution only apply for:
1. Display a list of my latest builds in dashboard (a gadget?)
In a specific configuration, there are no gadget to display my builds in that configuration
In 2nd request, we want a list like Summary list
Please help us check this.
Thank you so much.

Robin Shen [03/Jan/24 01:04 PM]
Yes this is a gadget. Displaying my latest builds in configuration page will make the page too crowded.

Nguyen Danh Hung [04/Jan/24 03:52 AM]
I think it is fine when the panel display 5 builds.
User can expand/collapse the panel to show more/less builds, or history button can show the build list of current user in current configuration

Robin Shen [04/Jan/24 01:17 PM]
I filed an improvement request to show my builds from history builds menu of configuration overview page:

https://track.pmease.com/browse/QB-4061

Please watch it to get notified.

Nguyen Danh Hung [05/Jan/24 02:53 AM]
Ok, I got it
Thank you