[Apache Bloodhound] New user registration: cst
New user registration for user cst -- Apache Bloodhound https://issues.apache.org/bloodhound/ The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #569: QCT view/edit link can direct to Error: Invalid ticket number
#569: QCT view/edit link can direct to Error: Invalid ticket number ---+--- Reporter: rjollos | Owner: rjollos Type: defect| Status: accepted Priority: blocker | Milestone: Release 6 Component: multiproduct |Version: Resolution:| Keywords: qct ---+--- Comment (by rjollos): Replying to [comment:5 matevzb]: If I understand correctly, QCT should default to the product in the current scope, but still allow selection of other products. And when invoked in the global scope, it should default to the default_product. After investigating further, I've found that the behavior is as you describe, and the problem is what you've suggested - it just doesn't behave correctly when `[multiproduct] default_ticket_prefix` is set to a prefix that doesn't exist. -- Ticket URL: https://issues.apache.org/bloodhound/ticket/569#comment:9 Apache Bloodhound https://issues.apache.org/bloodhound/ The Apache Bloodhound issue tracker
svn commit: r1496160 - in /bloodhound/trunk/bloodhound_theme/bhtheme: templates/bloodhound_theme.html theme.py
Author: rjollos Date: Mon Jun 24 19:01:46 2013 New Revision: 1496160 URL: http://svn.apache.org/r1496160 Log: Whitespace cleanup, removed unused import and replaced `dict` with dictionary literal. Modified: bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html bloodhound/trunk/bloodhound_theme/bhtheme/theme.py Modified: bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html URL: http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html?rev=1496160r1=1496159r2=1496160view=diff == --- bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html (original) +++ bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html Mon Jun 24 19:01:46 2013 @@ -114,19 +114,19 @@ /div !--! create ticket button + dropdown -- - py:def function=field_select(field, value) + py:def function=field_select(field) select id=field-${field.name} name=field_${field.name} class=input-block-level data-empty=true data-field=${field.name} option py:if=field.optional/option option py:for=option in field.options - selected=${value == option or None} + selected=${field.value == option or None} value = $option py:content=option/option optgroup py:for=optgroup in field.optgroups py:if=optgroup.options label=${optgroup.label} option py:for=option in optgroup.options -selected=${value == option or None} +selected=${field.value == option or None} value = $option py:content=option/option /optgroup @@ -169,9 +169,13 @@ div class=control-group py:for each=field in qct.fields label for=field-${field.name}${field.label}/label -${field_select(field, None)} +${field_select(field)} /py:for /div + +py:for each=field in qct.hidden_fields + input type=hidden name=field_${field.name} value=${field.value} / +/py:for /form div class=controls @@ -314,7 +318,7 @@ div class=control-group py:for each=field in qct.fields label for=field-${field.name}${field.label}/label -${field_select(field, None)} +${field_select(field)} /py:for /div /form Modified: bloodhound/trunk/bloodhound_theme/bhtheme/theme.py URL: http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py?rev=1496160r1=1496159r2=1496160view=diff == --- bloodhound/trunk/bloodhound_theme/bhtheme/theme.py (original) +++ bloodhound/trunk/bloodhound_theme/bhtheme/theme.py Mon Jun 24 19:01:46 2013 @@ -474,11 +474,18 @@ class QuickCreateTicketDialog(Component) } product_field = all_fields['product'] -if product_field and self.env.product: -product_field['value'] = self.env.product.prefix - -data['qct'] = {'fields': [all_fields[k] for k in self.qct_fields - if k in all_fields]} +if product_field: +if self.env.product: +product_field['value'] = self.env.product.prefix +else: +product_field['value'] = product_field['options'][0] + +data['qct'] = { +'fields': [all_fields[k] for k in self.qct_fields + if k in all_fields], +'hidden_fields': [all_fields[k] for k in all_fields.keys() + if k not in self.qct_fields] +} return template, data, content_type # IRequestHandler methods
svn commit: r1496170 - in /bloodhound/trunk/bloodhound_theme/bhtheme: templates/bloodhound_theme.html theme.py
Author: rjollos Date: Mon Jun 24 19:26:21 2013 New Revision: 1496170 URL: http://svn.apache.org/r1496170 Log: Reverting r1496160, which was committed in error. Modified: bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html bloodhound/trunk/bloodhound_theme/bhtheme/theme.py Modified: bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html URL: http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html?rev=1496170r1=1496169r2=1496170view=diff == --- bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html (original) +++ bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html Mon Jun 24 19:26:21 2013 @@ -114,19 +114,19 @@ /div !--! create ticket button + dropdown -- - py:def function=field_select(field) + py:def function=field_select(field, value) select id=field-${field.name} name=field_${field.name} class=input-block-level data-empty=true data-field=${field.name} option py:if=field.optional/option option py:for=option in field.options - selected=${field.value == option or None} + selected=${value == option or None} value = $option py:content=option/option optgroup py:for=optgroup in field.optgroups py:if=optgroup.options label=${optgroup.label} option py:for=option in optgroup.options -selected=${field.value == option or None} +selected=${value == option or None} value = $option py:content=option/option /optgroup @@ -169,13 +169,9 @@ div class=control-group py:for each=field in qct.fields label for=field-${field.name}${field.label}/label -${field_select(field)} +${field_select(field, None)} /py:for /div - -py:for each=field in qct.hidden_fields - input type=hidden name=field_${field.name} value=${field.value} / -/py:for /form div class=controls @@ -318,7 +314,7 @@ div class=control-group py:for each=field in qct.fields label for=field-${field.name}${field.label}/label -${field_select(field)} +${field_select(field, None)} /py:for /div /form Modified: bloodhound/trunk/bloodhound_theme/bhtheme/theme.py URL: http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py?rev=1496170r1=1496169r2=1496170view=diff == --- bloodhound/trunk/bloodhound_theme/bhtheme/theme.py (original) +++ bloodhound/trunk/bloodhound_theme/bhtheme/theme.py Mon Jun 24 19:26:21 2013 @@ -474,18 +474,11 @@ class QuickCreateTicketDialog(Component) } product_field = all_fields['product'] -if product_field: -if self.env.product: -product_field['value'] = self.env.product.prefix -else: -product_field['value'] = product_field['options'][0] - -data['qct'] = { -'fields': [all_fields[k] for k in self.qct_fields - if k in all_fields], -'hidden_fields': [all_fields[k] for k in all_fields.keys() - if k not in self.qct_fields] -} +if product_field and self.env.product: +product_field['value'] = self.env.product.prefix + +data['qct'] = {'fields': [all_fields[k] for k in self.qct_fields + if k in all_fields]} return template, data, content_type # IRequestHandler methods
svn commit: r1496220 - /bloodhound/trunk/bloodhound_theme/bhtheme/theme.py
Author: rjollos Date: Mon Jun 24 21:15:22 2013 New Revision: 1496220 URL: http://svn.apache.org/r1496220 Log: Refs #569: * Added `product` to default `quick_create_fields`. * Ensure that the `product` select is properly populated, even when `[multiproduct] default_product_prefix` is invalid. Modified: bloodhound/trunk/bloodhound_theme/bhtheme/theme.py Modified: bloodhound/trunk/bloodhound_theme/bhtheme/theme.py URL: http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py?rev=1496220r1=1496219r2=1496220view=diff == --- bloodhound/trunk/bloodhound_theme/bhtheme/theme.py (original) +++ bloodhound/trunk/bloodhound_theme/bhtheme/theme.py Mon Jun 24 21:15:22 2013 @@ -443,7 +443,7 @@ class QuickCreateTicketDialog(Component) implements(IRequestFilter, IRequestHandler) qct_fields = ListOption('ticket', 'quick_create_fields', -'version,type', +'product, version, type', doc=Multiple selection fields displayed in create ticket menu) # IRequestFilter(Interface): @@ -478,7 +478,15 @@ class QuickCreateTicketDialog(Component) if self.env.product: product_field['value'] = self.env.product.prefix else: -product_field['value'] = product_field['options'][0] +# Global scope, now check default_product_prefix is valid +default_prefix = self.config.get('multiproduct', + 'default_product_prefix') +try: +ProductEnvironment.lookup_env(self.env, default_prefix) +except LookupError: +product_field['value'] = product_field['options'][0] +else: +product_field['value'] = default_prefix data['qct'] = { 'fields': [all_fields[k] for k in self.qct_fields @@ -540,8 +548,6 @@ class QuickCreateTicketDialog(Component) t[k] = v t['status'] = 'new' t['resolution'] = '' -if self.env.product: -t['product'] = self.env.product.prefix t.insert() if notify:
[Apache Bloodhound] #574: bep-0008 #1 Display historical changes for a specific ticket
#574: bep-0008 #1 Display historical changes for a specific ticket ---+--- Reporter: huaxiang |Owner: Type: task | Status: new Priority: major | Version: Resolution:| ---+--- Add a new functionality for reports: Display historical changes for a specific ticket according to the given ticket no/keywords -- Ticket URL: https://issues.apache.org/bloodhound/ticket/574 Apache Bloodhound https://issues.apache.org/bloodhound/ The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #568: New tickets cannot be viewed
#568: New tickets cannot be viewed +--- Reporter: avp| Owner: rjollos Type: defect | Status: accepted Priority: blocker| Milestone: Release 6 Component: dashboard |Version: Resolution: | Keywords: qct +--- Comment (by rjollos): I had incorrectly specified the option in comment:2, but I've since edited it to correct. -- Ticket URL: https://issues.apache.org/bloodhound/ticket/568#comment:4 Apache Bloodhound https://issues.apache.org/bloodhound/ The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #568: New tickets cannot be viewed
#568: New tickets cannot be viewed +--- Reporter: avp| Owner: rjollos Type: defect | Status: closed Priority: blocker| Milestone: Release 6 Component: dashboard |Version: Resolution: fixed | Keywords: qct +--- Changes (by rjollos): * status: accepted = closed * resolution: = fixed Comment: Fixed in [1496179] and [1496220] (see #569). In the event that `[multiproduct] default_product_prefix` is invalid, the ticket will be associated with the first product in the sorted list of products (which will most likely be the product with prefix `@`). -- Ticket URL: https://issues.apache.org/bloodhound/ticket/568#comment:5 Apache Bloodhound https://issues.apache.org/bloodhound/ The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #569: QCT view/edit link can direct to Error: Invalid ticket number
#569: QCT view/edit link can direct to Error: Invalid ticket number ---+--- Reporter: rjollos | Owner: rjollos Type: defect| Status: accepted Priority: blocker | Milestone: Release 6 Component: multiproduct |Version: Resolution:| Keywords: qct ---+--- Description changed by rjollos: Old description: To reproduce: 1. Create two products, `prod1` and `prod2`. 1. Set `[ticket] default_product = prod1`. 1. Navigate to `/products/prod2` 1. Create a ticket via //Quick Create Ticket//. 1. Follow the `View / Edit` link in the balloon that appears after creating the ticket. You will land on an error page with: **Error: Invalid ticket number** Ticket 1 does not exist. The URL will be `/products/prod2/ticket/1`. Navigate to `/products/prod1/ticket/1` to find the ticket, replacing `1` with the number of the ticket that was created, if necessary. New description: To reproduce: 1. Create two products, `prod1` and `prod2`. 1. Set `[multiproduct] default_product_prefix = prod1`. 1. Navigate to `/products/prod2` 1. Create a ticket via //Quick Create Ticket//. 1. Follow the `View / Edit` link in the balloon that appears after creating the ticket. You will land on an error page with: **Error: Invalid ticket number** Ticket 1 does not exist. The URL will be `/products/prod2/ticket/1`. Navigate to `/products/prod1/ticket/1` to find the ticket, replacing `1` with the number of the ticket that was created, if necessary. -- -- Ticket URL: https://issues.apache.org/bloodhound/ticket/569#comment:10 Apache Bloodhound https://issues.apache.org/bloodhound/ The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #574: BEP-0008 #1 Display historical changes for a specific ticket (was: bep-0008 #1 Display historical changes for a specific ticket)
#574: BEP-0008 #1 Display historical changes for a specific ticket +-- Reporter: huaxiang | Owner: nobody Type: task | Status: new Priority: major | Milestone: Component: dashboard |Version: Resolution: | Keywords: BEP-0008 +-- Changes (by huaxiang): * keywords: = BEP-0008 * owner: = nobody * component: = dashboard -- Ticket URL: https://issues.apache.org/bloodhound/ticket/574#comment:1 Apache Bloodhound https://issues.apache.org/bloodhound/ The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #569: QCT view/edit link can direct to Error: Invalid ticket number
#569: QCT view/edit link can direct to Error: Invalid ticket number ---+--- Reporter: rjollos | Owner: rjollos Type: defect| Status: closed Priority: blocker | Milestone: Release 6 Component: multiproduct |Version: Resolution: fixed | Keywords: qct ---+--- Changes (by rjollos): * status: accepted = closed * resolution: = fixed Old description: To reproduce: 1. Create two products, `prod1` and `prod2`. 1. Set `[multiproduct] default_product_prefix = prod1`. 1. Navigate to `/products/prod2` 1. Create a ticket via //Quick Create Ticket//. 1. Follow the `View / Edit` link in the balloon that appears after creating the ticket. You will land on an error page with: **Error: Invalid ticket number** Ticket 1 does not exist. The URL will be `/products/prod2/ticket/1`. Navigate to `/products/prod1/ticket/1` to find the ticket, replacing `1` with the number of the ticket that was created, if necessary. New description: To reproduce: 1. Create two products, `prod1` and `prod2`. 1. Set `[ticket] default_product = prod1`. 1. Navigate to `/products/prod2` 1. Create a ticket via //Quick Create Ticket//. 1. Follow the `View / Edit` link in the balloon that appears after creating the ticket. You will land on an error page with: **Error: Invalid ticket number** Ticket 1 does not exist. The URL will be `/products/prod2/ticket/1`. Navigate to `/products/prod1/ticket/1` to find the ticket, replacing `1` with the number of the ticket that was created, if necessary. -- Comment: I think that part of this report is invalid since `[ticket] default_product` isn't an option that should be specified. The changes in [1496179] and [1496220] should prevent the possibility of this configuration error though. (In [1496179]) Refs #569: * If `[multiproduct] default_product_prefix` is invalid (set to a non- existing prefix), tickets created at global scope will use the first product in the sorted list. * The fields of tickets created through the QCT dialog now default to the values specified in the `[ticket]` section of trac.ini. For fields displayed in the dialog (i.e. those specified in `[ticket] quick_create_fields`, the select now defaults to the proper value. Fields not displayed in the dialog are passed as hidden form fields. (In [1496220]) Refs #569: * Added `product` to default `quick_create_fields`. * Ensure that the `product` select is properly populated, even when `[multiproduct] default_product_prefix` is invalid. -- Ticket URL: https://issues.apache.org/bloodhound/ticket/569#comment:11 Apache Bloodhound https://issues.apache.org/bloodhound/ The Apache Bloodhound issue tracker
Re: [Apache Bloodhound] #554: Last Login does not update
#554: Last Login does not update --+ Reporter: rjollos | Owner: rjollos Type: defect | Status: accepted Priority: major| Milestone: Release 7 Component: plugins |Version: 0.5.3 Resolution: | Keywords: AccountManager --+ Changes (by rjollos): * priority: critical = major * milestone: Release 6 = Release 7 -- Ticket URL: https://issues.apache.org/bloodhound/ticket/554#comment:18 Apache Bloodhound https://issues.apache.org/bloodhound/ The Apache Bloodhound issue tracker