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

Sailor enhancement: have this.emit() function be defined consistently for all methods called through Sailor #112

Open
2 tasks
hannah-bulmer opened this issue Nov 11, 2019 · 0 comments

Comments

@hannah-bulmer
Copy link

The function this.emit() is only properly defined and working as intended in the process function. Either this.emit() should be defined consistently across all the functions Sailor parses, or at the very least there should be clear documentation regarding where this.emit is defined and where it is not.

Discrepancies within this.emit

At the moment, only in process does this.emit() correctly return a Promise.

In verifyCredentials, getMetaModel, and any Select Views function, this.emit() is defined, but is not an async function and does not return a Promise.

In init(), startup(), and shutdown() methods, this.emit() is not defined at all.

Please refer to the image below for more details:

image

For this issue to be resolved:

  • define this.emit for all of the functions above and ensure that it returns a promise (first two columns)
  • provide documentation in the Sailor README or elsewhere regarding which functions currently support using this.emit
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

No branches or pull requests

1 participant