I'm using the SonarQube API in a java tool to process issues and add comments to them/change the issue status (e.g. wont fix)
The api/issues/search function has a page size limitation of 500 max. I have more than 500 issues and need to read this. I thought of performing mulitpule queries, but the issue keys are not numberical so I can not just increment and perform a query on the next 500.
Is there any way I can handle more than 500 issues from the API? I thought a workaround would be to get the list of issue keys from the api and query in batches, but this doesnt seem possible.
Short answer : no, it's not possible to get more than 500 issues in a single web service call.
Long answer : you should try to use a hook (either by using a plugin or by using a web hook) that is triggered on each project analysis => You'll then be able to browse all project's issues using pagination : api/issues/search?componentKeys=PROJECT_KEY&ps=500&p=1, then api/issues/search?componentKeys=PROJECT_KEY&ps=500&p=2, etc.
The total number of items can be found in the response, under "paging" -> "total".
Related
I built a flow that will generate an SSRS report as PDF dynamically from Dynamics by following this amazing article:
D365 Reports as PDF using Power Automate
After I have followed all the steps mentioned and performed different testing, sometimes the flow calls the API and output, as a result, the content type of the file, and sometimes it fails with the below response using the same report ID:
Inner Error returned:
""innerError": "<html><head><title>Object moved</title></head><body>\r\n<h2>Object moved to here.</h2>\r\n</body></html>\r\n"
Succeeded Run (Without any changes to the flow):
Actions scope screenshot:
-- Updated logic to handle HTTP request:
This flow really scares me as it might and might not work because I will be sending this report to our customers and I want to avoid any issue that might happen to the flow.
Kindly note that if you try to reproduce the same flow you will encounter the same issue.
Any idea what will be the workaround to handle this issue and to avoid flow failure?
Any help is highly appreciated.
I solve this issue adding "Accept: {asterik}/{asterisk}" to the Header. sometimes the request returns the redirect error in this case try to repeat the request making the same request again(using run after setting).
fix screen
The DialogFlow CX with Page Form Parameters was working well in the test simulator and recently, my chat bots are not responding after user inputs.
When i tried to troubleshoot the issue i realized that the $page.params.status='FINAL' or the $page.params.someparameter.status='UPDATED' events are not firing properly. Due to this the routes are getting failed.
Initially i thought the issue is in my Project. Then i tried the prebuilt agent (travel-baggage claim) in another project. Even that behaves the same without any response after the user inputs are collected.
I also reported this issue to the Developer Advocates in Twitter and updating here as well to get some response from the community.
I’ve tried to replicate your use case but I was able to successfully trigger the condition routes $page.params.status = "FINAL" and $page.params.parameter-name.status = "UPDATED" as expected and transition to the defined page from my end.
See the following for reference:
$page.params.status = "FINAL"
$page.params.parameter-name.status = "UPDATED"
To troubleshoot the issue, you may check if all the conditions defined in your condition route are fulfilled. Also, you may need to check if the condition rules applied is OR or AND. If AND, make sure that all conditions are fulfilled in order to transition to the defined page or flow.
As for the prebuilt agent Travel: baggage claim, I was also able to replicate the same behavior. However, I noticed that this is a different issue since the issue is caused by the webhook being unable to provide a response and not caused by triggering the condition route. I was able to verify this by adding a static response on the condition route and by checking the logs from the simulator. See screenshots below for more information.
Static response
Log snippet from simulator
I tried creating a new flow and migrated all the pages and it works well. I suspect the flow got corrupted when i programmatically tried to update via API.
I am using SonarQube version 6.7.1
I am trying to get JSON Response for our projects sonarQube statistics
Just want simple details like
Bug count, vulnerability count , % code duplication , code coverage
Tried URL http://sonar-server:9000/api/metrics&json=true but got error Unknown url, can someone point out correct URL
End Aim is to store Above counts for each run in time series DB .. any suggestions how to do it ?
May be i am not reading / understanding documentation clearly , possibly a pointer to tutorial or example or some other pointers will help me,
Try to use sonarqube.server.com:9000/api/metrics/domains, I am able to get json response from this.
APIs that you can use are listed at:
sonarqube.server.com:9000/web_api/api/metrics/domains/search
but just remove "web_api" while calling, to get json response.
I just started to use JMeter with the tutorial (for a sample website), which returns clear response data.
But, when I started to use in one of my projects, I saw the response was encrypted in View results in tree.
So can anyone provide solution for it? This was the response i was getting
I doubt you haven't check marked 'Use this proxy server for all protocols' while creating manual proxy configuration. By checking/ ticking that check box it will allow you to record the scenarios and also it gives you a proper response.
and I also doubt that you are getting proper server name. By doing the above step it will solve your problem
http://www.debrucellc.com/spot3/
I'm currently in China,
my server is based in the US,
for the above website, when I try to remove and create new jobs in the
basic CRUD layout, I'm getting quite a few timeouts, and sometimes just failures,
can anyone tell me if they are getting the same issue from the US/ a different location,
also is there any way to resolve these Ajax timeouts, is this a PHP/CODING/DATABASE issue,
or is it something else
I tried to remove a JOB it was fine but with adding I Had troubles but no time out(Cyprus).
Ok I added a Job but it taking to Much time.