-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat(api-core): helper function for settings api #64
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably should also add avUser
to the angular and axios implementations so that the end user doesn't need to pass it in when instantiating a new avSettingsApi
.
@@ -15,5 +17,41 @@ export default class AvSettings extends AvApi { | |||
merge, | |||
config: options, | |||
}); | |||
this.avUsers = avUsers; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably should throw if avUser
is not provided here.
Or throw in the methods where it is used so that the other methods can still be used without needing it (maybe a less breaking change).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added it to the other implementations, that pattern makes sense but might be worth saving for a refactor PR for all the other apis with similar dependencies.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@KaseyPowers changes LGTM. Can you open a ticket with the refactor suggestions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created #66
No description provided.