Skip to content
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

Extending NgPath #228

Merged
merged 4 commits into from
Sep 13, 2023
Merged

Extending NgPath #228

merged 4 commits into from
Sep 13, 2023

Conversation

1244453393
Copy link
Contributor

@1244453393 1244453393 commented Sep 12, 2023

改造路径查询,路径对象中带有edge属性和vertex实体+vertex属性,经过测试,无需修改daoBasic任何代码,兼容已有代码

implementation: #225

Comment on lines 37 to 38
private NgVertex<I> src = new NgVertex<>();
private Map<String,Object> properties;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里的默认值给 null 会不会好一点,可以与是否使用了with prop的区分度做得更大一点,近一步降低开发上使用不当的风险,以及问题排查的成本。你感觉如何?
然后在 dst 与 src 的 javadoc 中新增内容,以达到以下的效果:
image
开发体验优化上的建议而已,都挺好的,相信这个新特性可以为更多人带来便捷。
cc: @wey-gu

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我考虑了使用null,但由于segments中是一定包含node实体的,我无法判断语句中是否使用了with prop。如果通过判断properties中有没有属性来判断也不准确,因为vertex的tag创建时有可能就没有设置属性。segments中一定有node实体,所以默认new一个对象也不用担心什么。javadoc我明天上班补充。另外就是,我非常喜欢ngbatis这个项目,要不是发现了ngbatis,我们还在自研通用业务接口呢😂😂😂

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里的默认值给 null 会不会好一点,可以与是否使用了with prop的区分度做得更大一点,近一步降低开发上使用不当的风险,以及问题排查的成本。你感觉如何?
然后在 dst 与 src 的 javadoc 中新增内容,以达到以下的效果:
image
开发体验优化上的建议而已,都挺好的,相信这个新特性可以为更多人带来便捷。
cc: @wey-gu

这个PR不要马上合并,我需要对segments的准确性再验证一下

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好~

我考虑了使用null,但由于segments中是一定包含node实体的,我无法判断语句中是否使用了with prop。如果通过判断properties中有没有属性来判断也不准确,因为vertex的tag创建时有可能就没有设置属性。segments中一定有node实体,所以默认new一个对象也不用担心什么。javadoc我明天上班补充。另外就是,我非常喜欢ngbatis这个项目,要不是发现了ngbatis,我们还在自研通用业务接口呢😂😂😂

我个人很喜欢这条回复~ 哈哈哈

另外,不介意的话,可以再补提交一个信息

ngbatis/pom.xml

Lines 18 to 31 in ef14e07

<developers>
<developer>
<name>CorvusYe</name>
<email>CorvusY@foxmail.com</email>
</developer>
<developer>
<name>zhangbin</name>
<email>1394078687@qq.com</email>
</developer>
<developer>
<name>soul-gin</name>
<email>1533119789@qq.com</email>
</developer>
</developers>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

非常感谢您的认可!

@wey-gu
Copy link
Member

wey-gu commented Sep 13, 2023

Excellent job and golden collaboration!!! @1244453393 @CorvusYe 🧎

@wey-gu wey-gu merged commit 0bc8202 into nebula-contrib:master Sep 13, 2023
1 check passed
@wey-gu wey-gu added the enhancement New feature or request label Sep 13, 2023
@CorvusYe CorvusYe mentioned this pull request Nov 14, 2023
@CorvusYe CorvusYe mentioned this pull request Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants