[jira] [Updated] (OFBIZ-5793) modify logic to only run expiry service once when subscription expires

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (OFBIZ-5793) modify logic to only run expiry service once when subscription expires

Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-5793?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacopo Cappellato updated OFBIZ-5793:
-------------------------------------
    Fix Version/s:     (was: Trunk)
                   Upcoming Branch

> modify logic to only run expiry service once when subscription expires
> ----------------------------------------------------------------------
>
>                 Key: OFBIZ-5793
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5793
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: product
>    Affects Versions: Trunk
>         Environment: not relevant
>            Reporter: Ivan Cauchi
>            Assignee: Jacopo Cappellato
>            Priority: Minor
>              Labels: subscription
>             Fix For: Upcoming Branch
>
>         Attachments: OFBIZ-5793.patch, OFBIZ-5793.v3.patch
>
>   Original Estimate: 672h
>  Remaining Estimate: 672h
>
> Background
> ---------------
> Recenlty, the trunk version of OFBiz was augmented with a new service called runServiceUponSubscriptionExpiry through JIRA5333.  This service is scheduled to run, using the demo data, once a day.  Its algorithm looks up all subscriptions which have expired, which is defined as the current time being greater than the sum of the subscription.thruDate + subscription.gracePeriodOnExpiry, and Subscription.automaticExtend is false.  For all such subscriptions, the service runs any service named in SubscriptionResource.serviceNameOnExpiry.
> This provides users of the OFBiz framework who provide subscriptions to their customers using the framework, to trigger an external deprovisioning action when a subscription expires, implemented as a service whose name is inserted into  SubscriptionResource.serviceNameOnExpiry.
> Currently, the service mentioned in  SubscriptionResource.serviceNameOnExpiry is run every time the master service  runServiceUponSubscriptionExpiry goes through its algorithm (once a day in the demo data).  Typically, for subscriptions which require a deprovisioning action when the subscription expired, one and only one deprovisioning action would be required.
> proposed solution
> -----------------------
> To resolve this, it is being proposed to make the following adjustments:
> a) augment the OFBiz data model with the following new field:
> Subscription.expirationCompletedDate
> b) modify the algorithm of  runServiceUponSubscriptionExpiry to also check whether the expiry service has already run, by checking that expirationCompletedDate is null.
> - if expirationCompletedDate is null (and the other conditions are satisfied), run the service in SubscriptionResource.serviceNameOnExpiry and update the date/time into expirationCompletedDate
> - if  expirationCompletedDate is not null, skip the expired subscription and move to the next
> Testing
> ---------
> 1. create a new subscription through OFBiz with demo data
> 2. modify the subscription's thru date and gracePeriodOnExpiry so the result of their addition is in the past of the system date
> 3. verify that Subscription.expirationCompletedDate is empty
> 4. either wait for the daily running of  runServiceUponSubscriptionExpiry, or trigger the service manually
> 5. verify that the log file contains a reference to the subscription having expired, and that  Subscription. expirationCompletedDate contains the date/time the service was run
> 6. either wait for the daily running of  runServiceUponSubscriptionExpiry, or trigger the service manually, for a second time
> 7. verify that the log file does not contain a reference to the subscription having expired, and that Subscription.expirationCompletedDate still contains the date/time the service was run



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Reply | Threaded
Open this post in threaded view
|

search in documentation

info@agentur-m3.de
The search function in
        http://ofbiz.apache.org/documentation.html
seems not work.
There is no button to submit a search input
and pressing ENTER does not submit the search.

It would be helpful to search all sources with
one search function.



Reply | Threaded
Open this post in threaded view
|

javascript doc - missing links

info@agentur-m3.de
In reply to this post by Nicolas Malin (Jira)
In

https://cwiki.apache.org/confluence/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo

some links to javascript and ajax

e.g. in section "Ajax - Javascript - Json"
 "An easy way to get a data structure from server to Javascript in
client browser"
and
"Integrate OFBiz with Yui-Ext"

seem to be not valid anymore.

Did the articles moved somewhere else?

Is there any further documentation on javascript/ajax?

I would like to choose a product-list in ecommerce
via javascript/ajax and could not find an
example for this.

Thank you for help!


Reply | Threaded
Open this post in threaded view
|

RE: search in documentation

eejaz.ahmed
In reply to this post by info@agentur-m3.de
It is working for me (with firefox). I had to press enter and it works. Select end user documentation, enter catalog in the search parameter and hit enter. Here is the result of my query:
https://cwiki.apache.org/confluence/dosearchsite.action?where=OFBENDUSER&queryString=catalog


Regards:

Ejaz Ahmed





> Date: Sat, 8 Nov 2014 13:04:12 +0100
> From: [hidden email]
> To: [hidden email]
> Subject: search in documentation
>
> The search function in
> http://ofbiz.apache.org/documentation.html
> seems not work.
> There is no button to submit a search input
> and pressing ENTER does not submit the search.
>
> It would be helpful to search all sources with
> one search function.
>
>
>
     
Reply | Threaded
Open this post in threaded view
|

Re: search in documentation

Jacques Le Roux
Administrator
In reply to this post by info@agentur-m3.de
Enter works here. There is also no button in Firefox search bar, for instance.

Adding an option for all workspace is a good idea. But the only way I know for that is to have favourites Confluence workspaces (obviously here OFBiz
ones) where to search.
AFAIK favourites workspaces are only available to Confluence profiles. I guess you see the problem.

We "recently" discussed the idea of grouping all Confluence workspaces in one. But this means a lot of restructuring effort, when we only are slowly
revamping the doc...
This could be done after this phase...

Jacques

Le 08/11/2014 13:04, [hidden email] a écrit :

> The search function in
> http://ofbiz.apache.org/documentation.html
> seems not work.
> There is no button to submit a search input
> and pressing ENTER does not submit the search.
>
> It would be helpful to search all sources with
> one search function.
>
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: search in documentation

info@agentur-m3.de
In reply to this post by eejaz.ahmed
I use firefox 33.0  with Ubuntu Trusty 14.4.
The page does not react on ENTER key.

I tried this:

http://www.quirksmode.org/js/keys.html

in anothter TAB and ENTER is detected.


Reply | Threaded
Open this post in threaded view
|

RE: search in documentation

eejaz.ahmed

I also use firefox 33.0 on Ubuntu 14.04 and it still works for me. Maybe you have some custom configurations which are causing this behavior.

Regards:

Ejaz Ahmed





> Date: Sat, 8 Nov 2014 15:03:29 +0100
> From: [hidden email]
> To: [hidden email]
> Subject: Re: search in documentation
>
> I use firefox 33.0  with Ubuntu Trusty 14.4.
> The page does not react on ENTER key.
>
> I tried this:
>
> http://www.quirksmode.org/js/keys.html
>
> in anothter TAB and ENTER is detected.
>
>
     
Reply | Threaded
Open this post in threaded view
|

Re: search in documentation

info@agentur-m3.de
>Maybe you have some custom configurations which are causing this
>behavior.

I tried to search for any configuration to cause this, but
have no idea what it could be.

In the meantime inserting the line:

<input type="submit" name="submit" value="Search!">

after this tag

<input id="searchDocs" value="Search..." class="class1 class2"
accesskey="s" name="queryString" type="text">

solves the problem for me.

Maybe inserting a button like that sometime could be helpful.




Am 08.11.2014 um 15:41 schrieb Ejaz Ahmed:
> I also use firefox 33.0 on Ubuntu 14.04 and it still works for me.

Reply | Threaded
Open this post in threaded view
|

Re: search in documentation

Jacques Le Roux
Administrator
In reply to this post by info@agentur-m3.de
I use 33.0.2 w/o enter pb

Jacques

Le 08/11/2014 15:03, [hidden email] a écrit :

> I use firefox 33.0  with Ubuntu Trusty 14.4.
> The page does not react on ENTER key.
>
> I tried this:
>
> http://www.quirksmode.org/js/keys.html
>
> in anothter TAB and ENTER is detected.
>
>
>