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

New task management #34

Merged
merged 1 commit into from
Nov 11, 2024
Merged

New task management #34

merged 1 commit into from
Nov 11, 2024

Conversation

v9n
Copy link
Member

@v9n v9n commented Nov 11, 2024

No description provided.

Copy link
Member

@chrisli30 chrisli30 left a comment

Choose a reason for hiding this comment

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

The code looks good. I had a minor comment. Also, I think the next step is to test the .proto file from ava-sdk-js.

}, nil
}

func (r *RpcServer) CancelTask(ctx context.Context, taskID *avsproto.UUID) (*wrapperspb.BoolValue, error) {
user, err := r.verifyAuth(ctx)
if err != nil {
return nil, err
return nil, status.Errorf(codes.Unauthenticated, "invalid authentication key")
Copy link
Member

Choose a reason for hiding this comment

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

Let’s capitalize the first word of error messages, "Invalid".

Also, I’d suggest us to create a list of constant for the error message, for code re-use purpose.

Copy link
Member

Choose a reason for hiding this comment

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

hmm, is this PR supposed to be on top of #33?

Copy link
Member Author

@v9n v9n Nov 11, 2024

Choose a reason for hiding this comment

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

Let’s capitalize the first word of error messages, "Invalid".

Also, I’d suggest us to create a list of constant for the error message, for code re-use purpose

yes, I will update in this PR #35

hmm, is this PR supposed to be on top of #33?

Yes, they are stacking on each other.

- create task with specific wallet
- list task by the smart wallet
- return all task data in list
@v9n v9n force-pushed the new-task-management branch from 33538ce to aaa7740 Compare November 11, 2024 19:41
@v9n v9n merged commit bf48a9c into main Nov 11, 2024
3 checks passed
@v9n v9n deleted the new-task-management branch November 11, 2024 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants