Can someone explain the attributes of <pending_xref> tag? - python-sphinx

I noticed that after upgrading to sphinx 6.1.3, there's a default value for attribute refdoc in pending_xref tag.
https://github.com/sphinx-doc/sphinx/pull/9685
What does refdoc and the other attributes means?
Example:
<pending_xref py:class="BlobClient" py:module="azure.storage.blob.aio" refdoc="azure.storage.blob.aio" refdomain="py" refspecific="False" reftarget="str" reftype="class">
Run sphinx 6.1.3 in local.

Related

How to convert View<doc> or Async<doc> to Doc in webSharper?

Please, I am new to WebSharper does anyone know how I can convert View (doc) or Async (doc) to Doc in webSharper? I have tried to open "WebSharper.UI.Next.Client" but does not seem to be compatible with the Doc I am using. The code giving such error is the one I found on the WebSharper website https://try.websharper.com/snippet/adam.granicz/00003b
On the conversions: the functions are Doc.EmbedView and Doc.Async respectively.
The problem with the references was that WebSharper.UI has another separate version still called on its earlier name WebSharper.UI.Next for back-compatibility in older projects. It is recommended to use WebSharper.UI only.
The snippet you have linked was not updated accordingly, I have done it now, and will check others too. The main differences are that Next is no longer used in the namespace names and default HTML combinators take attribute and children lists both (An empty div is now div [] [] while previously there it was a div [] or divAttr [] []).

How to return CKEditorFuncNum?

$funcNum = $_GET['CKEditorFuncNum'] ; is not returning the number.
I tried creating the upload.php for ckeditor uploadimage plugin according to
https://stackoverflow.com/a/44553006/8719001 (sorry can't add comments yet)
which includes echo "<script type='text/javascript'>window.parent.CKEDITOR.tools.callFunction($funcNum, '$url', '$message');</script>";
However when I drop images it doesn't work and in the console I get the Response Text which doesn't show any funcNumber:
"<script type='text/javascript'>window.parent.CKEDITOR.tools.callFunction(, 'https://example.com/upload/test.jpg', '');</script>"
I think this might be part of filebrowser plugin?
Which I have enabled and also declared $settings['filebrowserUploadUrl'] =
Try to setup config.js insert config.filebrowserUploadMethod = 'form';,if you got CKEditor additional arguments empty,(CKEditor,langCode,CKEditorFuncNum). There are some errors occur,
Incorrect server response. and [CKEDITOR] Error code: filetools-response-error..
please refer,https://github.com/ckeditor/ckeditor-dev/issues/1894
This is the version problem.
I tried 2 hours and couldn't get the parameter CKEditorFuncNum with java like you.
After I changed my 4.9.1 version to 4.7.3, it worked.

Declare custom rule type as Vulnerability in SonarQube 6.3

I am using sonarQube 6.3 and when adding new custom rules for Php or Javascript, they are by default declared as Code smell. I would like to declare them as Vulnerability or bug.
Here is an example of a rule declaration
#Rule(key = "Rule1",
priority = Priority.MAJOR,
name = "Rule 1 sould be used.",
tags = {"suspicious" })
Is there a way to do it?
There is a way to set the rule type using some special tags.
Tag "bug" means type "bug"
Tag "security" means type "vulnerability"
So try for example:
tags = {"suspicious", "bug"}
NB: This is documented in API Javadoc (but hard to find I admit)

Watir PageObject Indexed_Property not using string substitution

In a couple places, I'm creating an indexed_property, but when I call it, the index is always 1.
indexed_property(:team, [
[:span, :team, {css: 'article#AssignTeams-Teams table tr:nth-child(%s) td:nth-child(1) span'}]
])
Implemented:
assign_teams_page.team[5].team_element
When I put a break point on it and make the call, the element's selector is:
article#AssignTeams-Teams table tr:nth-child(1) td:nth-child(1) span
it should be tr:nth-child(5) instead of tr:nth-child(1). Why am I seeing this, how do I fix it?
There's a current bug in page-object 1.0.2 that causes indexed properties to retain the definition of the first time you call them. So if you called:
assign_teams_page.team[1].team_element
assign_teams_page.team[5].team_element
It would be using the index 1 every time. There is a fix in place but not released yet. You can fix the issue by downgrading to page-object 1.0.0 or upgrading to 1.0.3 when it comes out.

How to sync Tags to Labels with the RallyAPI and JIRA connector

I am using the RallyConnector to sync user stories and defects with JIRA.
https://help.rallydev.com/jira-5-installation-user-guide
here is my field mapping
<FieldMapping>
<Field><Rally>Name</Rally> <Other>Summary</Other></Field>
<Field><Rally>Description</Rally> <Other>Description</Other></Field>
<Field><Rally>FormattedID</Rally> <Other>RallyKey</Other></Field>
<Field><Rally>Tags</Rally> <Other>Labels</Other></Field>
</FieldMapping>
When I added the Tags field and map it to the Labels (JIRA's version of Tags) to the connector, I get the following error:
ERROR : RallyEIF::WRK::JiraRestConnection.rescue in attempt_update - Attempt to update issue JM-25 failed, undefined method `split' for # < RallyAPI::RallyCollection:0x007fd1950b2890 #results=[]>
I suppose this has something to do with the fact that it is a list of values, and just not a single value.
Only Bugzilla and CQ connectors support tags, but not the Jira connector. It's mentioned here, in the Best Practices. You are correct that in WS API Tags is a collection.

Resources