How to use api to get phabricator reviewer action - phabricator

I check differential.query, it can only return review status and reviewer phid. How can I get each reviewer action, such as reviewer A : Accept. review B: null(or need review/didn't review)

It seems differential.getcommitmessage can return the result. The result is like
result
Review for branch f_20181012
Test Plan: Not Available
Reviewers: mike, bob
Reviewed By: mike
Differential Revision: http://phab.net/D17
Reviewed By is the reviewer who accept the revision.

Related

Jira ITSM Cloud - Automatization- JQL Count total issues in a status for an agent and do

Cloud you please help me with the correct JQL to build the following automation rule to work:
Whenever an issue is transitioned from status "Assigned" to status "In Progress", run a JQL or Advanced Compare or Lookup issues (or something else) in which to check:
==> IF the assigned user on the issue (current assignee), has the TOTAL number (count) of issues "In Progress" in the project greater than 0
=> THEN : do nothing (and let the user take the issue in progress )
=> ELSE : transition issue from status "In Progress" to status "Assigned"
-- How to make that JQL ?
Thank you very much in advance,
Alex
The trick is to make an automation rule, to lookup issues, and with the following code:
status = "In Progress" AND assignee = {{issue.assignee}}
WARN: The validate query wont work, but the rule as a whole works.

How to get details about a publication using Microsoft Academic Knowledge API

I'm using the Interpret and Evaluate methods from Project Academic Knowledge.
If you search for Composite(J.JN='jama') and include J.JId in the request, you'll get a response with the Id 172573765:
{
"logprob": -14.823,
"prob": 3.651345212E-07,
"Id": 2107832644,
"J": {
"JId": 172573765
}
}
You can find more details about that journal by opening: https://academic.microsoft.com/journal/172573765
However, there doesn't seem to be a way to retrieve that same information (Number of papers, number of citations, website, about) using the API. How can we get this (other than by accessing the URL of the journal)?
Project Academic Knowledge allows you to retrieve journal entities using the Evaluate method. The query is simply Id=JId. For example, to retrieve the journal name, publication and citation counts you'd use:
https://api.labs.cognitive.microsoft.com/academic/v1.0/evaluate?subscription-key=SUBSCRIPTION_KEY&attributes=Id,JN,DJN,CC,PC&expr=Id=172573765
See the journal entity documentation page for a list of the available attributes you can request.

Need Better Understanding Action: woocommerce_subscription_status_cancelled

I'm die-hard .NET guy. Dabbled in PHP, and I use WordPress only as a casual user for personal blogs and my photography hobby. But, I guess that exposure was good enough for my boss to ask me to create a WooCommerce Subscription plugin.
Here's the business logic:
Client offers three subscriptions
3 months at $x
6 months at $x - 10%
1 Year at $x - 20%
If a user signs up for a 6 month or 1 year subscription, and then cancels before the 6 months or 1 year is up, the business owner will not immediately cancel the subscription. What he wants to do is instead change the renewal of the subscription from Automatic to Manual, so the customer will keep paying each month until the original subscription term is expired. (No comments please on this logic. It's not mine.)
So, I am reading and digesting all the docs I can get my hands on, and I have question about this Action: woocommerce_subscription_status_cancelled
The docs say:
Description: This action is triggered after the subscription specified with $subscription has had its status changed.
First Question:
What I'm wondering is... when it says after the subscription specified with $subscription has had its status changed... does it mean after the USER changed the status? Or after the actual status has been changed and logged?
In other words, by the time I fire this action, will the status have already been changed? Or will the action happen after the user opts to cancel, but before the status change hits the database?
Second Question:
Am I correct in assuming that I can assign my own method to this action that would prevent (or undo) the actual cancellation, and instead just change the renewal type from Automatic to Manual?
cancel_subscriptions_for_order() is called when the woocommerce_subscription_status_cancelled hook is fired. So you could therefore do a remove_action and replace it with your own functionality.
You can find this action on the woocommerce-subscriptions Github repo here: class-wc-subscriptions-manager.php.

Anyone using BlueSnap's Google Analytics integration?

Here are BlueSnap (formerly Plimus)'s instructions for integrating Google Analytics in their hosted checkout pages:
How can I define my sales goals in Google Analytics?
To set-up your sales goal and funnel, you’ll need to set-up 2 goals. Login to your Analytics account, find the relevant Website Profile and click on Edit.
Set-up the following under the Goals section:
Goal 1: Purchase Successful:
Goal URL: /BlueSnapBuyNow/Buynow Result Success
Goal Funnel:
Step 1: /BlueSnapBuyNow/Buynow$
Step 2: /BlueSnapBuyNow/Buynow Step2
Step 3: /BlueSnapBuyNow/buynow processing
Goal 2: Purchase Pending:
Goal URL: /BlueSnapBuyNow/Buynow Result Pending
Goal Funnel:
Step 1: /BlueSnapBuyNow/Buynow$
Step 2: /BlueSnapBuyNow/Buynow Step2
Step 3: /BlueSnapBuyNow/buynow processing
Those goals didn't seem to work for me.
Is it because of the spaces and dollars?
For example:
However, Goal 1 started working when I changed the Destination to /?thank-you=1 (the redirection back to my site which the users get upon purchasing).
Here is some updated documentation about how to set up the BlueSnap integration with Google Analytics:
http://support.bluesnap.com/docs/google-analytics
The URLs for the goals have been changed, as follows:
URLs for GA goals
The Dollar sign ("$") is used for Regular Expressions, and is used to mark End of line.
My guess is that the Destination drop-down should be set to Regular expression instead of Equals to, although it unfortunately does not seem to be specified in the setup guide you provided.
Also, depending on how your URLs are set up for your checkout process, "Result Success", "Step2" and "processing" might be suggested Step names for your Goal, and not be actual URLs.

Validating CustomerCreditLimit while generating PackingSlip in AX 2012

I have to modify the scenario, while I am posting the Packing Slip from the Sales Order. It shows me the CustomerCreditLimit. I just need to know in which class and method I should write my code to modify the calling of CustCreditLimit. because In my case if the Sales Order [Payment] type is cash, system shouldn't go to validate the customer credit limit.
https://community.dynamics.com/ax/f/33/p/97761/223636.aspx
Put a breakpoint in the form showing the credit limit prompt, run then look further down the stack trace.

Resources