Trac: change ticket count per page in report - trac

In Trac, by default, the the number of tickets per page in a report is 100. Is it possible to increase this count? How? Could I do this in the SQL query? Thanks.

Using the trac.ini configuration file: just configure
[report]
items_per_page = <your_item_count_per_page>

Related

Missing data per site

I want to calculate statistics of missing data per each site in my vcf file.
Using vcftools --missing-site gives wrong stats for several sites.
Is there is any other way to calculate it?
Thank you!
Using plink --missing you can calculate missingness per individual or per variant from a vcf file.

Report with tcodes utilization on per user & per date basis

We want to create a report with Select Criteria DATE & USER and we display the Transactions that run per user & per date.
I know the transaction ST03N but it does not extract the data as I want (DATE-USER-TCODES).
Does anyone know where to find these data, which tables?
Thanks in advance
Elias
Everything is in ST03N:
Select target system from the list in the very top menu
Expand the list of periods (day, month, total) and select the necessary leaf in the necessary node
After double-click (important!) on that leaf the window will appear in the bottom-left corner. In that window one can choose the necessary stats.
Here we need to select User and Settlement Statistics and User Profile below.
After double-click on the necessary stat, windows in the right will be filled with data.
Here we need to double-click again on the target user and all his tcodes on the selected date will be displayed in the popup.
P.S. If you miss User and Settlements Statistics node in your system, then some of the Performance Collectors are not set up properly on your system.
You won't be able to get this from one specific table; however, you can use the following function module to fetch the information:
SWNC_COLLECTOR_GET_AGGREGATES
You will have to pass the following parameters:
IMHOSTNAME "HOSTNAME"
IMDATUM "DATE"
IMPERITYPE "D/W/M"
Variable EX_DATA-APPLICATION_STAT will have all the info you need.
Do you mean, you want to display, what a specific user did in the system on a given day? If yes, have a look at transaction STAD.
The table that stores all data from ST03N is MONI, however it is encoded and cannot be read. You will have to write a custom program using SWNC_COLLECTOR_GET_AGGREGATES function module or check out ones already available online.

Prestashop - Product default combination doesn't want to save

I'm relatively new with working with Prestashop and I cannot fix one problem.
After deleting one combination for a product new default combination doesn't want to save and therefore the price showing on the website is not correct.
Any ideas how to fix it?
Thanks!
It might be possible that the combination that you have deleted is a default combination, you can try the following steps to set another default combination.
Open table ps_product_attribute and filter the rows with product ID of the product you want to edit. You will see a column default_on in this table, just edit it to 1 for the combination you want to set as default.
Experienced exactly the same problem (Prestashop 1.6.23) - the default product combination did not want to save.
In debug mode received an error stating the "default_on" field was already set for this product.
Solved it by opening the database table "ps_product_attribute" and searched via the product ID. Deleted the old combinations manually (which were not displayed at the back-end anymore and not in use). Then I was able to set the default combination again.
Sidenote: in our Prestashop setup (with a custom theme) the price was showing as 0 EUR (front-end) before getting the default combination to save again.

Counts on the server side via WSAPI?

Is it possible to do object counts on the server side of Rally with the WSAPI?
For example, I've got an app that would like to count the number of unresolved defects for each project in our workspace. I don't need to know anything about those defects themselves, so I just want a count, and don't need any other data pulled back.
Any way to do this?
You might want to check out Alan's helpful answer to this Question:
Rally: Pull stories counts by schedule state for a release?
The analog for Defects would be:
https://rally1.rallydev.com/slm/webservice/1.31/defect.js?query=(State < "Fixed")
It does pull all the data, but you can grab the TotalResultCount attribute that is returned in the response to get the number of Defects matching your query.

How do I retrieve a list of only those users and groups that have been added since a certain date from an LDAP directory?

My application does an LDAP query once a day and fetches all the users and groups in a given container. Once it is fetched, my app goes iterates through the list of users of groups, adding only the new ones to my application's database (it adds only username).
If there are 50,000 users, my application server is busy for 45 minutes every day performing this operation.
Is there any way to specify that I need a "delta" in my LDAP query so that I retrieve only those users who got added/modified/deleted since my last LDAP query?
I think there should be a modifyTimestamp on each entry. Take a peek with something like softerra ldap browser (http://download.softerra.com/files/ldapbrowser26.msi). If it exists you should be able to add a condition to your ldap query to look for entries that have been changed since you last ran the sync job.
For users try:
directorySearcher.Filter = "(&(objectCategory=person)(objectClass=user)(whenChanged>=" + yourLastQueryDate.ToString("yyyyMMddHHmmss") + ".0Z))";
For groups try:
directorySearcher.Filter = "(&(objectCategory=group)(whenChanged>=" + yourLastQueryDate.ToString("yyyyMMddHHmmss") + ".0Z))";
And then:
SearchResultCollection adSearchResults = dSearcher.FindAll();
Note: be sure your last query date is in UTC/Zulu time OR use the ".nZ" suffix to adjust for your timezone.
It depends on your directory. There should be an attribute such as a timestamp or sequence number that you can use to filter your LDAP query with. In Active Directory for instance, the value is 'uSNChanged'.
There are two main choices for tracking changes: polling and DirSync. These articles should give you some background and help you to choose what's best for you.
http://support.microsoft.com/kb/891995
http://msdn.microsoft.com/en-us/library/ms677974(VS.85).aspx
and here's some .NET stuff:
http://msdn.microsoft.com/en-us/library/system.directoryservices.directorysynchronization.aspx
You need to check the operational attributes for your Directory .
With OpenLDAP you can add + sign to get operational attributes and check from createTimestamp:
It is always in Zulu format i.e. YYYYMMDDHHMMSSZ. With other DS like fedora-ds You need to search for the operation attribute.
ldapsearch -x < other_options > createTimestamp