Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

add ListDag function declaration in store#61

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
AHHH32 wants to merge1 commit intoShiningRush:master
base:master
Choose a base branch
Loading
fromAHHH32:master

Conversation

@AHHH32
Copy link

我在使用获取全部定义的dag时,发现源码中已经有相关函数实现,但是没有在Store中进行声明,因此不能使用。这个修改是在Store中添加函数声明

ShiningRush reacted with thumbs up emoji
Copy link
Author

@AHHH32AHHH32 left a comment

Choose a reason for hiding this comment

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

add

GetTaskIns(taskInsstring) (*entity.TaskInstance,error)
GetDag(dagIdstring) (*entity.Dag,error)
GetDagInstance(dagInsIdstring) (*entity.DagInstance,error)
ListDag(input*ListDagInput) ([]*entity.Dag,error)

Choose a reason for hiding this comment

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

也得在MockStore 实现这个接口,不然之前的用例会失败

Copy link
Author

@AHHH32AHHH32Jun 24, 2024
edited
Loading

Choose a reason for hiding this comment

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

请问你说的之前的用例会失败是什么意思?因为我现在这么用的目前没发现,并且我这样可以正常获取到定义的dag。

store:=mod.GetStore()ifstore==nil {returnnil}dagDefine,err:=store.ListDag(nil)

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@ShiningRushShiningRushShiningRush left review comments

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@AHHH32@ShiningRush

[8]ページ先頭

©2009-2025 Movatter.jp