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

Warn about non-unique names of functionsByType functions #6001

Merged
merged 3 commits into from
Jan 7, 2020

Conversation

aldeed
Copy link
Contributor

@aldeed aldeed commented Jan 6, 2020

Resolves #5464
Impact: minor
Type: refactor

Issue

Logging and stack traces are confusing when all functions of a particular type have the same name, as has been the pattern. For example, all plugins that register a "startup" function also name that function "startup".

Solution

#5464 suggested making unique names mandatory but I'm only logging a warning on startup. I've updated all built-in services and plugins so that all function names are unique and the warning does not print on startup.

Breaking changes

None

Testing

Verify no warnings about functionsByType name are shown in the API startup logs. Temporarily change one fn name to be the same as another of that type, and verify that the warning now shows in the logs.

Signed-off-by: Eric Dobbertin <[email protected]>
Copy link
Member

@willopez willopez left a comment

Choose a reason for hiding this comment

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

LGTM

@willopez willopez merged commit 9f7f18b into release-3.0.0 Jan 7, 2020
@willopez willopez deleted the refactor-aldeed-unique-fn-names branch January 7, 2020 18:16
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