-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
js domain: Generate node_id in the right way #7210
Conversation
assert (find_obj(None, None, 'NestedParentA.NestedChildA', 'class') == | ||
('NestedParentA.NestedChildA', ('roles', 'class'))) | ||
('NestedParentA.NestedChildA', | ||
('roles', 'nestedparenta-nestedchilda', 'class'))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is good example for new_id. It is regulated to small case and invalid characters are converted to hyphens.
f898bb1
to
ff632de
Compare
|
||
def note_object(self, fullname: str, objtype: str, location: Any = None) -> None: | ||
def note_object(self, fullname: str, objtype: str, node_id: str, | ||
location: Any = None) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method takes an additional argument node_id
. It would be a breaking change...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought other APIs in JS domain are also changed. And I don't have good idea to keep compatibility. So I'm going with this implementation.
07b3d34
to
21719c1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with 1 proposal.
21719c1
to
dd8088f
Compare
Thank you for reviewing! |
Feature or Bugfix
Purpose
func
from.. js:function:: func()
).