How to create filter in mantis to see only recently added issues like last 2 weeks - mantis

I would like to create a filter which when selected displays cases/issues that was opened/resolved etc in last 1 week or 2 weeks instead of hardcoded times. I have found these kind of queries to be extremely useful in other bug trackers. I can set fixed time stamps to report issues in that interval but it is not particularly that useful. It's best to save a filter which is generic. Does anyone know if this can be done in MantisBT?

Update: the reference bug for this feature is 0009398: Filter Enhancements
I don't think this is possible in the current MantisBT code base ( I'm one of the developers ). Either raise a feature request at the MantisBT bugtracker or look for a plugin which does that.

Related

Google Sheet IMPORTRANGE Error "Import Range internal error" When Range is just a column

In Google Sheet IMPORTRANGE function for single column in rage
=IMPORTRANGE("https://docs.google.com/spreadsheets/d/1-bCoiKLjBlM5IGRo9wrdm", "sheet1!B:B")
I get
"Import Range internal error."
But for
=IMPORTRANGE("https://docs.google.com/spreadsheets/d/1-bCoiKLjBlM5IGRo9wrdm", "sheet1!B:C"), it works.
Is it a bug? up to now, it was the third time that I had to change them many times? Is there any consistent solution for it?
I use this solution as temporary
=Query(IMPORTRANGE("https://docs.google.com/spreadsheets/d/1-bCoiKLjBlM5IGRo9wrdm", "sheet1!B:C") , "Select Col1")
Finally:
I didn't get error for 5 day right now
And in this link https://issuetracker.google.com/issues/204097721 has now been marked as fixed in the issue tracker.
These errors are usually temporary and go away in a few hours. To expedite that, modify your import formula slightly by replacing "Sheet1!B1:B" with "Sheet1!B:b" — the small letter case change is enough to let the call duck Google's cache and get fresh results, which should let you work around the issue.
To automate that to an extent, use this pattern:
=iferror( importrange("...", "Sheet1!B1:B"), importrange("...", "Sheet1!B:b") )
Also see https://support.google.com/docs/thread/131278661.
I try this solution, it works
Before IMPORTRANGE("id", "a:b")
Now IMPORTRANGE("id", "A:b")
There is a dirty solution that could be used temporarily. It does not shield you completely from that issue, it might still occur.
This:
IMPORTRANGE("id", "A:A")
Could be replaced with that (notice lower different case in the same range being imported 2nd time):
IFERROR(IMPORTRANGE("id", "A:A"), IMPORTRANGE("id", "A:a"))
I've seen this solution posted here by Vitaly, he got it from here.
This could not be the solution to the problem.
I have built a whole data integration platform up on sheets and rely heavily on importrange functionality to shield off access to datasources from users.
Now lately the #REF started to haunt my tables all over the place and it renders everything more or less unusable.
Definately this is a bug or lack of resources.
I think the best solution here is to use
=Query(IMPORTRANGE("https://docs.google.com/spreadsheets/d/1-bCoiKLjBlM5IGRo9wrdm", "sheet1!B:C") , "Select Col1")
I don't believe ducking Google's cache is a fix or even a workaround.
We've maintained a sheet with the importrange function across multiple tabs for years, and only within the last week has there been a problem.
We first noticed it on Friday then it came back again today. In both instances, I don't think I did anything to fix the issue, especially today. I moved the formula around on the sheet, which had the effect of refreshing the importrange function, but it still resulted in the "Import Range internal error." The importrange function went down for a time (I don't know how long today, but I think it was at least 15 minutes) and then resolved itself on all tabs without a modification.
I think this definitely a bug or Google messing with stuff on the back-end. Maybe we need to find a way to do everything without using importrange?
I Tried using following and solve my problem since last 2 days...
IFERROR(IMPORTRANGE("id", "A1:B20"),iferror(IMPORTRANGE("id", "A1:b20"),iferror(IMPORTRANGE("id", "a1:B20"),IMPORTRANGE("id", "a1:b20"))))
Means, Recall same fuctions 4x times using CAPS/Non CAPS in Range names.
I just came across this same situation, but found a solution that worked for us.
We had 1 sheet that was importing ranges from 2 separate sheets (call A & B).
A was importing correctly.
B was showing the Internal Import Error.
I also noticed that on Sheet B, I was unable to view Version Histories.
However, Sheet A I was able to view Version Histories.
--Makes sense that this is where the issue would be, because ImportRange pulls from the most recent Version saved.
THE FIX -- I cleared my Chrome's Cache from the last 7 days (experiencing the issue for 3 days)
Then had to re-sign into my account and the ranges were importing successfully!
Hopefully this helps someone else.
Side note -- A coworker traveled to Canada from the US 3 days ago at the same time the Internal Error showed up. Possibly could be from international server errors?? That is a very weird theory, but who knows...

Append more than 100 products in Adobe Analytics

if i add more than 100 products under s.products in adobe analytics, I am seeing 414 status code
First, since you got this error, and I see in your screenshot it is a GET request, it sounds like you may not be using the latest Adobe Analytics AppMeasurement library (AppMeasurement.js) and Experience Cloud ID Service (VisitorAPI.js) - or at least a version that supports POST requests. So the first thing I suggest is update to the latest libraries.
But second - and perhaps more importantly - as #RobertSim commented - what are you doing that requires pushing 100+ products to an AA hit? I've been doing this for over 10 years with countless clients both directly working with them and indirectly on help sites such as this, and this is the first time I have ever seen someone try to push so many products at a time.. I'm a little impressed.
But nonetheless you are almost certainly going about things the wrong way. Are you trying to do product impression tracking on a category/product listing page? There is no way a visitor is viewing 100+ products at a time. The standard is to do top 5 or top 10 on a category/product listing page.
Are you trying to push meta data about products to AA? Definitely should not be doing it like this. You should probably be using SAINT classification uploads.
Provide more details about what you're trying to do here, what's the goal of this, etc. and perhaps a better answer can be given.

Delphi histogram component?

Does it happen that no one ever needs histogram in Delphi ?
Google gave me a bunch of half-baked code snippets. But it means that each time you need one - you have to invent one more ad hoc bycicle.
Torry mostly told me about some very expensive closed source Math Statistics or Financial packages, that as a subproduct have histograms. But they are very expensive and since you have no source code, each time you install update onto IDE/RTL/VCL you're probably screwed, until the vendor would make (soon ? ever?) updated packages. Given thatvendor is still does exists.
S.O. told me nothing, nil.
For what i found...
Mitov.com provides some histograms in PlotLab. which told to be free for non-commercial. Alas, it is again closed-source, and if the Histogram - quite fancy let's admit -is the onlything i need from it - why pay the whole price ?
One more example http://DSpatial.sf.net
Just few years ago i used it in Delphi 5, but even then i felt the author is loosing interest in the project. I made few enhancement, fixed some bugs, he merged them and that's all. The component was not very useful and lacked upon features, yet better than nothing. Now the project seems to be completely dead. Good old days, etc. But i do not want them back :-)
And Stack Overflow seemingly carries no single question about it. But maybe just no one bothered to create topic, after search found nothing ? I mean, Delphi was created for database access, histograms are one of basic ways to visualize data, and no one crosses them ? Something with nice style, with rich mouse tooltip like in HTML/CSS/JS on http://www.moskva.fm/stations/FM_95.2 ?
Or is this too domain-related and not ever possible to have good abstraction ?
TChart is a control that ships with most versions of Delphi. TChart can be used to make histograms (bar charts) in style. The following give you some ideas about how to use it: http://www.digitalcoding.com/tutorials/delphi/Simple-steps-to-create-Delphi-chart.html and http://delphi.about.com/od/adptips2006/qt/chart_selectbar.htm .
If you need something with code, google the pages at delphiforfun.org/programs/oscilloscope.htm . These are not controls. The oscilloscope article has a histogram with source. Some of the other projects at the site have other histogram graphs with source..not elegant but useful and free. Use them as a template to make your own control.
The link at http://delphiforfun.org/programs/Math_Topics/probability_distributions.htm shows how to make your own statistics displays with "histograms." This example makes use of TChart.
Here is some more stuff to try I found looking at my resource file:
http://wiki.lazarus.freepascal.org/TAChart, http://members.home.nl/mvanwesten/en_lazarus.html , http://www.martinole.org/TAChart.html ...some of these are GPU components that supposedly work with some versions of Delphi. Perhaps this is your lucky day as there is some source code. The first and third listed probably will work reasonably for histograms. You may have to write your own statistics algorithms.
Found this thread while doing some searching. The ImageEn component suite has a THistogramBox component. It's the NOT prettiest thing in the world, but it's the only one I've found so far.
http://www.imageen.com
I came across a histogram example in a gdiplus package available for download from code central. I don't know if it will do what you need but when I saw it I remembered your SO question.
HTH.
If you were using firemonkey, you could just created a series of TRectangles in series. They can be made unclickable by turning hittest off. Or is that too easy and straightforward?

How do I use custom fields in Mantis' Roadmap?

I'd like to have an effort estimate for upcoming versions of my software in its Roadmap in Mantis Bug Tracker.
I could figure out easily how to add a custom fields (integer type, called "days to complete") to issues, and how to show it on the "view issues" page. But I couldn't find out how to add something to the roadmap showing the sum of days to complete for non-resolved issues.
Is there a built-in way to do this?
My guess is no, that would take some php coding inside Mantis. But maybe someone did that already?
Edit: I had a look at the Time Tracking feature. It doesn't look like what I want.
The display of the Roadmap is driven by a Custom Function, which you can override in any way you see fit (and yes that means writing some PHP code, but without altering the MantisBT core).
To achieve what you want, you should override custom_function_default_roadmap_print_issue().
Please refer to the MantisBT documentation for further details.

Charting Progress in JIRA

With JIRA, there are features that allow you to Start Progress and Stop Progress on an issue or various issues at any given time. Is there a way for me to go back and see a chart or a graphical representation of how my time was spent over a set period of time?
If I wanted to see how many bugs I worked on in April, and see how much time (graphically) was spent on each bug, could that be done, and if so, which version of JIRA would allow me to do that?
I dont think you can see for a given month how much time was spend on a task. You can see how much time was spent on a task, but not what time period it was for.
I'm sure you've already seen this:
http://www.atlassian.com/software/jira/docs/v3.13.3/timetracking_report.html
There's a Time Sheet Summary report that comes with the Timesheet Report and Portlet plugin - it shows you a list of the JIRA issues you've been working on together with the time per day for a configurable period. No charts, though, I'm afraid.
I think in general that time tracking is ripe for someone to write a really good JIRA plugin; I'm not totally happy with any of the current ones.
Go with the Tempo plug-in for jira. It is brilliant.
You can implement this visualization with the JIRA PDF View Plugin, like this:
Create a filter that returns the issues to be used for this visualization. Run it and invoke the plugin from the "View" dropdown menu.
Write a little Groovy script that iterates over the returned collection of issues, and:
Builds a mapping from "month" (key) to a data structure which holds a triplet of "totalTimeSpent, issuesWorkedOn, issuesFixed" (value).
At each issue compute the sum of the "time spent" records and add it to "totalTimeSpent".
Increment the two other counters accordingly.
When your script completes you have all input data to draw a timeseries chart.
Generate a JFreeChart TimeSeriesCollection dataset. It should contain 3 TimeSeries (3 lines) for the 3 types of values.
Create a simple PDF template that displays a single timeseries chart, which takes the dataset returned by the previous script to render a timeseries chart. Check the timeseries chart example in the tutorial for directions.
The final chart will be something like this:
Disclaimer: this is a paid add-on for JIRA, and I'm a developer working on it.

Resources