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

edgehub dispatch message by type #2116

Merged
merged 1 commit into from
Sep 7, 2020

Conversation

lvchenggang
Copy link
Member

What type of PR is this?
/kind feature

What this PR does / why we need it:
Like the previous way, through array to dispatch message in edgehub is not intuitive, by switch-case grammar will be clearer and maintainable.

Does this PR introduce a user-facing change?:
NONE

@kubeedge-bot kubeedge-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Aug 31, 2020
md = modules.BusGroup
default:
klog.Warningf("msg_group: %s not found", group)
return fmt.Errorf("msg_group: %s not found", group)
Copy link
Member

Choose a reason for hiding this comment

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

What's the difference of these two implementation?

Copy link
Member

Choose a reason for hiding this comment

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

Maybe the groupMap can be deleted?

Copy link
Member Author

Choose a reason for hiding this comment

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

Use switch-case looks more intuitive, the groupMap structure still used in edgehub currently.

@fisherxu
Copy link
Member

fisherxu commented Sep 1, 2020

Looks like there's something wrong with the CI/UT

@lvchenggang
Copy link
Member Author

Looks like there's something wrong with the CI/UT

Yes, I will look at this question.

@kubeedge-bot kubeedge-bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Sep 3, 2020
@lvchenggang
Copy link
Member Author

Looks like there's something wrong with the CI/UT

Yes, I will look at this question.

The UT problem has been resolved.

@fisherxu
Copy link
Member

fisherxu commented Sep 4, 2020

Looks like there's something wrong with the CI/UT

Yes, I will look at this question.

The UT problem has been resolved.

How does the utility be fixed? Looks like has no modification ;-)

@lvchenggang
Copy link
Member Author

Looks like there's something wrong with the CI/UT

Yes, I will look at this question.

The UT problem has been resolved.

How does the utility be fixed? Looks like has no modification ;-)

The UT error is caused by the following changes:
image

Finally, I reducing these changes and everything is OK

@fisherxu
Copy link
Member

fisherxu commented Sep 7, 2020

/lgtm
/approve

@kubeedge-bot kubeedge-bot added the lgtm Indicates that a PR is ready to be merged. label Sep 7, 2020
@kubeedge-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fisherxu

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubeedge-bot kubeedge-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 7, 2020
@kubeedge-bot kubeedge-bot merged commit 7c41560 into kubeedge:master Sep 7, 2020
@lvchenggang lvchenggang deleted the edgehub_update branch November 17, 2020 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants